List message templates
curl --request GET \
--url https://api.social-api.ai/v1/platforms/whatsapp/accounts/{account_id}/templates \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.social-api.ai/v1/platforms/whatsapp/accounts/{account_id}/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/whatsapp/accounts/{account_id}/templates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"category": "UTILITY",
"id": "1234567890123456",
"language": "en_US",
"name": "order_confirmation",
"status": "APPROVED",
"components": "<unknown>"
}
],
"paging": {
"cursors": {
"after": "QVFIUjN...",
"before": "QVFIUjJ..."
},
"next": "https://graph.facebook.com/..."
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}WhatsApp
List message templates
Returns all message templates configured on the WhatsApp Business Account (WABA) associated with this connected account. Templates include approved, pending, rejected, and paused entries. Use the after cursor from paging.cursors to fetch subsequent pages.
GET
/
platforms
/
whatsapp
/
accounts
/
{account_id}
/
templates
List message templates
curl --request GET \
--url https://api.social-api.ai/v1/platforms/whatsapp/accounts/{account_id}/templates \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.social-api.ai/v1/platforms/whatsapp/accounts/{account_id}/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/whatsapp/accounts/{account_id}/templates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"category": "UTILITY",
"id": "1234567890123456",
"language": "en_US",
"name": "order_confirmation",
"status": "APPROVED",
"components": "<unknown>"
}
],
"paging": {
"cursors": {
"after": "QVFIUjN...",
"before": "QVFIUjJ..."
},
"next": "https://graph.facebook.com/..."
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}