GET
/
call
curl --request GET \
  --url https://api.vapi.ai/call \
  --header 'Authorization: Bearer <token>'
[
  {
    "type": "inboundPhoneCall",
    "phoneCallProvider": "twilio",
    "phoneCallTransport": "sip",
    "status": "queued",
    "endedReason": "assistant-error",
    "maxDurationSeconds": 1800,
    "id": "<string>",
    "orgId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "startedAt": "2023-11-07T05:31:56Z",
    "endedAt": "2023-11-07T05:31:56Z",
    "cost": 123,
    "costBreakdown": {
      "transport": 123,
      "stt": 123,
      "llm": 123,
      "tts": 123,
      "vapi": 123,
      "total": 123,
      "llmPromptTokens": 123,
      "llmCompletionTokens": 123,
      "ttsCharacters": 123
    },
    "transcript": "<string>",
    "recordingUrl": "<string>",
    "stereoRecordingUrl": "<string>",
    "summary": "<string>",
    "messages": [
      {}
    ],
    "phoneCallProviderId": "<string>",
    "phoneCallProviderBypassEnabled": true,
    "phoneCallProviderDetails": {
      "statusCallbackEvent": "initiated",
      "machineDetection": "Enable",
      "to": "<string>",
      "from": "<string>",
      "twiml": "<string>",
      "statusCallback": "<string>",
      "asyncAmd": "<string>",
      "asyncAmdStatusCallback": "<string>",
      "record": true
    },
    "webCallUrl": "<string>",
    "webCallSipUri": "<string>",
    "forwardedPhoneNumber": "<string>",
    "assistantId": "<string>",
    "assistantOverrides": {
      "transcriber": {
        "provider": "deepgram",
        "model": "nova-2",
        "language": "cs",
        "smartFormat": true,
        "keywords": [
          "<string>"
        ]
      },
      "model": {
        "messages": [
          {
            "content": "<string>",
            "role": "assistant",
            "function_call": {},
            "tool_calls": [
              {}
            ]
          }
        ],
        "tools": [
          {
            "type": "transferCall",
            "messages": [
              {
                "type": "request-start",
                "content": "<string>",
                "conditions": [
                  {
                    "param": "<string>",
                    "value": {},
                    "operator": "eq"
                  }
                ]
              }
            ],
            "destinations": [
              {}
            ],
            "server": {
              "url": "<string>",
              "secret": "<string>"
            },
            "function": {
              "name": "<string>",
              "description": "<string>",
              "parameters": {
                "type": "object",
                "properties": {},
                "required": [
                  "<string>"
                ]
              }
            }
          }
        ],
        "provider": "openai",
        "model": "gpt-4o",
        "fallbackModels": [
          "gpt-4-0125-preview",
          "gpt-4-0613"
        ],
        "semanticCachingEnabled": true,
        "numFastTurns": 1,
        "temperature": 1,
        "knowledgeBase": {
          "topK": 123,
          "fileIds": [
            "<string>"
          ],
          "provider": "canonical"
        },
        "maxTokens": 525,
        "emotionRecognitionEnabled": true
      },
      "voice": {
        "inputMinCharacters": 10,
        "inputPunctuationBoundaries": [
          "。",
          ",",
          ".",
          "!",
          "?",
          ";",
          ")",
          "،",
          "۔",
          "।",
          "॥",
          "|",
          "||",
          ",",
          ":"
        ],
        "fillerInjectionEnabled": true,
        "provider": "azure",
        "voiceId": "andrew",
        "speed": 1.25
      },
      "forwardingPhoneNumber": "<string>",
      "firstMessageMode": "assistant-speaks-first",
      "voicemailDetectionTypes": [
        "machine_end_beep",
        "machine_end_silence",
        "machine_end_other"
      ],
      "recordingEnabled": true,
      "endCallFunctionEnabled": true,
      "dialKeypadFunctionEnabled": true,
      "hipaaEnabled": true,
      "clientMessages": [
        "transcript",
        "hang",
        "tool-calls",
        "speech-update",
        "metadata",
        "conversation-update"
      ],
      "serverMessages": [
        "end-of-call-report",
        "status-update",
        "hang",
        "tool-calls"
      ],
      "silenceTimeoutSeconds": 30,
      "responseDelaySeconds": 0.4,
      "llmRequestDelaySeconds": 0.1,
      "numWordsToInterruptAssistant": 1,
      "maxDurationSeconds": 1800,
      "backgroundSound": "office",
      "backchannelingEnabled": true,
      "variableValues": {},
      "name": "<string>",
      "firstMessage": "<string>",
      "voicemailDetectionEnabled": true,
      "voicemailMessage": "<string>",
      "endCallMessage": "<string>",
      "endCallPhrases": [
        "<string>"
      ],
      "metadata": {},
      "serverUrl": "<string>",
      "serverUrlSecret": "<string>",
      "summaryPrompt": "<string>"
    },
    "assistant": {
      "transcriber": {
        "provider": "deepgram",
        "model": "nova-2",
        "language": "cs",
        "smartFormat": true,
        "keywords": [
          "<string>"
        ]
      },
      "model": {
        "messages": [
          {
            "content": "<string>",
            "role": "assistant",
            "function_call": {},
            "tool_calls": [
              {}
            ]
          }
        ],
        "tools": [
          {
            "type": "transferCall",
            "messages": [
              {
                "type": "request-start",
                "content": "<string>",
                "conditions": [
                  {
                    "param": "<string>",
                    "value": {},
                    "operator": "eq"
                  }
                ]
              }
            ],
            "destinations": [
              {}
            ],
            "server": {
              "url": "<string>",
              "secret": "<string>"
            },
            "function": {
              "name": "<string>",
              "description": "<string>",
              "parameters": {
                "type": "object",
                "properties": {},
                "required": [
                  "<string>"
                ]
              }
            }
          }
        ],
        "provider": "openai",
        "model": "gpt-4o",
        "fallbackModels": [
          "gpt-4-0125-preview",
          "gpt-4-0613"
        ],
        "semanticCachingEnabled": true,
        "numFastTurns": 1,
        "temperature": 1,
        "knowledgeBase": {
          "topK": 123,
          "fileIds": [
            "<string>"
          ],
          "provider": "canonical"
        },
        "maxTokens": 525,
        "emotionRecognitionEnabled": true
      },
      "voice": {
        "inputMinCharacters": 10,
        "inputPunctuationBoundaries": [
          "。",
          ",",
          ".",
          "!",
          "?",
          ";",
          ")",
          "،",
          "۔",
          "।",
          "॥",
          "|",
          "||",
          ",",
          ":"
        ],
        "fillerInjectionEnabled": true,
        "provider": "azure",
        "voiceId": "andrew",
        "speed": 1.25
      },
      "forwardingPhoneNumber": "<string>",
      "firstMessageMode": "assistant-speaks-first",
      "voicemailDetectionTypes": [
        "machine_end_beep",
        "machine_end_silence",
        "machine_end_other"
      ],
      "recordingEnabled": true,
      "endCallFunctionEnabled": true,
      "dialKeypadFunctionEnabled": true,
      "hipaaEnabled": true,
      "clientMessages": [
        "transcript",
        "hang",
        "tool-calls",
        "speech-update",
        "metadata",
        "conversation-update"
      ],
      "serverMessages": [
        "end-of-call-report",
        "status-update",
        "hang",
        "tool-calls"
      ],
      "silenceTimeoutSeconds": 30,
      "responseDelaySeconds": 0.4,
      "llmRequestDelaySeconds": 0.1,
      "numWordsToInterruptAssistant": 1,
      "maxDurationSeconds": 1800,
      "backgroundSound": "office",
      "backchannelingEnabled": true,
      "name": "<string>",
      "firstMessage": "<string>",
      "voicemailDetectionEnabled": true,
      "voicemailMessage": "<string>",
      "endCallMessage": "<string>",
      "endCallPhrases": [
        "<string>"
      ],
      "metadata": {},
      "serverUrl": "<string>",
      "serverUrlSecret": "<string>",
      "summaryPrompt": "<string>"
    },
    "customerId": "<string>",
    "customer": {
      "number": "<string>",
      "name": "<string>",
      "extension": "<string>"
    },
    "phoneNumberId": "<string>",
    "phoneNumber": {
      "twilioPhoneNumber": "<string>",
      "twilioAccountSid": "<string>",
      "twilioAuthToken": "<string>",
      "name": "<string>",
      "assistantId": "<string>",
      "serverUrl": "<string>",
      "serverUrlSecret": "<string>"
    },
    "metadata": {}
  }
]

