For the complete documentation index, see llms.txt. This page is also available as Markdown.

Whats App

List WhatsApp services.

get

Retrieve a collection of WhatsApp services.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
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
countinteger · int64Optional

Total number of resource.

Example: 100
get/whatsapp
GET /api/whatsapp HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "count": 1,
  "items": [
    {
      "id": "xxxxxx",
      "name": "example",
      "enabled": true,
      "phone_number": "",
      "phone_number_id": "xxxxxx",
      "provider_id": "xxxxxx",
      "provider_name": "example",
      "provider_brand": "Generic",
      "provider_hostname": "example",
      "webhook": "https://example.com"
    }
  ]
}

Create WhatsApp service

post

Create WhatsApp service.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestring · min: 1 · max: 64Required

The name of WhatsApp service.

enabledbooleanOptional

The flag for whether the WhatsApp service is enabled.

Default: true
provider_idstringRequiredExample: 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.

business_account_idstringOptional

The business account id of WhatsApp service.

Responses
201

Created

application/json
idstringOptionalExample: NzAwNTUxOTA5NzczMTQ4MTYw
post/whatsapp
POST /api/whatsapp HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 112

{
  "name": "example",
  "enabled": true,
  "provider_id": "xxxxxx",
  "phone_number": "000000",
  "phone_number_id": "",
  "token": ""
}
{
  "id": "xxxxxxxx"
}

Retrieve a WhatsApp service

get

Retrieve a WhatsApp service.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequiredExample: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
200

OK

application/json
idstringOptionalExample: NzAwNTUxOTA5NzczMTQ4MTYw
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.

provider_idstringOptionalExample: NzAwNTUxOTA5NzczMTQ4MTYw
provider_namestring · min: 1 · max: 64Optional

The name of the trunk.

provider_brandstring · min: 1 · max: 64Optional

The brand of trunk.

provider_hostnamestringOptional

Server hostname or IP address

webhookstring · min: 1Optional

The Universal Resource Locator of some resource.

business_account_idstringOptional

The business account id of WhatsApp service.

get/whatsapp/{id}
GET /api/whatsapp/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "xxxxxx",
  "name": "example",
  "enabled": true,
  "phone_number": "000000",
  "phone_number_id": "",
  "provider_id": "xxxxxx",
  "provider_name": "example",
  "provider_brand": "Generic",
  "provider_hostname": "example",
  "webhook": "https://example.com"
}

Update the WhatsApp service

post

Update the WhatsApp service.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequiredExample: 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.

business_account_idstringOptional

The business account id of WhatsApp service.

Responses
200

OK

No content

post/whatsapp/{id}
POST /api/whatsapp/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 89

{
  "name": "example",
  "enabled": true,
  "phone_number": "000000",
  "phone_number_id": "",
  "token": ""
}

No content

Delete WhatsApp service

post

Destroy a WhatsApp service

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequiredExample: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
204

No Content

No content

post/whatsapp/{id}/destroy
POST /api/whatsapp/{id}/destroy HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

List WhatsApp templates services.

get

List WhatsApp templates services.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The WhatsApp ID.

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
countinteger · int64Optional

Total number of resource.

Example: 100
get/whatsapp/{id}/templates
GET /api/whatsapp/{id}/templates HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "count": 1,
  "items": [
    {
      "id": "xxxxxx",
      "name": "example",
      "language": "en_US",
      "category": "MARKETING",
      "parameter_format": "NAMED",
      "components": "",
      "status": "APPROVED",
      "created_at": "2020-01-01T00:00:00Z",
      "updated_at": "2020-01-01T00:00:00Z"
    }
  ]
}

WhatsApp templates Info services.

get

WhatsApp templates Info services.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequiredExample: NzAwNTUxOTA5NzczMTQ4MTYw
template_idstringRequired

Unique identifier of the WhatsApp template.
This ID is provided by the WhatsApp integration and is used to associate resources with a specific WhatsApp account.

Example: 1086170927600762880
Responses
200

OK

application/json
idstringOptional

Unique identifier of the WhatsApp template.
This ID is provided by the WhatsApp integration and is used to associate resources with a specific WhatsApp account.

Example: 1086170927600762880
namestringOptional

The name of WhatsApp template.

languagestringOptional

The language of WhatsApp template.

categorystring · enumOptional

The category of WhatsApp template.

Possible values:
parameter_formatstring · enumOptional

The parameter format of WhatsApp template.

Possible values:
componentsstringOptional

The components of WhatsApp template.

statusstring · enumOptional

The status of WhatsApp template.

Possible values:
created_atstring · date-timeOptional

The creation time of WhatsApp template.

updated_atstring · date-timeOptional

The last update time of WhatsApp template.

get/whatsapp/{id}/templates/{template_id}
GET /api/whatsapp/{id}/templates/{template_id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "xxxxxx",
  "name": "example",
  "language": "en_US",
  "category": "MARKETING",
  "parameter_format": "NAMED",
  "components": "",
  "status": "APPROVED",
  "created_at": "2020-01-01T00:00:00Z",
  "updated_at": "2020-01-01T00:00:00Z"
}

Refresh WhatsApp templates services.

post

Refresh WhatsApp templates services.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The WhatsApp ID.

Responses
200

OK

No content

post/whatsapp/{id}/templates/refresh
POST /api/whatsapp/{id}/templates/refresh HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated

Was this helpful?