Whatsapp

List WhatsApp services.

get

Retrieve a collection of WhatsApp services.

Authorizations
Query parameters
filterstringOptional

Use the filter query parameter to retrieve just a subset of a collection.

searchstringOptional

Use the search query parameter to restrict the results of a request to match a search criterion.

orderbystringOptional

Use the orderby query parameter to specify the sort order of the items returned from server.
The default order is ascending order.

skipinteger · int32Optional

Use the skip query parameter to set the number of items to skip at the start of a collection.

Default: 0
topinteger · int32 · min: 1 · max: 100Optional

Use the top query parameter to specify the page size of the result set.

Default: 100
Responses
200
OK
application/json
get
GET /api/whatsapp HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "count": 100,
  "items": [
    {
      "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
      "name": "text",
      "enabled": true,
      "phone_number": "text",
      "phone_number_id": "text",
      "provider_id": "NzAwNTUxOTA5NzczMTQ4MTYw",
      "provider_name": "text",
      "provider_brand": "text",
      "provider_hostname": "text",
      "webhook": "text"
    }
  ]
}

Create WhatsApp service

post

Create WhatsApp service.

Authorizations
Body
namestring · min: 1 · max: 64Required

The name of WhatsApp service.

enabledbooleanOptional

The flag for whether the WhatsApp service is enabled.

Default: true
provider_idall ofRequired

The unique ID of trunk.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
phone_numberstringOptional

The phone number of WhatsApp service.

phone_number_idstringRequired

The phone number id of WhatsApp service.

tokenstringRequired

The token of WhatsApp service.

Responses
201
Created
application/json
post
POST /api/whatsapp HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 133

{
  "name": "text",
  "enabled": true,
  "provider_id": "NzAwNTUxOTA5NzczMTQ4MTYw",
  "phone_number": "text",
  "phone_number_id": "text",
  "token": "text"
}
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}

Retrieve a WhatsApp service

get

Retrieve a WhatsApp service.

Authorizations
Path parameters
idall ofRequired

The unique ID of WhatsApp service.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
200
OK
application/json
get
GET /api/whatsapp/{id} HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
  "name": "text",
  "enabled": true,
  "phone_number": "text",
  "phone_number_id": "text",
  "provider_id": "NzAwNTUxOTA5NzczMTQ4MTYw",
  "provider_name": "text",
  "provider_brand": "text",
  "provider_hostname": "text",
  "webhook": "text"
}

Update the WhatsApp service

post

Update the WhatsApp service.

Authorizations
Path parameters
idall ofRequired

The unique ID of WhatsApp service.

stringOptional

The unique ID of the resource.

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

The name of WhatsApp service.

enabledbooleanOptional

The flag for whether the WhatsApp service is enabled.

Default: true
phone_numberstringOptional

The phone number of WhatsApp service.

phone_number_idstringOptional

The phone number id of WhatsApp service.

tokenstringOptional

The token of WhatsApp service.

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

{
  "name": "text",
  "enabled": true,
  "phone_number": "text",
  "phone_number_id": "text",
  "token": "text"
}

No content