Skip to main content
When you make or receive a call through mycpaas, call status changes are delivered to your server in real time. Each time the call transitions to a new state — from initiated, to ringing, to answered, to completed — mycpaas sends an HTTP POST to the StatusCallback URL you configure.

When this webhook fires

mycpaas sends a POST to your StatusCallback 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 as application/x-www-form-urlencoded in the POST body:
string
required
A unique identifier for the call (e.g., CA1234567890abcdef). Use this to correlate status updates to a specific call.
string
required
The current status of the call. See the table below for all possible values.

Call status values

Configuring StatusCallback

Pass StatusCallback 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.