Phone numbers
Retrieve a phone number
Changed onRetrieves a PhoneNumber object.
get/phone_numbers/{id}
Request
- Base URLhttps://api.surge.app
- URLhttps://api.surge.app/phone_numbers/{id}
- AuthHTTP bearer
Path parameters
idstring required
The ID of the phone number to retrieve.
Example:pn_01jsjwe4d9fx3tpymgtg958d9w
Response
Phone number
Example response
{
"campaign": {
"attachment_status": "attached",
"id": "cpn_01jjnn7s0zfx5tdcsxjfy93et2"
},
"campaign_id": "cpn_01jjnn7s0zfx5tdcsxjfy93et2",
"id": "pn_01jsjwe4d9fx3tpymgtg958d9w",
"metadata": {
"location": "Downtown store"
},
"name": "(801) 555-1234",
"number": "+18015551234",
"type": "local"
}Changes
- info
added the required property
to the response with the status
- info
- info
endpoint added
- info