Mail API reference

Mail API · Templates

get/v1/workspaces/{workspace_id}/templates/{name}/variablesAuth

Variables auto-detected from the saved template body + subject (Handlebars expressions, dotted paths preserved, dedup'd in first-occurrence order).

Path parameters

workspace_id*string · uuid

Id of the workspace.

name*string

Name of the template.

Response · 200

data*array

Variables auto-detected from the saved template body + subject (Handlebars expressions, dotted paths preserved).

Example

Request

GET https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/templates/{name}/variables
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": [
    "string"
  ]
}