StatusCallback URL you configure.
When this webhook fires
mycpaas sends a POST to yourStatusCallback URL on every call status transition. You can optionally limit which statuses trigger a notification using the StatusCallbackEvent parameter.
Payload fields
mycpaas sends the following fields asapplication/x-www-form-urlencoded in the POST body:
A unique identifier for the call (e.g.,
CA1234567890abcdef). Use this to correlate status updates to a specific call.The current status of the call. See the table below for all possible values.
Call status values
| Status | Description |
|---|---|
initiated | The call has been created and mycpaas is preparing to dial. |
ringing | The destination phone is ringing. |
in-progress | The call was answered and is now active. |
completed | The call ended normally. |
failed | mycpaas could not connect the call due to a network or carrier error. |
busy | The destination was busy. |
no-answer | The call rang without being answered and timed out. |
Configuring StatusCallback
PassStatusCallback and optionally StatusCallbackEvent when creating a call via the REST API:
StatusCallbackEvent accepts a space-separated list of statuses. Omit it to receive all status transitions.
Raw POST payload example
Handler example
The following Express handler logs each call status update and acknowledges receipt:Status callbacks are fire-and-forget notifications. You do not need to return LaML XML — mycpaas ignores the response body. Return HTTP 200 promptly to prevent retries.

