Add a new emergency number.
POST
/emergency_numbers/create
Add a new emergency number.
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
--
required
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/e164/emergency_numbers/create \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Created emergency number
application/json
-
id
string
The emergency number entry ID.
Sample Response
{
"id": 1234
}
List emergency numbers
GET
/emergency_numbers/list
List emergency numbers
Path parameters
-
access_token
string
required
token to be passed as a header -
pagination
integer
required
The pagination of paging. -
pagesize
integer
required
The size of paging. -
sort_by
string
optional
Values include "DEFAULT" and "Optional". Default value will be used when user does not specify value for this field.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/e164/emergency_numbers/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
pagesize
integer
-
sort_by
string
-
pagination
integer
-
emergency_numbers
array
-
count
integer
Sample Response
{
"pagesize": 10,
"sort_by": "DEFAULT",
"pagination": 8,
"emergency_numbers": {
"description": "description",
"id": 100,
"number_prefix": "001"
},
"count": 100
}
Delete emergency number
POST
/emergency_numbers/destroy
Delete emergency numbers
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
id
string
required
The emergency number entry ID.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/e164/emergency_numbers/destroy \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"id": 1234
}'
Responses
200
Successful operation
404
User not found
400
Invalid username supplied
Sample Response
Show numbers processing.
GET
/numbers_processing/show
Show numbers processing.
Path parameters
-
access_token
string
required
token to be passed as a header
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/e164/numbers_processing/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Sample Response
{
"national_code": "abcd1234",
"area_code": "abcd1234",
"country": "Angola(244)",
"international_code": "abcd1234",
"prefix": "abcd1234"
}
Update numbers processing
POST
/numbers_processing/update
Update numbers processing
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
enable_remove_particular_character
boolean
required
-
area_code
string
required
-
country
string
required
country code. -
enable_remove_if_same_area_code
boolean
required
-
national_code
string
required
-
international_code
string
required
The International code. -
enable_remove_if_same_country
boolean
required
-
enable_process_e164
boolean
required
-
prefix
string
required
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/e164/numbers_processing/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"national_code": "abcd1234",
"area_code": "abcd1234",
"country": "Angola(244)",
"international_code": "abcd1234",
"prefix": "abcd1234"
}'
Responses
200
Successful operation
Sample Response