Exclusive numbers
Get a collection of exclusive numbers
Authorizations
Responses
200
OK
application/json
4XX
Error
get
/exclusive_numbersGET /api/exclusive_numbers HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 100,
"items": [
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"number": "text",
"created_at": "2017-07-21T17:32:28Z",
"enabled": true,
"description": "text"
}
]
}Add a new exclusive number
Authorizations
Body
numberstring · min: 1 · max: 64Optional
The telephone number.
enabledbooleanOptionalDefault:
Enable the exclusive number or not.
truedescriptionstring · max: 1024Optional
Exclusive number's description.
Responses
200
OK
application/json
4XX
Error
post
/exclusive_numbersPOST /api/exclusive_numbers HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"number": "text",
"enabled": true,
"description": "text"
}{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}Get details of a exclusive number
Authorizations
Path parameters
idall ofRequired
The unique ID of exclusive number.
stringOptionalExample:
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYwResponses
200
OK
application/json
4XX
Error
get
/exclusive_numbers/{id}GET /api/exclusive_numbers/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"number": "text",
"created_at": "2017-07-21T17:32:28Z",
"enabled": true,
"description": "text"
}Update properties of a exclusive number.
Authorizations
Path parameters
idall ofRequired
The unique ID of exclusive number.
stringOptionalExample:
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYwBody
numberstring · min: 1 · max: 64Optional
The telephone number.
enabledbooleanOptionalDefault:
Enable the exclusive number or not.
truedescriptionstring · max: 1024Optional
Exclusive number's description.
Responses
200
OK
No content
4XX
Error
post
/exclusive_numbers/{id}POST /api/exclusive_numbers/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"number": "text",
"enabled": true,
"description": "text"
}No content