Successful Response
HTTP 200 - response containing a list of WhatsApp templates.
WhatsappListTemplatesResponse
Property |
Type |
Description |
templates |
array |
List of template objects (WhatsappTemplateResponse) |
paging |
object |
Pagination object |
Get Template
GET https://api.messente.com/v1/whatsapp/wabas/{wabaId}/templates/{templateId}
Requests a WhatsApp template with the given ID.
Path Parameters
Name |
Type |
Required |
Description |
wabaId |
string |
Yes |
The ID of the WABA (WhatsApp Business Account) |
templateId |
string |
Yes |
The ID of the template to retrieve |
Successful Response
HTTP 200 - response containing a single WhatsApp template.
WhatsappTemplateResponse
Property |
Type |
Description |
id |
string |
Template ID |
components |
array |
List of template component objects |
language |
string |
Language of the template |
name |
string |
Name of the template |
category |
string |
Template category |
status |
string |
Template status |
Create Template
POST https://api.messente.com/v1/whatsapp/wabas/{wabaId}/templates
Creates a WhatsApp template.
Path Parameters
Name |
Type |
Required |
Description |
wabaId |
string |
Yes |
The ID of the WABA (WhatsApp Business Account) |
Request Body
The WhatsApp template to create.
WhatsappCreateTemplateRequest
Property |
Type |
Required |
Description |
name |
string |
Yes |
Name of the template |
category |
string |
Yes |
Template category |
allow_category_change |
boolean |
No |
Allow category change (default: false) |
language |
string |
Yes |
Language of the template |
components |
array |
Yes |
List of template components |
Successful Response
HTTP 200 - response containing the created template.
WhatsappCreateTemplateResponse
Property |
Type |
Description |
id |
string |
Template ID |
status |
string |
Template status |
category |
string |
Template category |
Update Template
PUT https://api.messente.com/v1/whatsapp/wabas/{wabaId}/templates/{templateId}
Updates a WhatsApp template.
Path Parameters
Name |
Type |
Required |
Description |
wabaId |
string |
Yes |
The ID of the WABA (WhatsApp Business Account) |
templateId |
string |
Yes |
The ID of the template to update |
Request Body
The template data to be updated.
WhatsappUpdateTemplateRequest
Property |
Type |
Required |
Description |
category |
string |
No* |
Template category |
components |
array |
No* |
List of template component objects |
* At least one of these properties must be provided.
Successful Response
HTTP 200
Delete Template
DELETE https://api.messente.com/v1/whatsapp/wabas/{wabaId}/templates
Deletes a WhatsApp template.
Path Parameters
Name |
Type |
Required |
Description |
wabaId |
string |
Yes |
The ID of the WABA (WhatsApp Business Account) |
Query Parameters
Name |
Type |
Required |
Description |
name |
string |
Yes |
The name of the template to delete |
hsmId |
string |
No |
The ID of the template to delete |
Successful Response
HTTP 200
Error Responses
HTTP 400
HTTP 401
HTTP 403
HTTP 500
Property |
Type |
Info |
errorsrequired |
array |
An array of errors
A container for Omnichannel API error
Property |
Type |
Info |
titlerequired |
string |
Textual value which corresponds to an error code
Possible values:
- Not found
- Forbidden
- Unauthorized
- Invalid data
- Internal Server Error
- Missing data
- Method not allowed
|
detailrequired |
string |
Free form more detailed description of the error
|
coderequired |
string |
Matches the following error title.
This field is a constant
- 101 - Not found
- 102 - Forbidden
- 103 - Unauthorized
- 104 - Internal Server Error
- 105 - Invalid data
- 106 - Missing data
- 107 - Method not allowed
|
sourcerequired |
string |
Describes which field is causing the issue in the payload, null for non 400 status code
responses
|
|
Schemas
Property |
Type |
Description |
previous |
string |
A URL to get the previous paginated page |
next |
string |
A URL to get the next paginated page |
cursors |
object |
Pagination cursors object |
WhatsappPagingCursors
Property |
Type |
Description |
before |
string |
The template before the first template in the current list |
after |
string |
The template after the last template in the current list |