Whats App
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
Total number of resource.
100Error
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.
The name of WhatsApp service.
The flag for whether the WhatsApp service is enabled.
trueNzAwNTUxOTA5NzczMTQ4MTYwThe phone number of WhatsApp service.
The phone number id of WhatsApp service.
The token of WhatsApp service.
The business account id of WhatsApp service.
Created
NzAwNTUxOTA5NzczMTQ4MTYwError
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.
NzAwNTUxOTA5NzczMTQ4MTYwOK
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.
NzAwNTUxOTA5NzczMTQ4MTYwThe name of the trunk.
The brand of trunk.
Server hostname or IP address
The Universal Resource Locator of some resource.
The business account id of WhatsApp service.
Error
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.
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.
The business account id 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: 89
{
"name": "example",
"enabled": true,
"phone_number": "000000",
"phone_number_id": "",
"token": ""
}No content
Destroy a WhatsApp service
NzAwNTUxOTA5NzczMTQ4MTYwNo Content
No content
Error
POST /api/whatsapp/{id}/destroy HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
List WhatsApp templates services.
The WhatsApp ID.
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
Total number of resource.
100Error
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.
NzAwNTUxOTA5NzczMTQ4MTYwUnique identifier of the WhatsApp template.
This ID is provided by the WhatsApp integration and is used to associate
resources with a specific WhatsApp account.
1086170927600762880OK
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.
1086170927600762880The name of WhatsApp template.
The language of WhatsApp template.
The category of WhatsApp template.
The parameter format of WhatsApp template.
The components of WhatsApp template.
The status of WhatsApp template.
The creation time of WhatsApp template.
The last update time of WhatsApp template.
Error
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.
The WhatsApp ID.
OK
No content
Error
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?