curl --request POST \
--url https://api.callab.ai/v1/calls \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ai_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_sid": "<string>",
"call_from": "<string>",
"call_to": "<string>",
"call_direction": "<string>",
"workspace": "<string>",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_dynamic_variables": {}
}
'{
"status": "<string>",
"message": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_sid": "<string>",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ai_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_provider": "<string>",
"call_from": "<string>",
"call_to": "<string>",
"call_duration": 123,
"call_status": "<string>",
"call_direction": "<string>",
"is_test": true,
"call_rating": 123,
"cost": 123,
"price_unit": "<string>",
"latency": 123,
"disconnect_reason": "<string>",
"analysis_sentiment": "<string>",
"agent_task_status": "<string>",
"agent_task_feedback": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "<string>",
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_feedback": "<string>",
"record_url": "<string>",
"transcript": "<string>",
"transcript_object": {},
"transcript_language": "<string>",
"metadata": {},
"agent_dynamic_variables": {},
"agent_post_call_outcomes": {},
"notes": "<string>",
"deleted_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z"
}
}Creates a new call in the store
curl --request POST \
--url https://api.callab.ai/v1/calls \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ai_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_sid": "<string>",
"call_from": "<string>",
"call_to": "<string>",
"call_direction": "<string>",
"workspace": "<string>",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_dynamic_variables": {}
}
'{
"status": "<string>",
"message": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_sid": "<string>",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ai_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_provider": "<string>",
"call_from": "<string>",
"call_to": "<string>",
"call_duration": 123,
"call_status": "<string>",
"call_direction": "<string>",
"is_test": true,
"call_rating": 123,
"cost": 123,
"price_unit": "<string>",
"latency": 123,
"disconnect_reason": "<string>",
"analysis_sentiment": "<string>",
"agent_task_status": "<string>",
"agent_task_feedback": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "<string>",
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_feedback": "<string>",
"record_url": "<string>",
"transcript": "<string>",
"transcript_object": {},
"transcript_language": "<string>",
"metadata": {},
"agent_dynamic_variables": {},
"agent_post_call_outcomes": {},
"notes": "<string>",
"deleted_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
call to add to the store
Data required to create a new call.
Identifier of the campaign this call is part of
Identifier of the AI agent to be used for the call
Call SID identifier from the provider
The phone number or identifier to call from
The phone number or identifier to call to
Direction of the call (e.g., outbound, inbound)
Identifier for the workspace where this call is being made
Optional: Identifier of the contact to be called
Optional: Initial dynamic variables for the AI agent
call response
Status of the response, e.g., 'ok' or 'error'
A descriptive message for the response
The data payload, which can be the created call or an error string.
Show child attributes
Unique identifier for the call
Call SID from the provider (e.g., Twilio SID)
Identifier of the company associated with this call
Identifier of the AI agent that handled or is related to this call
Name of the call provider (e.g., Twilio, Vonage)
Caller's phone number or identifier
Recipient's phone number or identifier
Duration of the call in seconds. For non-completed calls, this might be 0 or current duration.
Current status of the call (e.g., ringing, in-progress, completed, failed, busy, no-answer)
Direction of the call (e.g., inbound, outbound)
Flag indicating if this is a test call
Rating assigned to the call (e.g., 1-5 stars)
Cost incurred for this call
Currency or unit of the price (e.g., USD)
Network or processing latency associated with the call in milliseconds
Reason for call disconnection if it did not complete normally
Overall sentiment analysis result for the call (e.g., positive, neutral, negative)
Status of any automated agent task associated with the call
Feedback or result from the agent's task
Timestamp indicating when the call record was created in the system
Timestamp indicating when the call record was last updated
Identifier for the workspace this call belongs to
Identifier of the campaign this call belongs to, if any
Identifier of the contact involved in this call, if any
Textual feedback provided for the call
URL of the call recording, if available
Full text transcript of the call
Structured transcript object (e.g., JSON array of segments with speaker and text)
Detected language of the transcript (e.g., 'en-US')
Additional custom key-value data associated with the call
Dynamic variables used or populated by the AI agent during the call
Structured outcomes or data points recorded by the agent after the call
User-added notes related to the call
Timestamp indicating when the call record was soft-deleted, if applicable
Timestamp indicating when the call actually started (e.g., when answered)
Timestamp indicating when the call actually ended
Timestamp for the next scheduled retry attempt, if applicable
Was this page helpful?