Spectatr.ai

Content Delivery · Webhooks

Payload schema

Every call has the same four fields. What changes is `event` and the shape of `data`.


Envelope

Body
{
  "event": "clip.created",
  "id": "6affe2a85766a74cf78586d5",
  "occurredAt": "2026-11-20T06:03:20.522Z",
  "data": { }
}
FieldTypePresenceDescription
eventstringALWAYSWhat happened. One of the names listed under Events.
idstringALWAYSOur id of the thing it is about, 24 hex characters. The clip or compilation for clip.*, compilation.*, render.* and metadata.*; the match for match.*.
occurredAtstringALWAYSWhen it happened, ISO 8601 UTC.
dataobjectALWAYSThe event's content. Empty {} for deletes.

The body is plain JSON. Its integrity is protected by the signature, not by encryption.

Keys to use

A clip or compilation
id. It never changes, including across renames and trims.
A file
id with aspectRatio, language, overlay and replay from render.available.
The latest state
Keep the event with the latest occurredAt for each id and event.

Duplicates

The same event can reach you more than once, for example a retry after a timeout. A repeat is byte for byte identical, including occurredAt. Upsert by id, or skip bodies you have already stored.

Conventions

Stream times
start and end are seconds from the start of the stream.
Missing values
Left out, never sent as null.
New fields
Optional fields can be added at any time. Ignore fields you do not know.