Retrieve a collection of WhatsApp services.
Use the filter query parameter to retrieve just a subset of a collection.
Use the search query parameter to restrict the results of a request to match a search criterion.
Use the orderby query parameter to specify the sort order of the items returned from server.
The default order is ascending order.
Use the skip query parameter to set the number of items to skip at the start of a collection.
0Use the top query parameter to specify the page size of the result set.
100OK
Error
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.
The name of WhatsApp service.
The flag for whether the WhatsApp service is enabled.
trueThe unique ID of trunk.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYwThe phone number of WhatsApp service.
The phone number id of WhatsApp service.
The token of WhatsApp service.
Created
Error
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.
The unique ID of WhatsApp service.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYwOK
Error
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.
The unique ID of WhatsApp service.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYwThe name of WhatsApp service.
The flag for whether the WhatsApp service is enabled.
trueThe phone number of WhatsApp service.
The phone number id of WhatsApp service.
The token of WhatsApp service.
OK
No content
Error
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