Text Placeholders
Text placeholders are template variables that get replaced with contact field values at message send time. The API returns both built-in defaults and custom placeholders generated from text-type custom fields.
All endpoints require authentication via the X-API-Key header. See Authentication.
List text placeholders
GET /placeholders
Example request
Response
Placeholder fields
| Field | Type | Description |
|---|---|---|
label | string | Human-readable name. |
value | string | Template syntax to embed in message body (e.g. {{FIRST_NAME}}). |
field | string | Contact field path used for substitution at send time. |
type | string | default (built-in) or custom (from custom fields). |
Default placeholders are always {{FIRST_NAME}} and {{LAST_NAME}}. Custom placeholders are generated from text-type custom fields — the label is uppercased and spaces are replaced with underscores.
Response envelope
All endpoints use the standard envelope:
Error responses:
data is null for a general failure, such as a database error or an upstream timeout. When the request is rejected because of a specific field, data carries the field(s) at fault instead:
Each issue carries a path (the dotted path into the request body) and a message. A label is added when the path is not self-describing, which today means custom fields only, for example "path": "fields.68b0a1f39c2e4d0012ab77e5", "label": "Class Year". issues is an array, but treat it as holding at most one entry: validation stops at the first failure.