List
Messaging Templates List
Summary
This endpoint allows you to fetch messaging templates in the CRM system.
HTTP Method
GET
API Endpoint
http://app.metocrm.com/api/third-parties-api-gateway/v1/custom/messaging-templates
Authentication
- Use
Webhooktype private key. - Include the
api-keyin the header.
Example Requests
Curl
curl --location 'http://metolightsaas.test/api/third-parties-api-gateway/v1/custom/messaging-templates' \
--header 'api-key: {api-key-here}'
PHP
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://metolightsaas.test/api/third-parties-api-gateway/v1/custom/messaging-templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => ["api-key: {private-key}"],
]);
$response = curl_exec($curl);
curl_close($curl);
?>
Response Format
- JSON
Responses
Success
- Status Code: 200
- Message: "lead created successfully!"
- Data: JSON
Error
- Status Code: 401
- Message: "Api Key is invalid!"
Example JSON Success Response
{
"approved_whatsapp_templates": [
{
"id": 1,
"title": "Welcome Template",
"language_code": "en",
...
}
...
],
"templates": [
{
"id": 1,
"title": "test",
...
}
...
]
}