Aller au contenu
Livstick Développeurs

Release a held message

Méthode POST https://<client-api-host>/api/v3.1/containers/{crid}/messages/{mrid}/release

Confirm payment: publish a message that was recorded with hold: true. Idempotent: releasing a message that is not held returns it unchanged. If the video is not encoded yet, publication happens when encoding ends.

Autorisation

Scope requis messages:publish

Use Authorization: Bearer liv_<prefix>_<secret>. The key must belong to a platform served by the V3 pipeline; otherwise every route answers 403 PLATFORM_NOT_V3.

Paramètres

Nom Emplacement Type Requis Contraintes Description
crid Chemin string Requis Your business reference of the container.
mrid Chemin string Requis pattern ^[A-Za-z0-9:_-]{1,64}$ Your own reference of the message.

Réponses

200 application/json Schéma V31Message

Message released (or already released).

401 application/json Schéma V31ErrorEnvelope

Authentication failed or missing bearer token.

403 application/json Schéma V31ErrorEnvelope

Authenticated but not allowed: missing scope (FORBIDDEN), invalid platform constraints (INVALID_PLATFORM_CONSTRAINTS) or a platform not served by API v3.1 (PLATFORM_NOT_V3).

json 403
{
  "error": {
    "code": "PLATFORM_NOT_V3",
    "message": "Platform is not served by API v3.1"
  }
}

404 application/json Schéma V31ErrorEnvelope

Container or message not found (NOT_FOUND, MESSAGE_NOT_FOUND).

json 404
{
  "error": {
    "code": "MESSAGE_NOT_FOUND",
    "message": "Message not found"
  }
}

429 application/json Schéma V31ErrorEnvelope

Rate limit exceeded.

json 429
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Too many requests"
  }
}

500 application/json Schéma V31ErrorEnvelope

Unexpected server error.

json 500
{
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Internal error"
  }
}