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_phoneRequest Headers
| Header | Value | Required |
|---|---|---|
| X-API-Key | string | Yes |
| Content-Type | application/json | Yes |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| old_phone | string | Yes | Current client phone number |
| new_phone | string | Yes | New phone number in international format |
Response Body
{"status":"accepted","event_id":"550e8400-e29b-41d4-a716-446655440000"}Examples
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"
}'