Create call
Create an outbound call to a given endpoint.
Authorizations:
Request rate limit:
Request Body schema:
application/jsonendpoint required | object Call endpoint. Represents a caller for the inbound calls and a callee for the outbound calls. | ||||||||||
| |||||||||||
from | string Caller identifier. Must be a number in the E.164 format for calls to | ||||||||||
fromDisplayName | string Display name to show when placing calls towards WEBRTC endpoints. Can be any alphanumeric string. | ||||||||||
connectTimeout | integer <int32> <= 60 Time to wait, in seconds, before the called party answers the call. | ||||||||||
recording | object | ||||||||||
| |||||||||||
machineDetection | object | ||||||||||
| |||||||||||
maxDuration | integer <int32> Default: 28800 Max duration in seconds. | ||||||||||
customData | object Custom data. | ||||||||||
| |||||||||||
callsConfigurationId required | string Calls Configuration ID. | ||||||||||
platform | object Platform options. For more details, see documentation. | ||||||||||
| |||||||||||
parentCallId | string <= 128 characters ID of an existing call that initiated this leg. Required for creating a dialog with an existing call. |
Responses
Call created.
Bad request
Unauthorized
Forbidden
Application not found
Too Many Requests
Internal Server Error
Request samples
- Payload
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
{- "endpoint": {
- "type": "PHONE",
- "phoneNumber": "41792036727"
}, - "from": "41793026834",
- "callsConfigurationId": "dc5942707c704551a00cd2ea",
- "platform": {
- "applicationId": "61c060db2675060027d8c7a6"
}
}
Response samples
- 201
- 400
- 401
- 403
- 404
- 429
- 500
{- "id": "d8d84155-3831-43fb-91c9-bb897149a79d",
- "endpoint": {
- "type": "PHONE",
- "phoneNumber": "44790123456"
}, - "from": "44790123456",
- "to": "44790123456",
- "direction": "OUTBOUND",
- "state": "CALLING",
- "media": {
- "audio": {
- "muted": false,
- "deaf": false
}, - "video": {
- "camera": false,
- "screenShare": false
}
}, - "startTime": "2022-01-01T00:00:00.100+0000",
- "answerTime": "2022-01-01T00:00:02.100+0000",
- "ringDuration": 2,
- "callsConfigurationId": "dc5942707c704551a00cd2ea",
- "platform": {
- "applicationId": "61c060db2675060027d8c7a6"
}, - "conferenceId": "034e622a-cc7e-456d-8a10-0ba43b11aa5e",
- "customData": {
- "key1": "value1",
- "key2": "value2"
}
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See