Authorizations

Authorization
string
headerrequired

Retrieve your key from Dashboard.

Query Parameters

assistantId
string

This will return calls with the specified assistantId.

limit
number

This is the maximum number of items to return. Defaults to 100.

createdAtGt
string

This will return items where the createdAt is greater than the specified value.

createdAtLt
string

This will return items where the createdAt is less than the specified value.

createdAtGe
string

This will return items where the createdAt is greater than or equal to the specified value.

createdAtLe
string

This will return items where the createdAt is less than or equal to the specified value.

updatedAtGt
string

This will return items where the updatedAt is greater than the specified value.

updatedAtLt
string

This will return items where the updatedAt is less than the specified value.

updatedAtGe
string

This will return items where the updatedAt is greater than or equal to the specified value.

updatedAtLe
string

This will return items where the updatedAt is less than or equal to the specified value.

Response

200 - application/json
type
enum<string>

This is the type of call.

Available options:
inboundPhoneCall,
outboundPhoneCall,
webCall
phoneCallProvider
enum<string>

This is the provider of the call.

Only relevant for outboundPhoneCall and inboundPhoneCall type.

Available options:
twilio,
vonage
phoneCallTransport
enum<string>

This is the transport of the phone call.

Only relevant for outboundPhoneCall and inboundPhoneCall type.

