Skip to content
View as Markdown

GET List Patterns In wp_block Format​

GET
/email-patterns/wp-format

Return every pattern shaped like a WordPress wp_block post.

This exists so the Gutenberg email editor can intercept its own reusable-block requests and be served FluentCRM patterns instead — it is a compatibility bridge, not the endpoint you want for general integration work. Use GET /email-patterns for that.

Two differences from the core wp_block shape are worth knowing: the response is a bare array with no envelope and no pagination, and the four date fields serialise as objects ({ "date": …, "timezone_type": …, "timezone": … }) rather than ISO strings, because the raw model timestamps are passed straight through.

Required capability: fcrm_read_emails

Enforced by EmailPatternPolicy::verifyRequest(), the policy default for this route group.

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)

Responses​

Every pattern, newest first.

application/json
JSON
[
{
"id": 0,
"date": "string",
"date_gmt": "string",
"modified": "string",
"modified_gmt": "string",
"slug": "string",
"status": "string",
"type": "string",
"link": "string",
"title": {
"raw": "string"
},
"content": {
"raw": "string",
"protected": true
},
"meta": {
},
"wp_pattern_sync_status": "string",
"wp_pattern_category": [
0
]
}
]

Playground​

Authorization

Samples​

Powered by VitePress OpenAPI