Spectatr.ai

Content Delivery · Webhooks

How a delivery works

Every change to a match, clip or compilation is sent to your endpoint as an event, one at a time and in order for each clip.


The flow

  1. 1A match goes live. You receive match.live.
  2. 2A moment becomes a clip, verified by an operator or made by hand. You receive clip.created with the match, the clip's name, type, start and end, and the HLS stream it was cut from.
  3. 3Each finished file renders: an aspect ratio, a language, an overlay or a replay version. You receive render.available for each one.
  4. 4Players, event details, a description and a rating arrive in metadata.updated. Edits made close together are merged into one call.
  5. 5A rename or a new start or end sends clip.updated. A delete sends clip.deleted.

Compilations follow the same path with compilation.created, render.available and compilation.deleted.

Order

For each clip, events arrive one at a time, in the order they happened, and clip.created always comes first. If a call to you fails, the events behind it for that clip wait until it succeeds. Other clips keep flowing.

Every event is a full snapshot