Available options:
sip,
pstn
status
enum<string>

This is the status of the call.

Available options:
queued,
ringing,
in-progress,
forwarding,
ended
endedReason
enum<string>

This is the explanation for how the call ended.

Available options:
assistant-error,
assistant-not-found,
db-error,
no-server-available,
pipeline-error-extra-function-failed,
pipeline-error-first-message-failed,
pipeline-error-function-filler-failed,
pipeline-error-function-failed,
pipeline-error-openai-llm-failed,
pipeline-error-azure-openai-llm-failed,
pipeline-error-together-ai-llm-failed,
pipeline-error-anyscale-llm-failed,
pipeline-error-openrouter-llm-failed,
pipeline-error-perplexity-ai-llm-failed,
pipeline-error-deepinfra-llm-failed,
pipeline-error-runpod-llm-failed,
pipeline-error-groq-llm-failed,
pipeline-error-anthropic-llm-failed,
pipeline-error-openai-voice-failed,
pipeline-error-deepgram-transcriber-failed,
pipeline-error-deepgram-voice-failed,
pipeline-error-eleven-labs-voice-failed,
pipeline-error-playht-voice-failed,
pipeline-error-lmnt-voice-failed,
pipeline-error-azure-voice-failed,
pipeline-error-rime-ai-voice-failed,
pipeline-error-neets-voice-failed,
pipeline-no-available-llm-model,
server-shutdown,
twilio-failed-to-connect-call,
unknown-error,
vonage-disconnected,
vonage-failed-to-connect-call,
phone-call-provider-bypass-enabled-but-no-call-received,
vapi-error-phone-call-worker-setup-socket-error,
vapi-error-phone-call-worker-worker-setup-socket-timeout,
vapi-error-phone-call-worker-could-not-find-call,
vapi-error-phone-call-worker-call-never-connected,
vapi-error-web-call-worker-setup-failed,
assistant-not-invalid,
assistant-not-provided,
assistant-request-returned-error,
assistant-request-returned-invalid-assistant,
assistant-request-returned-no-assistant,
assistant-request-returned-forwarding-phone-number,
assistant-ended-call,
assistant-said-end-call-phrase,
assistant-forwarded-call,
assistant-join-timed-out,
customer-busy,
customer-ended-call,
customer-did-not-answer,
customer-did-not-give-microphone-permission,
exceeded-max-duration,
manually-canceled,
phone-call-provider-closed-websocket,
pipeline-error-custom-llm-llm-failed,
pipeline-error-eleven-labs-voice-not-found,
pipeline-error-eleven-labs-quota-exceeded,
pipeline-error-eleven-labs-blocked-free-plan,
pipeline-error-eleven-labs-blocked-concurrent-requests,
pipeline-error-eleven-labs-unauthorized-access,
silence-timed-out,
voicemail,
vonage-rejected
maxDurationSeconds
number

