streams

Fetch the session recording (signed URL, sign-on-read)

PRI-496: returns a signed playback URL for the server-side session recording. Requires the stream to have been created with recording: true and to have ended with a stored recording. 404 resource_not_found when recording was not enabled; 409 resource_conflict while the stream is still active, when capture failed, or when no recording was stored. URL TTL 1h — re-fetch for a fresh one.

get/v1/streams/{id}/recording

Request

  • Base URL: https://api.primateintelligence.ai
  • URL: https://api.primateintelligence.ai/v1/streams/{id}/recording
  • Auth: HTTP bearer

Path parameters

idstring required

Response

Signed recording URL.

object'stream_recording' required
stream_idstring required

Stream resource id (prefixed ULID). P6 §4.8.

urlstring uri required

Signed playback URL — fresh on every GET, 1h TTL. Re-fetch for a new one.

expires_atstring required

RFC 3339 expiry of the signed URL.

content_type'video/h264' required
container'h264-annex-b' required

Raw H.264 Annex-B elementary stream. Lossless remux to MP4: ffmpeg -i in.h264 -c copy out.mp4.

Example response

{
  "stream_id": "st_01KX12XX3BNM688AWHX7406HCF"
}

Changes

No recorded changes to this operation across all 1 revision of this API.