NewSpark

Blog / Connect Your Media Library to Other Systems With Signed Webhooks

Connect Your Media Library to Other Systems With Signed Webhooks

· NewSpark

Your media library does not live alone. When an upload finishes processing or an asset is approved, other systems usually need to know: a website, a CMS, a workflow tool. Webhooks let the library tell them, instead of everyone polling for changes.

What a webhook is

A webhook is an HTTPS request sent to an address you control when something happens. Your system receives a small JSON message and reacts: publish a page, start a review, update a record.

Events worth subscribing to

  • Created, processed and failed, to follow an upload through conversion.
  • Approved and denied, to publish or hold content automatically.
  • Updated, with a list of what changed, to keep external records in sync.
  • Trashed, restored and deleted, to keep other systems from showing removed content.
  • Expired, when an asset’s end date passes.

Choose what goes in the payload

You decide which fields each endpoint receives, from title and tags to custom fields, and a live preview shows the exact JSON before you save. Personal information such as the uploader is off by default.

Verify every message

Each delivery is signed with HMAC-SHA256 using a secret only you and the platform know. Check the signature before you trust the content, and use the event ID to ignore duplicates. When you rotate a secret, the old one keeps signing for 24 hours so nothing is dropped.

Plan for failure

Receivers go down. Failed deliveries are retried over several hours on a backing-off schedule, and a delivery log shows what was sent, what your server answered, and lets you redeliver. Endpoints that keep failing for days are switched off and the change is recorded.

Design your receiver well

  • Respond quickly with a 2xx status, then do the heavy work in the background.
  • Do not rely on ordering. Retries can arrive after later events, so fetch the current state when it matters.
  • Make handlers idempotent so a repeated event is harmless.
  • Use HTTPS and keep the secret out of your code repository.

Webhooks are one part of the NewSpark integration surface, alongside a documented GraphQL and REST API. See the feature overview.

Integrating with your stack?

We’ll walk through the events and payloads in 30 minutes.

Get a demo