> ## Documentation Index
> Fetch the complete documentation index at: https://help.commbox.io/llms.txt
> Use this file to discover all available pages before exploring further.
# Transcribe a Call Recording
> This API submits a call recording for transcription. The transcript is written back into the conversation as speaker-attributed messages.
The request is accepted immediately and processed asynchronously – use the returned **request_id** with the GET status API to follow its progress.
The recording can be supplied in one of three ways:
- activity_id – reference an existing call-recording activity already on the conversation.
- recording_path – a path on the channel's configured recording domain, which CommBox downloads.
- file upload – send the audio file directly as *multipart/form-data*.
Note: Sending both an activity_id and a recording (path/file) returns ambiguous_input; sending none returns missing_input.
Required path param is the **Object (conversation) Id**.(POST) /objects/OBJECT_ID/transcribe
Example:
https://api.commbox.io/objects/293854/transcribe
## OpenAPI
````json POST /objects/{OBJECT_ID}/transcribe
{
"openapi": "3.0.3",
"info": {
"title": "CommBox API",
"x-logo": {
"url": "https://www.commbox.io/logo/commbox_logo_large.png"
},
"version": "2.07",
"termsOfService": "https://www.commbox.io/end-user-license-agreement-eula/",
"contact": {
"name": "commbox",
"url": "https://www.commbox.io",
"email": "contactus@commbox.io"
}
},
"servers": [
{
"url": "https://api.commbox.io/",
"description": "Production server"
}
],
"security": [
{
"BearerAuth": []
}
],
"tags": [
{
"name": "Core",
"description": "
Systemwide verification"
},
{
"name": "Objects",
"description": "
Objects are conversations between the AI Agent or the human agent and the customers, where each segment of the conversation is referred to as a Child. Every conversation must have a designated Stream – a communication channel such as Chat, Email, Text/SMS, etc., through which the conversation takes place.
The Object APIs category concentrates on a specific conversation, where the Stream is part of the identifying parameters. In contrast, the Streams APIs category, the Channel is the focal point of the request, and the objects and users are the filtering aspects."
},
{
"name": "Media",
"description": "Converting media files to Base64"
},
{
"name": "AI Services",
"description": "APIs that provide AI capabilities by the platform. "
},
{
"name": "Streams",
"description": "
Streams are communication channels used in CommBox, such as Chat, WhatsApp, SMS/Text, etc. In the Streams category of APIs, the channel is the focal point of the request, and the objects and users are the filtering aspects. See the Enums Section for available channels and their CommBox code."
},
{
"name": "Tags",
"description": "
Tags are a classification tool for summarizing aspects of the conversation or the user. It can mark the conversation to indicate a new sale or identify a customer as not interested in the product. To help manage the Tags assets, Tags can be grouped with a common identifier."
},
{
"name": "SMS",
"description": "
Sending customers **SMS messages** (Texting) requires an initial opt-in step, which is not offered by CommBox and is the sole responsibility of the sending entity (Business)."
},
{
"name": "WhatsApp",
"description": "
CommBox facilitates activities in **WABA** for the clients. Our platform helps clients create new templates and manage existing ones.
**Opt-in for WhatsApp**
Before sending WhatsApp messages to someone, you must first receive opt-in permission confirming that they wish to receive future messages from you on WhatsApp. This can be done using any channel your business uses to communicate with people — your website, app, email, retail location, etc.- The opt-in must be an active opt-in, which means it must be triggered by a user action, such as entering a phone number or checking a box to indicate consent.
- The opt-in must clearly state your business’ name.
- Clear opt-in messaging so that the customers know what type(s) of messaging they are signing up for.
For more information, please visit: https://developers.facebook.com/docs/whatsapp/guides/opt-in/"
},
{
"name": "Campaigns",
"description": "Send WhatsApp campaigns via an API. Campaigns are reflected in the metrics page in the platform."
},
{
"name": "Users",
"description": "
**Users** are people recorded in CommBox and they include both the business side and the customers.
Managers are APIs that deal with the business personas such as Admins, Agents, Team leaders, etc., and they include **Profiles**, **Presence**, **Assignments**, **Notifications**, and **Teams** sub-categories.
General USERS"
},
{
"name": "Managers",
"description": "
The **MANAGERS** APIs category relates to activities involving the Admins, Team Leaders, Agents, and any other business-related persona. This category includes **Profiles**, **Presence**, **Assignments**, **Notifications**, and **Teams** sub-categories."
},
{
"name": "Profiles",
"description": "
**Profiles** relate to system permissions and enabled activities assigned to a group of agents (managers).
When looking for a specific user, the USER ID is required.
The profile ID is required when selecting a specific profile (See Enum section)."
},
{
"name": "Presence",
"description": "
The Presence APIs relate to the agent availability status. Active and ready for assignment, Busy, or Away from the desk. Additional statuses can be created by the admin."
},
{
"name": "Assignments",
"description": "
The **Assignments** category relates to conversations (Objects) assigned to a specific agent."
},
{
"name": "Teams",
"description": "A Team is a group of agents with specific business agendas, roles, and permissions. Admins and Team Managers can set up Team Managers to create and manage teams and give those teams specific inbox filters, tags, and knowledge-based assets."
},
{
"name": "Audiences",
"description": "The Audiences APIs allow the creation, editing and listing of organizational audiences used for campaigns."
},
{
"name": "Forms",
"description": "The Forms APIs allow agents to assist customers in completing and signing forms issued by the organization. Once the customer submits the form, a new object is created that includes a link to the original conversation and stores the completed, signed form as an attachment."
},
{
"name": "Authentication",
"description": "Authentication APIs provide accessibility to the system."
},
{
"name": "Automation",
"description": "
Automation APIs are related to chatbot capabilities."
},
{
"name": "Transcription",
"description": "
**Transcription** turns a call recording into readable, speaker-attributed messages inside the conversation."
}
],
"x-tagGroups": [
{
"name": "API Calls",
"tags": [
"Core",
"Objects",
"Media",
"AI Services",
"Streams",
"Tags",
"SMS",
"WhatsApp",
"Users",
"Managers",
"Profiles",
"Presence",
"Assignments",
"Teams",
"Audiences",
"Forms",
"Authentication",
"Automation"
]
}
],
"paths": {
"/objects/{OBJECT_ID}/transcribe": {
"post": {
"tags": [
"Transcription"
],
"summary": "Transcribe a Call Recording",
"description": "This API submits a call recording for transcription. The transcript is written back into the conversation as speaker-attributed messages.
The request is accepted immediately and processed asynchronously – use the returned **request_id** with the GET status API to follow its progress.
The recording can be supplied in one of three ways:- activity_id – reference an existing call-recording activity already on the conversation.
- recording_path – a path on the channel's configured recording domain, which CommBox downloads.
- file upload – send the audio file directly as *multipart/form-data*.
Note: Sending both an activity_id and a recording (path/file) returns ambiguous_input; sending none returns missing_input.
Required path param is the **Object (conversation) Id**.(POST) /objects/OBJECT_ID/transcribe
Example:
https://api.commbox.io/objects/293854/transcribe
",
"operationId": "Transcribe_Call_Recording",
"parameters": [
{
"name": "OBJECT_ID",
"in": "path",
"description": "Object Id is a CommBox generated number for the conversation.",
"required": true,
"schema": {
"$ref": "#/components/parameters/OBJECT_ID/schema"
}
}
],
"requestBody": {
"description": "Use *application/json* to reference an existing activity (**activity_id**) or a recording path (**recording_path**). Use *multipart/form-data* to upload the audio file itself.",
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"activity_id": {
"description": "A CommBox generated number for an existing call-recording activity on the conversation. Mutually exclusive with recording_path / file upload.",
"type": "integer",
"format": "int64",
"example": 982310
},
"recording_path": {
"description": "Path of the recording on the channel's configured recording domain (relative, must not be an absolute URL). Mutually exclusive with activity_id.",
"type": "string",
"example": "/2024/05/call-8842.wav"
},
"client_reference_id": {
"description": "Your own identifier for this request. When supplied, the request becomes idempotent – repeating it with identical content returns the original request_id.",
"type": "string",
"example": "twilio-seg-9f3a"
},
"speakers": {
"description": "Ordered list of the speakers expected in the recording. An entry with managerId is attributed to that agent; an entry without one is attributed to the customer of the conversation.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "Display name of the speaker.",
"type": "string",
"example": "Agent Dan"
},
"managerId": {
"description": "A CommBox generated number for the agent (manager). Omit for the customer.",
"type": "integer",
"format": "int64",
"example": 4012
}
}
}
}
},
"example": {
"activity_id": 982310,
"client_reference_id": "twilio-seg-9f3a",
"speakers": [
{
"name": "Agent Dan",
"managerId": 4012
},
{
"name": "Customer"
}
]
}
}
},
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"file": {
"description": "The audio file to transcribe.",
"type": "string",
"format": "binary"
},
"client_reference_id": {
"description": "Your own identifier for this request (idempotency key).",
"type": "string",
"example": "twilio-seg-9f3a"
},
"recording_path": {
"description": "Alternative to uploading a file – a path on the channel's configured recording domain.",
"type": "string",
"example": "/2024/05/call-8842.wav"
},
"speakers": {
"description": "The speakers array, JSON-encoded as a string.",
"type": "string",
"example": "[{\"name\":\"Agent Dan\",\"managerId\":4012},{\"name\":\"Customer\"}]"
}
}
}
}
}
},
"responses": {
"201": {
"description": "**Accepted** - The transcription request was accepted and is being processed",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"example": 201
},
"description": {
"type": "string",
"example": "Accepted"
},
"response_time": {
"type": "string",
"example": "2024-08-06T07:51:52.2581942Z"
},
"data": {
"type": "object",
"properties": {
"request_id": {
"description": "A CommBox generated identifier for the transcription request. Use it with the GET status API.",
"type": "string",
"example": "req_8f3a12c47b9e4d05"
},
"status": {
"description": "Status of the request at submission time.",
"type": "string",
"example": "accepted"
},
"object_id": {
"description": "A CommBox generated number for the conversation.",
"type": "integer",
"example": 293854
},
"activity_id": {
"description": "The referenced call-recording activity. Returned only when activity_id was supplied – otherwise the activity is created during processing and appears in the GET status response.",
"type": "integer",
"example": 982310
},
"client_reference_id": {
"description": "Echo of the supplied client_reference_id. Returned only when one was supplied.",
"type": "string",
"example": "twilio-seg-9f3a"
}
}
}
}
}
}
}
},
"400": {
"description": "**Bad Request** - The request could not be understood by the server. Incoming parameters might not be valid (missing_input, ambiguous_input, invalid_speakers, activity_id_required, activity_not_found, activity_wrong_type, file_too_large, blocked_url)",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"example": 400
},
"description": {
"type": "string",
"example": "Provide either activity_id or a recording (recording_path / file), not both."
},
"response_time": {
"type": "string",
"example": "2024-08-06T07:51:52.2581942Z"
},
"data": {
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"description": "Machine-readable error code.",
"type": "string",
"example": "ambiguous_input"
},
"message": {
"type": "string",
"example": "Provide either activity_id or a recording (recording_path / file), not both."
}
}
}
}
}
}
}
}
}
},
"401": {
"description": "**Unauthorized** - The supplied credentials, if any, are not sufficient to access the resource"
},
"404": {
"description": "**Not found** - The requested resource is not found"
},
"409": {
"description": "**Conflict** – The provided client_reference_id has already been used for a different transcription request. Use a new client_reference_id or resend the original request content"
},
"422": {
"description": "**Unprocessable Entity** - Transcription is not installed or not enabled for this channel (transcription_not_configured)"
},
"429": {
"description": "**Too Many Requests** - Too many concurrent transcription requests for this brand (Throttling). A Retry-After header is returned"
},
"500": {
"description": "**Server Error** - The server could not return the representation due to an internal server error"
},
"501": {
"description": "**Not Implemented** - The requested operation is not supported"
}
}
}
}
},
"components": {
"securitySchemes": {
"BearerAuth": {
"type": "http",
"scheme": "bearer",
"description": "API key is needed to authorize requests. You can get your API key via the management console. A Bearer Token is needed to be set in the Authorization header of every API call. For additional support you can contact us."
}
}
}
}
````