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

Retrieve a version

GET/v1/templates/{id}/versions/{vid}

Retrieve one version with its bodies and design.

Requires a full-access key.

Empty html, text and from are left out, and so is design for a code template.

Path parameters

idstringrequired
Template id or alias.
vidstring (UUID)required
Version id from the list.

Errors

restricted_api_keyHTTP 403
not_foundHTTP 404
template not found | version not found
GET/v1/templates/{id}/versions/{vid}
curl 'https://zapsmtp.xyz/v1/templates/welcome/versions/019a1f58-2b3c-7d4e-8f50-6a7b8c9d0e1f' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "id": "019a1f58-2b3c-7d4e-8f50-6a7b8c9d0e1f",
  "kind": "saved",
  "author": "jane@acme.com",
  "name": "Welcome",
  "subject": "Welcome, {{first_name}}",
  "html": "<p>Hi {{first_name}}, welcome to Acme.</p>",
  "text": "Hi {{first_name}}, welcome to Acme.",
  "from": "Acme <hello@acme.com>",
  "created_at": "2026-10-22T14:52:00Z"
}