categoryTokens. To list all categories, use categories.
Example
Test this query in the Explorer →Usage Guidelines
- The
slugis the same value as the categoryidand is the value stored on tokens. - Returns null when no category matches the slug.
Returns a single token category by its slug, or null if none matches. Reference for the category query in the Codex API: arguments, response fields, and usage.
categoryTokens. To list all categories, use categories.
slug is the same value as the category id and is the value stored on tokens.