Webhooks

Phone Number status

POST
/v1/Webhooks/PhoneNumberStatusChangedWebhook

PhoneNumberStatusChangedWebhook is sent to the URL set up with the /webhooks endpoint for webhook type PhoneNumberStatusChanged when a Phone Number status has been changed.

AuthorizationBasic <token>

Basic Authorization header using the BASIC scheme. Use a pair companySid:token to access the API.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Phone Number Status Has Changed event.

Response Body

curl -X POST "https://example.com/v1/Webhooks/PhoneNumberStatusChangedWebhook" \  -H "Content-Type: application/json" \  -d '{    "type": "PhoneNumberStatusChanged",    "sid": "WH08df051c8bb9caba8080f92ed9ede60f8a337eae926d5b3c",    "payload": {      "number": "+13234567890",      "oldStatus": "Pending",      "newStatus": "PendingMessagingConfigAdd"    }  }'
Empty