Runs examples for real against your account. Test keys only; kept in this tab, never stored on our side. Get a key
ZapSMTP / Docs / Templates

List templates

GET/v1/templates

List templates (most recently updated first).

Requires a full-access key.

variables are sample values for previews; variable_names lists the variables used in the subject and bodies.

Errors

restricted_api_keyHTTP 403
GET/v1/templates
curl 'https://zapsmtp.xyz/v1/templates' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "019a1f23-7f80-7192-8b3c-4d5e6f7a8b9c",
      "name": "Receipt",
      "alias": "receipt",
      "subject": "Your receipt for {{order_id}}",
      "html": "<p>Hi {{name}}, thanks for order {{order_id}}.</p>",
      "text": "Hi {{name}}, thanks for order {{order_id}}.",
      "from": "Acme <billing@acme.com>",
      "variables": {
        "name": "Jane",
        "order_id": "A-1042"
      },
      "design": null,
      "created_at": "2026-10-20T12:30:00Z",
      "updated_at": "2026-10-21T09:00:00Z",
      "object": "template",
      "variable_names": [
        "order_id",
        "name"
      ]
    }
  ]
}