curl --request GET \
--url https://app.adsera.in/api/pub/wa/template/list/{whatsapp} \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>'{
"status": 200,
"success": true,
"error": "<unknown>",
"templates": [
{
"_id": "60c72b2f9b1d8e001f8a1b2d",
"company": "60c72b2f9b1d8e001f8a1b2a",
"whatsapp": "60c72b2f9b1d8e001f8a1b2c",
"templateId": "8794876541213",
"wabaId": "123456789012345",
"status": "APPROVED",
"format": "NAMED",
"category": "AUTHENTICATION",
"name": "order_confirmation",
"language": "en_US",
"libraryTempName": "<string>",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"limited_time_offer": {
"text": "<string>",
"has_expiration": true
},
"text": "<string>",
"add_security_recommendation": true,
"code_expiration_minutes": 123,
"example": {
"header_handle": [
"<string>"
],
"header_text": [
"<string>"
],
"header_text_named_params": {},
"body_text": [
[
"<string>"
]
],
"body_text_named_params": {}
},
"buttons": [
{
"type": "QUICK_REPLY",
"text": "<string>",
"url": "<string>",
"example": "<string>",
"phoneNumber": "<string>",
"flow_id": "<string>",
"flow_action": "NAVIGATE",
"flow_name": "<string>",
"flow_json": {},
"navigate_screen": "<string>",
"icon": "DOCUMENT",
"otp_type": "COPY_CODE",
"supported_apps": [
{
"package_name": "<string>",
"signature_hash": "<string>"
}
]
}
],
"cards": [
{
"components": "<array>"
}
]
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"totalCount": 25,
"currentPage": 1,
"perPage": 10
}Retrieves a paginated list of WhatsApp templates for a specific WABA account.
curl --request GET \
--url https://app.adsera.in/api/pub/wa/template/list/{whatsapp} \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>'{
"status": 200,
"success": true,
"error": "<unknown>",
"templates": [
{
"_id": "60c72b2f9b1d8e001f8a1b2d",
"company": "60c72b2f9b1d8e001f8a1b2a",
"whatsapp": "60c72b2f9b1d8e001f8a1b2c",
"templateId": "8794876541213",
"wabaId": "123456789012345",
"status": "APPROVED",
"format": "NAMED",
"category": "AUTHENTICATION",
"name": "order_confirmation",
"language": "en_US",
"libraryTempName": "<string>",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"limited_time_offer": {
"text": "<string>",
"has_expiration": true
},
"text": "<string>",
"add_security_recommendation": true,
"code_expiration_minutes": 123,
"example": {
"header_handle": [
"<string>"
],
"header_text": [
"<string>"
],
"header_text_named_params": {},
"body_text": [
[
"<string>"
]
],
"body_text_named_params": {}
},
"buttons": [
{
"type": "QUICK_REPLY",
"text": "<string>",
"url": "<string>",
"example": "<string>",
"phoneNumber": "<string>",
"flow_id": "<string>",
"flow_action": "NAVIGATE",
"flow_name": "<string>",
"flow_json": {},
"navigate_screen": "<string>",
"icon": "DOCUMENT",
"otp_type": "COPY_CODE",
"supported_apps": [
{
"package_name": "<string>",
"signature_hash": "<string>"
}
]
}
],
"cards": [
{
"components": "<array>"
}
]
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"totalCount": 25,
"currentPage": 1,
"perPage": 10
}Your application's unique ID.
Your application's secret key.
The _id of the WABA account to fetch templates for.
"60c72b2f9b1d8e001f8a1b2c"
Search query for template name.
The page number for pagination.
The number of items to return per page.
A paginated list of templates.
200
true
Show child attributes
"60c72b2f9b1d8e001f8a1b2d"
"60c72b2f9b1d8e001f8a1b2a"
"60c72b2f9b1d8e001f8a1b2c"
"8794876541213"
"123456789012345"
APPROVED, PENDING, REJECTED, PAUSED, DISABLED, IN_APPEAL, REINSTATED, LIMIT_EXCEEDED NAMED, POSITIONAL AUTHENTICATION, MARKETING, UTILITY "order_confirmation"
"en_US"
Show child attributes
HEADER, BODY, FOOTER, BUTTONS, CALL_PERMISSION_REQUEST, CAROUSEL, LIMITED_TIME_OFFER TEXT, IMAGE, VIDEO, DOCUMENT, LOCATION, PRODUCT Show child attributes
QUICK_REPLY, URL, PHONE_NUMBER, COPY_CODE, FLOW, VOICE_CALL, CATALOG, ORDER_DETAILS, MPM, SPM, OTP NAVIGATE, DATA_EXCHANGE A mixed-type field for arbitrary JSON.
DOCUMENT, PROMOTION, REVIEW COPY_CODE, ONE_TAP 25
1
10
Was this page helpful?