GET
/
v1
/
calls
/
{callId}
Get Phone Call
curl --request GET \
  --url https://api.sigmamind.ai/v1/calls/{callId} \
  --header 'X-API-Key: <api-key>'
{
  "callId": "AuUKK371Spr5nHJS",
  "callType": "inbound",
  "conversationId": 123456789,
  "phoneNumber": "Object",
  "campaign": {
    "campaignId": "XiQEBcj9cc5TFRB4",
    "campaignName": "My Campaign",
    "campaignStatus": "live",
    "scheduledDate": "2023-11-07T05:31:56Z",
    "concurrentCalls": 5,
    "agent": {
      "name": "New AI Agent",
      "agentId": "D5D0p7TUs66TTAEAx",
      "status": "active"
    },
    "phoneNumber": "Object",
    "errors": [
      "<string>"
    ],
    "scheduled": true
  },
  "status": "completed",
  "startTime": "2021-04-20T10:00:00.000Z",
  "endTime": "2021-04-20T10:00:00.000Z",
  "duration": 120,
  "terminationReason": "inactive",
  "createdAt": "2021-04-20T10:00:00.000Z",
  "updatedAt": "2021-04-20T10:00:00.000Z",
  "variables": {
    "customer_name": "Michael"
  }
}

Authorizations

X-API-Key
string
header
required

API Key is required in header. You can find it in the settings

Path Parameters

callId
string
required

A unique identifier for any call, whether inbound, outbound, or web-based.

Response

OK

callId
string

A unique identifier for any call, whether inbound, outbound, or web-based.

Example:

"AuUKK371Spr5nHJS"

callType
enum<string>

Specifies the direction or type of the call.

Available options:
inbound, outbound, web
Example:

"inbound"

conversationId
integer

Unique identifier for the conversation associated with the call.

Example:

123456789

phoneNumber
object

Phone number details of the caller

Example:

"Object"

campaign
object
status
enum<string>

Status of the call

Available options:
scheduled, in-progress, completed, failed
Example:

"completed"

startTime
string<date-time>

Timestamp indicating when the call began.

Example:

"2021-04-20T10:00:00.000Z"

endTime
string<date-time>

Timestamp indicating when the call ended.

Example:

"2021-04-20T10:00:00.000Z"

duration
integer

Total duration of the call in seconds.

Example:

120

terminationReason
enum<string>

Reason for call termination

Available options:
customer_ended_call, agent_ended_call, inactivity, busy, no-answer, failed
Example:

"inactive"

createdAt
string<date-time>

The timestamp when the call record was created.

Example:

"2021-04-20T10:00:00.000Z"

updatedAt
string<date-time>

The timestamp when the call record was last updated.

Example:

"2021-04-20T10:00:00.000Z"

variables
object

A set of dynamic key-value pairs required by the selected Agent. These variables allow personalization of the call, such as passing the customer’s name or other contextual details.

Example:
{ "customer_name": "Michael" }