Skip to content
View as Markdown

GET List Pattern Categories​

GET
/email-patterns/categories

Return the distinct category names currently in use, sorted alphabetically.

This is derived from the patterns themselves, not from the stored category records — a category created via POST /email-patterns/categories does not appear here until at least one pattern uses it. The result is a flat array of strings with no ids; use the ids from wp_pattern_category when you need them.

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​

Category names in use.

application/json
JSON
{
"categories": [
"string"
]
}

Playground​

Authorization

Samples​

Powered by VitePress OpenAPI