Call queue blacklisted numbers

List call queue blacklisted numbers

get
Authorizations
Responses
200
OK
application/json
get
GET /api/call_queue_blacklisted_numbers HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "items": [
    {
      "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
      "number": "text",
      "level": "FIRST",
      "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",
      "trigger_times": 1,
      "enabled": true,
      "description": "text"
    }
  ]
}

Add a call queue blacklisted number

post
Authorizations
Body
numberstring · min: 1 · max: 64Required

The blacklisted number, a string value contains a valid telephone number or extension number.

Pattern: [0-9+]{1,64}
levelstring · enumRequired

Blacklisted number's level:

  • FIRST: A first level blacklisted number.
  • SECOND: A second level blacklisted number.
Possible values:
longitudestringOptional

Blacklisted number's longitude.

latitudestringOptional

Blacklisted number's latitude.

addressstring · max: 128Optional

The address.

expire_atall ofOptional

Blacklisted 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
trigger_timesinteger · int32Optional

Blacklisted number have been triggered for this times.

enabledbooleanOptional

Enable the blacklisted number or not.

Default: true
descriptionstring · max: 1024Optional

Blacklisted number's description.

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

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

Retrieve a call queue blacklisted number

get
Authorizations
Path parameters
idall ofRequired

The unique ID of blacklisted number.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
200
OK
application/json
get
GET /api/call_queue_blacklisted_numbers/{id} HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
  "number": "text",
  "level": "FIRST",
  "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",
  "trigger_times": 1,
  "enabled": true,
  "description": "text"
}

Update a call queue blacklisted number

post
Authorizations
Path parameters
idall ofRequired

The unique ID of blacklisted number.

stringOptional

The unique ID of the resource.

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

The blacklisted number, a string value contains a valid telephone number or extension number.

Pattern: [0-9+]{1,64}
levelstring · enumOptional

Blacklisted number's level:

  • FIRST: A first level blacklisted number.
  • SECOND: A second level blacklisted number.
Possible values:
longitudestringOptional

Blacklisted number's longitude.

latitudestringOptional

Blacklisted number's latitude.

addressstring · max: 128Optional

The address.

expire_atall ofOptional

Blacklisted 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
trigger_timesinteger · int32Optional

Blacklisted number have been triggered for this times.

enabledbooleanOptional

Enable the blacklisted number or not.

Default: true
descriptionstring · max: 1024Optional

Blacklisted number's description.

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

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

No content