Vip numbers

List VIP numbers

get

Get a collection of VIP numbers.

Authorizations
Responses
200
OK
application/json
get
GET /api/vip_numbers HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "count": 100,
  "items": [
    {
      "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
      "number": "text",
      "longitude": "text",
      "latitude": "text",
      "address": "text",
      "created_at": "2017-07-21T17:32:28Z",
      "updated_at": "2017-07-21T17:32:28Z",
      "expire_at": "2017-07-21T17:32:28Z",
      "enabled": true,
      "description": "text"
    }
  ]
}

Add VIP number

post

Create a new VIP number.

Authorizations
Body
numberstring · min: 1 · max: 64Optional

The VIP number, a string value contains a valid telephone number.

Pattern: [0-9+]{1,64}
longitudestringOptional

VIP number's longitude.

latitudestringOptional

VIP number's latitude.

addressstring · max: 128Optional

The address.

expire_atall ofOptional

VIP number's expire time.

string · date_timeOptional

The RFC 3339 format is defined by The date_time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

Example: 2017-07-21T17:32:28Z
enabledbooleanOptional

Enable the VIP number or not.

descriptionstring · max: 1024Optional

VIP number's description.

Responses
200
OK
application/json
post
POST /api/vip_numbers HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 142

{
  "number": "text",
  "longitude": "text",
  "latitude": "text",
  "address": "text",
  "expire_at": "2017-07-21T17:32:28Z",
  "enabled": true,
  "description": "text"
}
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}

Retrieve VIP number

get

Get details of the VIP number.

Authorizations
Path parameters
idall ofRequired

The unique ID of VIP number.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
200
OK
application/json
get
GET /api/vip_numbers/{id} HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
  "number": "text",
  "longitude": "text",
  "latitude": "text",
  "address": "text",
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z",
  "expire_at": "2017-07-21T17:32:28Z",
  "enabled": true,
  "description": "text"
}

Update VIP number

post

Update a VIP number.

Authorizations
Path parameters
idall ofRequired

The unique ID of VIP number.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Body
numberstring · min: 1 · max: 64Optional

The VIP number, a string value contains a valid telephone number.

Pattern: [0-9+]{1,64}
longitudestringOptional

VIP number's longitude.

latitudestringOptional

VIP number's latitude.

addressstring · max: 128Optional

The address.

expire_atall ofOptional

VIP number's expire time.

string · date_timeOptional

The RFC 3339 format is defined by The date_time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

Example: 2017-07-21T17:32:28Z
enabledbooleanOptional

Enable the VIP number or not.

descriptionstring · max: 1024Optional

VIP number's description.

Responses
200
OK
post
POST /api/vip_numbers/{id} HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 142

{
  "number": "text",
  "longitude": "text",
  "latitude": "text",
  "address": "text",
  "expire_at": "2017-07-21T17:32:28Z",
  "enabled": true,
  "description": "text"
}

No content