Recording¶
Recording¶
{
"id": "<string>",
"customer_id": "<string>",
"owner_type": "<string>",
"owner_id": "<string>",
"activeflow_id": "<string>",
"reference_type": "<string>",
"reference_id": "<string>",
"status": "<string>",
"format": "<string>",
"on_end_flow_id": "<string>",
"tm_start": "<string>",
"tm_end": "<string>",
"tm_create": "<string>",
"tm_update": "<string>",
"tm_delete": "<string>"
}
id(UUID): The recording’s unique identifier. Returned when creating a recording viaPOST /calls/{id}/recording_startor listing viaGET /recordings.customer_id(UUID): The customer who owns this recording. Obtained from theidfield ofGET /customers.owner_type(enum string): The type of owner for this recording. The shared schema allowsagent(owned by a specific agent) or empty string (no specific owner), but recordings started viarecording_start(call or conference) are currently always created with an emptyowner_type.owner_id(UUID): The ID of the owner. Whenowner_typeisagent, this is an agent UUID fromGET /agents. Set to00000000-0000-0000-0000-000000000000if no owner.activeflow_id(UUID): The ID of the active flow associated with this recording. Obtained from theidfield ofGET /activeflows. Set to00000000-0000-0000-0000-000000000000if no active flow.reference_type(enum string): The type of resource being recorded. See Reference Type.reference_id(UUID): The ID of the call or conference being recorded. Obtained fromGET /callsorGET /conferences.status(enum string): The recording’s current status. See Status.format(enum string): The recording file format. See Format.on_end_flow_id(UUID): The flow to execute when the recording ends. Obtained from theidfield ofGET /flows. Set to00000000-0000-0000-0000-000000000000if no flow is assigned.tm_start(string, ISO 8601, optional): Timestamp when the recording started capturing audio. Absent from the response entirely (notnulland not a sentinel value) until the recording actually starts.tm_end(string, ISO 8601, optional): Timestamp when the recording stopped capturing audio. Absent from the response until the recording ends.tm_create(string, ISO 8601, optional): Timestamp when the recording resource was created.tm_update(string, ISO 8601, optional): Timestamp of the last update to any recording property.tm_delete(string, ISO 8601, optional): Timestamp when the recording was deleted. Absent from the response if the recording has not been deleted.
Note
AI Implementation Hint
Unlike most other VoIPBIN resources, the Recording struct’s timestamp fields are omitted from the JSON response entirely when unset, rather than using the 9999-01-01 00:00:00.000000 sentinel or a null value used elsewhere in the platform. Check for the field’s presence (e.g. "tm_delete" in response) rather than comparing its value against a sentinel.
Reference Type¶
All possible values for the reference_type field:
Type |
Description |
|---|---|
call |
Recording of a single call. Audio from both parties is mixed into one channel. The |
confbridge |
Recording of a conference bridge. Audio from all participants is mixed together. The |
Status¶
All possible values for the status field:
Status |
Description |
|---|---|
initiating |
Preparing the recording. Audio capture is being set up. The recording file is not yet available. |
recording |
Actively capturing audio. The file is being written to storage in real-time. |
stopping |
Recording stop has been requested. Audio capture is being finalized. |
ended |
Recording is complete. The file is ready for download via |
Format¶
All possible values for the format field:
Format |
Description |
|---|---|
wav |
WAV format (PCM). 8 kHz sample rate, 16-bit, mono. Approximately 1 MB per minute of audio. |