Get an e-mail template's text
GET /program/emails/{type}/copy| 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_get_email_template_copy |
The text of one customer e-mail: each field in the shop’s primary language (is_default: true when it is Charm’s default line, which follows the shop’s tone) and the shop’s own lines in its other languages. Placeholders such as {{points}} are filled in when the e-mail is sent.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
type | path | string | The template id from GET /program/emails. |
Response 200
Section titled “Response 200”Returns EmailTemplateCopy.
| Field | Type | Description |
|---|---|---|
revision | integer | |
type | string | |
name | string | |
primary_language | string or null | The language of copy. (nullable) |
languages | array of string | The shop’s languages, the primary one included. |
fields | array of string | The fields this template has. |
copy | object | |
translations | object | The shop’s own lines in its other languages; a field missing here sends Charm’s default. |
{ "revision": 1, "type": "earn", "name": "Gold", "primary_language": "primary language", "languages": [ "languages" ], "fields": [ "fields" ], "copy": {}, "translations": {}}Example
Section titled “Example”curl -X GET "https://charm.appfleece.app/api/v1/program/emails/<type>/copy" \ -H "Authorization: Bearer chrm_live_..."Errors
Section titled “Errors”unauthorized · invalid_token · insufficient_scope · access_required · not_found · 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.