Get Template
Fetch one WhatsApp template by id. The :id path segment accepts either the Sendiee Mongo _id (a 24-character hex string) or the numeric Meta templateId — the endpoint resolves whichever you pass. Returns the full template document, including its components and resolved group.
GET/v2.0/templates/{id}
Path
| Parameter | Type | Description |
|---|---|---|
| id | string | Sendiee template _id (24-hex ObjectId) or numeric Meta templateId |
Code Examples
# By Sendiee _id
curl -X GET "https://api.sendiee.com/v2.0/templates/664a0bcd1234ef567890ab12" \
-H "Authorization: Bearer YOUR_API_KEY"
# By numeric Meta templateId
curl -X GET "https://api.sendiee.com/v2.0/templates/1234567890123456" \
-H "Authorization: Bearer YOUR_API_KEY"Response — 200 OK
{
"success": true,
"data": {
"_id": "664a0bcd1234ef567890ab12",
"templateId": 1234567890123456,
"name": "order_confirmation",
"language": "en_US",
"category": "UTILITY",
"parameter_format": "POSITIONAL",
"status": "APPROVED",
"quality_score": {
"score": "GREEN"
},
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Order {{1}}"
},
{
"type": "BODY",
"text": "Hi {{1}}, your order is confirmed."
}
],
"isArchived": false,
"group": {
"_id": "664a...",
"name": "Transactional",
"color": "#22c55e",
"order": 1
}
}
}Response — 404 Not Found
{
"error": true,
"code": "TEMPLATE_NOT_FOUND",
"message": "Template not found"
}Invalid id format
If
:id is neither a 24-hex ObjectId nor an all-digit templateId, the endpoint returns 400 INVALID_TEMPLATE_ID.