Voice

Call with Advanced Call Control

POST
/voice/v1/executionengine

Allowing you to create interactive voice experiences for your users. With this endpoint, you can send a call execution plan, which is an XML document containing instructions for the call, such as customer service calls or automated voice surveys.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT access token returned by Signing In (POST /auth/v1/tokens/).

In: header

Request Body

application/json

From?string
Default"201XXXXXX"
To*string
Default"201XXXXXX"
ExecutionPlan*string
Default"\"<begin><say reps=\\\"2\\\">\\\"Welcome to cequens voice service.\\\" </say> <gather url=\\\"https://75076901-3f40-4ca8-8dee-32ce16498828.mock.pstmn.io/flow1\\\">Please press one if you want to continue</gather></begin>\" }'"

Response Body

application/json

application/json

curl -X POST "https://example.com/voice/v1/executionengine" \  -H "Content-Type: application/json" \  -d '{    "To": "201XXXXXX",    "ExecutionPlan": "\\"<begin><say reps=\\\\\\"2\\\\\\">\\\\\\"Welcome to cequens voice service.\\\\\\" </say> <gather url=\\\\\\"https://75076901-3f40-4ca8-8dee-32ce16498828.mock.pstmn.io/flow1\\\\\\">Please press one if you want to continue</gather></begin>\\"  }\'"  }'
"{}"