List e-mail templates
GET /program/emails| Scope | program:read |
| Customer session token | Not accepted: call from your server with an API key |
| Rate limit class | read (limits) |
| Idempotency key | Not used |
| MCP tool | charm_list_email_templates |
Every customer e-mail with its switch, whether it actually sends (the shop’s global e-mail switch must be on too), and whether the API may switch it.
Response 200
Section titled “Response 200”Returns EmailTemplateList.
| Field | Type | Description |
|---|---|---|
revision | integer | |
emails_enabled | boolean | The shop’s global e-mail switch, changed in the admin only. |
data | array of EmailTemplate |
{ "revision": 1, "emails_enabled": false, "data": [ { "type": "earn", "name": "Gold", "description": "Points for order #1042", "sends_when": "sends when", "enabled": true, "sends": false, "toggleable": false } ]}Example
Section titled “Example”curl -X GET "https://charm.appfleece.app/api/v1/program/emails" \ -H "Authorization: Bearer chrm_live_..."Errors
Section titled “Errors”unauthorized · invalid_token · insufficient_scope · access_required · validation_error · rate_limited
Every error body carries code, message, request_id and a doc_url pointing at the matching entry in the error catalog.