View Template Message
Use this API to view template messages added to a WhatsApp Business account.
Endpoint details
| Field | Value |
|---|---|
| URL | https://apis.rmlconnect.net/wba/templates |
| Authorization | jwt |
| API Key | jwt |
| Header parameter name | Authorization |
What this returns
The response returns the total number of template messages and an array of template message details. Template details can include the template name, id, components, category, status, quality_rating, language, waba_id, and previous_category.
Responses
200 Success
Response
{
"total": 1,
"data": [
{
"name": "welcome",
"id": "640099017215xxx",
"components": [
{
"type": "BODY",
"text": "Hi, Thank you for Opt-ing in to receive notifications from us on WhatsApp. \n\nWe will send you regular updates on our services and promotions. If you wish to unsubscribe, please reply with STOP. \n\nHave a good day."
}
],
"category": "MARKETING",
"status": "APPROVED",
"quality_rating": "UNKNOWN",
"rejected_reason": "NONE",
"language": "en",
"created_date": "21-Feb-2022 04:53 PM",
"deleted_date": "string",
"waba_id": "629529078253xxx",
"previous_category": "ALERT_UPDATE"
}
]
}Response Schema: application/json
| Field | Type | Description |
|---|---|---|
| total | integer | The total count of items in the response. |
| data | Array of objects | An array of objects representing the data or information. |
400 Bad Request
Response
{
"message": "template with name : testing_v160405xx7 and language : ['en_US'] already exists."
}Response Schema: application/json
| Field | Type | Description |
|---|---|---|
| message | string | The response message. |
401 Authentication Failure
Response
{
"response": "Unauthorized"
}Response Schema: application/json
| Field | Type | Description |
|---|---|---|
| response | string | The message response. |
404 Page Not Found
Response
{
"message": "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."
}Response Schema: application/json
| Field | Type | Description |
|---|---|---|
| message | string | The message response. |
500 Internal Server Error
Response
{
"status": "failed",
"message": "unable to process request",
"reason": "reason"
}Response Schema: application/json
| Field | Type | Description |
|---|---|---|
| status | string | The status for the message delivery. |
| message | string | The message response. |
| reason | string | The reason for not processing the request. |
Supported template types
Call to Action
Quick Reply
Media Template
Text Template
Auth Copycode
Auth Autofill
Catalog Template
Copy Code Template
Carousel Template
Limited Time Offer Template
Multi Product Message Template
Payment Order details
Flow creation
Updated 12 days ago