/
API Reference
//
List all services of a pr...
Retrieve a list of voice services in the specified project.
Optionally:
- Filter services by partial match on name or description (
filter) - Return only the default service (
default=true)
Security
BasicAuth or SinchOAuth2
- Endpoint which enables consuming the Voice API globally - Redirected by Sinch to the closest region.https://voice.api.sinch.com/v2/projects/{projectId}/services
- North America 1 - Easthttps://us1.voice.api.sinch.com/v2/projects/{projectId}/services
- South America 1 - Easthttps://br1.voice.api.sinch.com/v2/projects/{projectId}/services
- Europe 1 - Centralhttps://eu1.voice.api.sinch.com/v2/projects/{projectId}/services
- Asia Pacific 1 - Southeasthttps://sg1.voice.api.sinch.com/v2/projects/{projectId}/services
- https://au1.voice.api.sinch.comhttps://au1.voice.api.sinch.com/v2/projects/{projectId}/services
curl -i -X GET \
-u '<username>:<password>' \
'https://voice.api.sinch.com/v2/projects/{projectId}/services?filter=string&isDefault=true&pageSize=20&page=1'A list of services.
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
Response
{ "services": [ { … }, { … } ], "links": { "first": "https://voice.api.sinch.com/v2/projects/5c5bf2b1-35ae-4825-ab89-457e07bb60e6/services?page=1&pageSize=20", "last": "https://voice.api.sinch.com/v2/projects/5c5bf2b1-35ae-4825-ab89-457e07bb60e6/services?page=1&pageSize=20", "self": "https://voice.api.sinch.com/v2/projects/5c5bf2b1-35ae-4825-ab89-457e07bb60e6/services?page=1&pageSize=20" }, "meta": { "totalCount": 2, "pageCount": 1 } }
We'd love to hear from you!
Rate this content: