Change Phone Number

Change a client phone number within the company of the current API key. Other companies' bindings and history are not changed.

POST/api/v1/change_phone

Request Headers

HeaderValueRequired
X-API-KeystringYes
Content-Typeapplication/jsonYes

Request Body

NameTypeRequiredDescription
old_phonestringYesCurrent client phone number
new_phonestringYesNew phone number in international format

Response Body

json
{"status":"accepted","event_id":"550e8400-e29b-41d4-a716-446655440000"}

Examples

bash
curl -X POST https://massaccess.net/api/v1/change_phone \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "old_phone": "12345678901",
    "new_phone": "12345678902"
  }'

Sending Messages