This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.

id
string
required

This is the unique identifier for the call.

orgId
string
required

This is the unique identifier for the org that this call belongs to.

createdAt
string
required

This is the ISO 8601 date-time string of when the call was created.

updatedAt
string
required

This is the ISO 8601 date-time string of when the call was last updated.

startedAt
string

This is the ISO 8601 date-time string of when the call was started.

endedAt
string

This is the ISO 8601 date-time string of when the call was ended.

cost
number

This is the cost of the call in USD.

costBreakdown
object

This is the cost of the call in USD.

transcript
string

This is the transcript of the call.

recordingUrl
string

This is the URL of the recording of the call.

stereoRecordingUrl
string

This is the URL of the recording of the call in two channels.

summary
string

This is the summary of the call.

messages
object[]

These are the messages that were spoken during the call.

phoneCallProviderId
string

The ID of the call as provided by the phone number service. callSid in Twilio. conversationUuid in Vonage.

Only relevant for outboundPhoneCall and inboundPhoneCall type.

phoneCallProviderBypassEnabled
boolean

If enabled, prevents Vapi from initiating calls directly. Defaults to disabled. Suitable for external call handling, such as with Twilio Studio Flow, with integration details provided in phoneCallProviderDetails.

Only relevant for outboundPhoneCall and inboundPhoneCall types.

phoneCallProviderDetails
object

This is the phone call provider details to bridge the assistant into the external call. Only filled if phoneCallProviderBypassEnabled is true.

Only relevant for outboundPhoneCall and inboundPhoneCall types.

webCallUrl
string
webCallSipUri
string

This is the SIP URI of the call that the assistant will join.

Only relevant for webCall type.

forwardedPhoneNumber
string

This is the phone number that the call was forwarded to.

assistantId
string | null

This is the assistant that will be used for the call. To use a transient assistant, use assistant instead.

assistantOverrides
object

Overrides for the assistant's settings and template variables.

assistant
object

This is the assistant that will be used for the call. To use an existing assistant, use assistantId instead.

customerId
string

This is the customer that will be called. To call a transient customer , use customer instead.

Only relevant for outboundPhoneCall and inboundPhoneCall type.

customer
object

This is the customer that will be called. To call an existing customer, use customerId instead.

Only relevant for outboundPhoneCall and inboundPhoneCall type.

phoneNumberId
string

This is the phone number that will be used for the call. To use a transient number, use phoneNumber instead.

Only relevant for outboundPhoneCall and inboundPhoneCall type.

phoneNumber
object

This is the phone number that will be used for the call. To use an existing number, use phoneNumberId instead.

Only relevant for outboundPhoneCall and inboundPhoneCall type.

metadata
object

This is the metadata associated with the call.