Calls are the core resource for voice interactions. The API supports creating, retrieving, updating, and deleting calls, and accessing call metadata, state, and participants.
A Call resource represents a connection between a voice channel and Sinch.
Using this resource, customers can initiate a call, fetch information about a completed call, fetch a list of calls made to and from the Voice service, and redirect or end a call in progress.
A call always has a direction, either inbound or outbound. The direction of the call dictates when and how the call can be controlled.
An outbound call is created when a DIAL command is invoked. Outbound calls can be controlled by supplying SVAMLv2 commands when creating the call, via the responses to the call's webhooks, or by sending a PATCH request.
An inbound call is created when the service receives a call via one of the Sinch voice channels [Phone, In-App, SIP, Streams]. To handle incoming calls, a service webhook must be configured via the services API or the dashboard.
List and filter calls made with Sinch
Only include calls that started at or after startTime.
Use a more precise timestamp to narrow the results. For example:
2025-02-01matches calls starting from 2025-02-01T00:00:00Z2025-02-01T14:00:00Zmatches calls starting from 14:00:00Z on 2025-02-01
Only include calls that ended before endTime (exclusive).
Use a more precise timestamp to narrow the results. For example:
2025-03-01matches calls ending up to 2025-03-01T00:00:00Z2025-03-01T14:00:00Zmatches calls ending up to 14:00:00Z on 2025-03-01
Filter results to only include calls whose callResult matches the specified value.
If omitted, calls with any result are included.
| Enum Value | Description |
|---|---|
| QUEUED | The call is queued for initiation. This is a transitional state. |
| INITIATED | The call is connecting but the recipient has not yet answered. This is a transitional state. |
| IN_PROGRESS | The call has been answered and is in progress. This is a transitional state. |
| COMPLETED | The call was answered and is ended. This is a final state. |
| REJECTED | The call was rejected by the recipient. |
| NO_ANSWER | The call was not answered by the recipient. |
| CANCEL | The call was cancelled. |
| BUSY | The call was not answered because the recipient was busy. |
| FAILED | The call could not be completed. |
Filter results to only include calls whose callReason matches the specified value.
If omitted, calls with any reason are included.
| Enum Value | Description |
|---|---|
| OK | The call was completed successfully. |
| NOT_AVAILABLE | The callee was not available. |
| CALLER_HANGUP | The caller hung up the call. |
| CALLEE_HANGUP | The callee hung up the call. |
| MANAGER_HANGUP | The call was ended by the call manager. |
| DID_NOT_FOUND | The DID number was not found. |
| INVALID_SCRIPT | The SVAML script was invalid. |
| UNKNOWN_PRODUCT | The product associated with the call is unknown. |
| NO_MORE_ROUTES | There are no more routes to complete the call. |
| ERROR | An error occurred during the call. |
- Endpoint which enables consuming the Voice API globally - Redirected by Sinch to the closest region.https://voice.api.sinch.com/v2/projects/{projectId}/calls
- North America 1 - Easthttps://us1.voice.api.sinch.com/v2/projects/{projectId}/calls
- South America 1 - Easthttps://br1.voice.api.sinch.com/v2/projects/{projectId}/calls
- Europe 1 - Centralhttps://eu1.voice.api.sinch.com/v2/projects/{projectId}/calls
- Asia Pacific 1 - Southeasthttps://sg1.voice.api.sinch.com/v2/projects/{projectId}/calls
- https://au1.voice.api.sinch.comhttps://au1.voice.api.sinch.com/v2/projects/{projectId}/calls
curl -i -X GET \
-u '<username>:<password>' \
'https://voice.api.sinch.com/v2/projects/{projectId}/calls?serviceId=6e124178-c29d-46a5-943c-5c2ae544aade&from=%2B15551234567&to=%2B15551234568&callType=PHONE&startTime=2025-02-01T14%3A00%3A00Z&endTime=2025-03-01T14%3A00%3A00Z&callResult=IN_PROGRESS&callReason=OK&pageSize=20&page=1'A list of calls
Pagination links for navigating through pages of results in a paginated list response.
Available link properties:
first- Absolute URI of the first pagelast- Absolute URI of the last pagenext- Absolute URI of the next page (omitted if this is the last page)prev- Absolute URI of the previous page (omitted if this is the first page)self- Absolute URI of the current page
{ "calls": [ { … }, { … } ], "links": { "first": "https://voice.api.sinch.com/v2/projects/5c5bf2b1-35ae-4825-ab89-457e07bb60e6/calls?page=1&pageSize=20", "last": "https://voice.api.sinch.com/v2/projects/5c5bf2b1-35ae-4825-ab89-457e07bb60e6/calls?page=5&pageSize=20", "prev": "https://voice.api.sinch.com/v2/projects/5c5bf2b1-35ae-4825-ab89-457e07bb60e6/calls?page=1&pageSize=20", "self": "https://voice.api.sinch.com/v2/projects/5c5bf2b1-35ae-4825-ab89-457e07bb60e6/calls?page=2&pageSize=20", "next": "https://voice.api.sinch.com/v2/projects/5c5bf2b1-35ae-4825-ab89-457e07bb60e6/calls?page=3&pageSize=20" }, "meta": { "totalCount": 100, "pageCount": 5 } }