Skip to content

API: Recordings

Add a finished recording to the project (a person in the browser only; agents can then read it)

POST /api/v1/recordings/{id}/confirm: Add a finished recording to the project (a person in the browser only; agents can then read it)

Last updated:

POST/api/v1/recordings/{id}/confirm

Authentication#

Send the secret in the header Authorization: Bearer <secret>: the local token in local mode, an API key in network mode. An API key needs the media scope; the local token has every scope. See the API overview for both modes.

Path parameters#

NameTypeRequiredDescription
idstringyesA recording id, rec_ and 10 characters.. min length 1

Request body#

Content type application/json.

The body has no members.

Responses#

200 OK#

Content type application/json. Schema: Recording.

NameTypeRequiredDescription
actorstringno
asset_idstringno
bytesinteger (int64)no
created_atstring (date-time)no
droppedinteger (int64)no
duration_msinteger (int64)no
encoderstringno
ended_atstring (date-time) or nullno
errorError or any or null or nullno
events_countinteger (int64)no
fpsintegerno
framesinteger (int64)no
heightintegerno
levelsRecordingLevels or any or null or nullno
marksarray of RecordingMarkno
pausesarray of RecordingPauseno
planRecordingPlan or any or null or nullno
project_idstringno
proposalsarray of RecordingProposalno
recording_idstringno
reviewstringno
sourceRecordingSourceno
started_atstring (date-time) or nullno
statestringno
stop_reasonstringno
textstringno
tracksarray of RecordingTrackno
uploadRecordingUpload or any or null or nullno
widthintegerno

400#

Validation failed; errors maps each field to its messages and issues lists each problem with its code, key and params

Content type application/problem+json. Schema: Problem.

401 Unauthorized#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

403#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

404#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

409#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

422 Unprocessable Content#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

429#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

Any other status#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

curl -X POST "http://127.0.0.1:7878/api/v1/recordings/PROJECT_ID/confirm" \
  -H "Authorization: Bearer $STUARTY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Response examples

{
  "actor": "string",
  "asset_id": "string",
  "bytes": 0,
  "created_at": "2006-01-02T15:04:05Z",
  "dropped": 0,
  "duration_ms": 0,
  "encoder": "string",
  "ended_at": "2006-01-02T15:04:05Z",
  "error": {
    "code": "string",
    "details": {},
    "hint": "string",
    "message": "string",
    "op_index": 0,
    "path": "string",
    "retryable": false
  },
  "events_count": 0,
  "fps": 0,
  "frames": 0,
  "height": 0,
  "levels": {
    "microphone": 0,
    "system": 0
  },
  "marks": [
    {
      "actor": "string",
      "at_ms": 0,
      "created_at": "2006-01-02T15:04:05Z",
      "end_ms": 0,
      "kind": "string",
      "n": 0,
      "note": "string"
    }
  ],
  "pauses": [
    {
      "from_ms": 0,
      "to_ms": 0
    }
  ],
  "plan": {
    "camera": "string",
    "events": false,
    "fps": 0,
    "microphone": "string",
    "notes": "string",
    "script_id": "string",
    "source_id": "string",
    "system_audio": false
  },
  "project_id": "string",
  "proposals": [
    {
      "actor": "string",
      "created_at": "2006-01-02T15:04:05Z",
      "decided_at": "2006-01-02T15:04:05Z",
      "decided_by": "string",
      "proposal_id": "string",
      "ranges": [],
      "revision": 0,
      "state": "string"
    }
  ],
  "recording_id": "string",
  "review": "string",
  "source": {
    "id": "string",
    "kind": "string",
    "name": "string"
  },
  "started_at": "2006-01-02T15:04:05Z",
  "state": "string",
  "stop_reason": "string",
  "text": "string",
  "tracks": [
    {
      "asset_id": "string",
      "bytes": 0,
      "duration_ms": 0,
      "kind": "string",
      "lost": false,
      "start_ms": 0
    }
  ],
  "upload": {
    "container": "string",
    "max_chunk_bytes": 0,
    "tracks": [
      {}
    ]
  },
  "width": 0
}

The examples are built from the schemas of the OpenAPI document, so a value is a placeholder of its type. The fields that carry the real values are in the tables.