Retrieve a complete list of blog post categories with optional recent post data for category-based navigation.
include=recent_posts parameter to enrich the response with each category’s most recent blog posts. This is ideal for creating category landing pages that display both the category information and a preview of the latest content within that category.Set the Authorization header to Token your_read_api_token.
Example: Authorization: Token abc123def456
Note: The header value includes the Token prefix.
You can access your API token from your settings page.
Your ButterCMS read API token
Include additional data in the response.
When set to recent_posts, each category object will include a recent_posts array containing the latest blog posts in that category.
recent_posts Categories retrieved successfully
Response structure for listing all categories
Array of category objects