Fetch List of My Numbers

This API fetches a list of all the My Numbers.

Sample Request

curl --request GET \
     --url https://api.servetel.in/v1/my_number \
     --header 'accept: application/json' \
     --header 'content-type: application/json'

📘 Important!

Before we begin, note that the * sign denotes the mandatory variables in each table.

Sample Response

[
  {
    "id": "26300",
    "name": "name for a number",
    "description": "description for a number",
    "alias": "918968964862",
    "did": "+918045406079",
    "destination": "agent||05033104116",
    "destination_name": "chhavya",
    "sms_templates": "",
    "product_broadcast": true
  }
]

Response Variables

The response returned is as following:

Variable NameDescriptionData Type
idThe Unique Identifier of the number.Boolean
nameName for the number.String
descriptionDescription for the number.
aliasAgent number or alias against which the number is configured.String
didActual number that is mapped to the agent’s number.String
destinationType of destination where the number is routed to, for example: ivr, agent, etc.String
destination_nameName of the destination.String
sms_templatesSMS template that is associated to the number.String
Language
Click Try It! to start a request and see the response here!