Skip to content
View as Markdown
Enter your site to enable Send. Requests are sent from your browser, so the site must allow cross-origin calls (CORS).

GET Get Template​

GET
/templates/{id}

Retrieve a single email template by ID. Returns the template content, email subject, edit type, design template, and settings including template configuration and footer settings. If the template ID does not exist, returns a blank template structure with defaults.

Required capability: fcrm_read_emails or fcrm_manage_emails — which one applies depends on the action being performed.

Enforced by TemplatePolicy::template().

Authorizations​

ApplicationPasswords

WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password

Type
API Key (header: Authorization)

Parameters​

Path Parameters

id*

The template ID.

Type
integer
Required

Responses​

Template details.

application/json
JSON
{
"template": {
"post_title": "string",
"post_content": "string",
"post_excerpt": "string",
"email_subject": "string",
"edit_type": "string",
"design_template": "string",
"settings": {
"template_config": {
"content_padding": 20,
"additionalProperties": "string"
},
"footer_settings": {
"custom_footer": "no",
"footer_content": "string"
}
}
}
}

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI