API Resource |
Example Call |
Make a call to a recipient |
curl -X POST
-H "Authorization: Bearer TOKEN"
-H 'Content-Type: application/json'
-d '{
"from":"",
"to":"+15551231235"
}'
"https://api.syniverse.com/scg-external-api/api/v1/calling/calls"
|
Make Text-to-Speech Call |
curl -X POST
-H "Authorization: Bearer TOKEN"
-H 'Content-Type: application/json'
-d '{
"from":"Sender ID",
"to":"+15551231235",
"options":{"tts:voice":"Matthew", "tts:max_repetitions":"2"},
"body":"<speak><prosody rate=\"x-slow\">Hello your passcode is 7, 2, 2, 3</prosody></speak>"
}'
"https://api.syniverse.com/scg-external-api/api/v1/messaging/messages"
|
Incoming call |
curl -X POST
-H "Authorization: Bearer TOKEN"
-H 'Content-Type: application/json'
-d '{
"state":"ACTIVE"
}'
"https://api.syniverse.com/scg-external-api/api/v1/calling/calls/{Call_ID}" -v
|
Hangup a call |
curl -X POST
-H "Authorization: Bearer TOKEN"
-H 'Content-Type: application/json'
-d '{
"state":"COMPLETED"
}'
"https://api.syniverse.com/scg-external-api/api/v1/calling/calls/{Call_ID}" -v
|
Create a bridge |
curl -X POST
-H "Authorization: Bearer TOKEN"
-H "Content-Type: application/json"
-d '{
"bridge_audio":true
}'
"https://api.syniverse.com/scg-external-api/api/v1/calling/bridges" -v
|
Add calls to a bridge |
curl -X POST
-H "Authorization: Bearer TOKEN"
-H "Content-Type: application/json"
-d '{
"call_ids":["", ""],
"bridge_audio":true
}'
"https://api.syniverse.com/scg-external-api/api/v1/calling/bridges/{Bridge_ID}"
|
List all bridges |
curl -X GET
-H "Authorization: Bearer TOKEN"
"https://api.syniverse.com/scg-external-api/api/v1/calling/bridges" -v
|
Make a call to a calling party with a bridge |
curl -X POST
-H "Authorization: Bearer TOKEN"
-H 'Content-Type: application/json'
-d '{
"from":"",
"to":"+15551231234",
"bridge_id":""
}'
"https://api.syniverse.com/scg-external-api/api/v1/calling/calls" -v
|
Hang up a call |
curl -X POST
-H "Authorization: Bearer TOKEN"
-H 'Content-Type: application/json'
-d '{
"state":"COMPLETED"
}'
"https://api.syniverse.com/scg-external-api/api/v1/calling/calls/sviq7QYKyu7C447cXuBHz2" -v
|
Conference call creation |
curl -X POST
-H "Authorization: Bearer TOKEN"
-H "Content-Type: application/json"
-d '{
"from":""
}'
"https://api.syniverse.com/scg-external-api/api/v1/calling/conferences"
|
Send a DTMF during a call |
curl -X POST
-H "Authorization: Bearer TOKEN"
-H 'Content-Type: application/json'
-d '{
"from":"",
"to":"+15551231234",
"dtmfText": "12345#"
}'
"https://api.syniverse.com/scg-external-api/api/v1/calling/calls/TEDiNgVGw5uY5qbg1fXPt4/play_dtmf
|
Play audio during a call |
curl -X POST
-H "Authorization: Bearer TOKEN"
-H 'Content-Type: application/json'
-d '{
"source_type": "URL", "source": "http://www.sample-videos.com/audio/mp3/crowd-cheering.mp3"
}'
"https://api.syniverse.com/scg-external-api/api/v1/calling/calls/TEDiNgVGw5uY5qbg1fXPt4/play_audio
|