Get Template
Retrieve a WhatsApp template with its current approval status. Use it to find out when Meta has approved or rejected a template you submitted.
Endpoint
GET /whatsapp/templates/:id
Returns: 200 OK
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <your-api-key> | Yes |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The template ID |
Response
{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"name": "order_shipped",
"language": "en",
"category": "utility",
"status": "rejected",
"rejection_reason": "INVALID_FORMAT",
"parameters": [
"first_name",
"order_id"
],
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Your order"
},
{
"type": "BODY",
"text": "Hi {{first_name}}, order {{order_id}} has shipped."
},
{
"type": "FOOTER",
"text": "Arsel Store"
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "URL",
"text": "Track",
"url": "https://example.com/track"
}
]
}
],
"created_at": "2026-03-08T12:00:00.000Z",
"updated_at": "2026-03-08T12:04:10.000Z"
}
Template Fields
| Field | Type | Description |
|---|---|---|
id | string | Template ID |
name | string | The value to pass as template_name when sending |
language | string | Meta language code, e.g. en or ar |
category | string | marketing, utility or authentication. Meta can recategorize a template after review, and the category sets the price per message. |
status | string | See Status Values |
rejection_reason | string | null | Meta's reason, when the template was rejected |
parameters | string[] | The keys POST /whatsapp/send needs in parameters. ["code"] for an authentication template. |
components | object[] | The template content in Meta's own component format |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
Status Values
| Status | Description |
|---|---|
pending | Submitted and under review by Meta |
approved | Ready to send |
rejected | Meta refused it. See rejection_reason, then edit and resubmit. |
paused | Meta paused it because of low quality. It cannot be sent while paused. |
disabled | Meta disabled it. It cannot be sent. |
draft | The status is not known yet. It cannot be sent. |
Waiting for approval
Poll this endpoint after creating or editing a template. Review usually takes a few minutes and can take up to 48 hours, so poll every minute or so rather than in a tight loop.
Examples
- cURL
- JavaScript
- Python
- C#
- PHP
curl "https://api.arsel.sa/v1/whatsapp/templates/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer $ARSEL_API_KEY"
const response = await fetch("https://api.arsel.sa/v1/whatsapp/templates/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a", {
headers: {
Authorization: `Bearer ${process.env.ARSEL_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) {
throw new Error(`${data.name}: ${data.message}`);
}
console.log(data);
import os
import requests
response = requests.get(
"https://api.arsel.sa/v1/whatsapp/templates/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
headers={"Authorization": f"Bearer {os.environ['ARSEL_API_KEY']}"},
)
response.raise_for_status()
print(response.json())
using System.Net.Http.Headers;
var client = new HttpClient(); // share one instance across requests
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(
"Bearer", Environment.GetEnvironmentVariable("ARSEL_API_KEY"));
var response = await client.GetAsync("https://api.arsel.sa/v1/whatsapp/templates/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a");
var body = await response.Content.ReadAsStringAsync();
if (!response.IsSuccessStatusCode)
throw new HttpRequestException($"{(int)response.StatusCode}: {body}");
Console.WriteLine(body);
<?php
$ch = curl_init("https://api.arsel.sa/v1/whatsapp/templates/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("ARSEL_API_KEY"),
],
]);
$data = json_decode(curl_exec($ch), true);
if (curl_getinfo($ch, CURLINFO_HTTP_CODE) >= 400) {
throw new Exception("{$data['name']}: {$data['message']}");
}
print_r($data);
Error Responses
- 404 Not Found
- 401 Unauthorized
{
"status_code": 404,
"name": "not_found",
"message": "Template not found"
}
{
"status_code": 401,
"name": "unauthorized",
"message": "Invalid API Key"
}