Spectatr.ai

Reference

Errors

Errors return a JSON body with a stable code you can branch on and a message written for a human reading a log.


Shape

Error body
{
  "code": "match_in_progress",
  "message": "Match g-88213 is STARTED; it cannot be changed"
}

Codes

StatusCodeMeaning
401missing_api_keyNo X-Api-Key header.
401invalid_api_keyKey is unknown or has been revoked.
403sport_not_licensedUnrecognised sport, or one your account is not licensed for.
404unknown_matchNo fixture with that externalId on your account, or no source attached to it.
409match_in_progressThe fixture is STARTING, STARTED or ENDED and is locked.
409ingest_already_attachedA different source is already attached. Stop it before attaching another.
422validation_failedWell-formed but invalid: a passphrase, a push protocol, a malformed SRT url, over 200 matches, an unknown player ID, or no channel configuration for that sport on your account. The message names the offending field.
500internal_errorOur fault. Safe to retry, because every write is idempotent.