Skip to main content

Get Template

Retrieve a single template by ID.

Endpoint

GET /templates/:id

Path Parameters

ParameterTypeDescription
idstringThe template ID

Response

See Create Template for the response shape.

{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"name": "Welcome Email v2",
"html": "<h1>Welcome!</h1>",
"created_at": "2026-03-08T12:00:00.000Z",
"updated_at": "2026-03-08T12:00:00.000Z"
}

Examples

curl "https://api.arsel.sa/v1/templates/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer be_your_api_key"

Error Responses

{
"status_code": 404,
"name": "not_found",
"message": "Template not found"
}