JSON API » numbers » numbers/system/get

Gets the system fields of a number.

Input parameters

Requires authentication and the system role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.NoNone.
auth_passwordStringAuthentication password.NoNone.
numberStringNumber to get.Yes

Responses

CodeDescription
200Success.
401The authentication details provided are invalid.
402Your role does not allow this.
404The number does not exist.

Data returned

Fields of number.

Example: With required parameters

http://enswitch.example.com/api/json/numbers/system/get/?auth_username=user;auth_password=password;number=2125551234

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "number":"2125551234", "class":1, ... } }

Change history

VersionChanges
3.13Function added.