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": null,
      "name": null,
      "enabled": null,
      "phone_number": null,
      "phone_number_id": null,
      "provider_id": null,
      "provider_name": null,
      "provider_brand": null,
      "provider_hostname": null,
      "webhook": null
    }
  ]
}

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_idstringRequired

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
idstringOptional

The unique ID of the resource.

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

{
  "name": null,
  "enabled": null,
  "provider_id": null,
  "phone_number": null,
  "phone_number_id": null,
  "token": null
}
{
  "id": "xxxxxxxx"
}

Retrieve a WhatsApp service

get

Retrieve a WhatsApp service.

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

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
200

OK

application/json
idstringOptional

The unique ID of the resource.

Example: 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_idstringOptional

The unique ID of the resource.

Example: 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.

get/whatsapp/{id}
GET /api/whatsapp/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": null,
  "name": null,
  "enabled": null,
  "phone_number": null,
  "phone_number_id": null,
  "provider_id": null,
  "provider_name": null,
  "provider_brand": null,
  "provider_hostname": null,
  "webhook": null
}

Update the WhatsApp service

post

Update the WhatsApp service.

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

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

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: 84

{
  "name": null,
  "enabled": null,
  "phone_number": null,
  "phone_number_id": null,
  "token": null
}

No content

Delete WhatsApp service

post

Destroy a WhatsApp service

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

The unique ID of the resource.

Example: 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

Last updated

Was this helpful?