Templates

Get template

Retrieve one template, including its html and text body.

GEThttps://api.sndr.sh/v1/templates/{id}
Get template
curl 'https://api.sndr.sh/v1/templates/tpl_c19e5d34-82a' \
  -H "Authorization: Bearer $SNDR_API_KEY"
200OK
{
  "id":              "tpl_c19e5d34-82a",
  "organization_id": "org_8d41c7a2-3f6",
  "name":            "Order confirmation",
  "subject":         "Your order #{{ order_id }} is confirmed",
  "html":            "<h1>Hi {{ first_name }},</h1><p>Order #{{ order_id }} confirmed.</p>",
  "text":            "Hi {{ first_name }}, order #{{ order_id }} confirmed.",
  "version":         3,
  "created_at":      "2026-02-10T14:00:00Z",
  "updated_at":      "2026-05-01T09:00:00Z"
}

Authorization

Authorizationstringheaderrequired

Bearer followed by your API key. Needs the read scope.

Path parameters

idstringrequired

Template ID (tpl_...).

Errors

401unauthenticatedMissing or invalid API key.
403insufficient_scopeThe API key is missing the read scope.
404not_foundResource does not exist or belongs to a different account.