Retrieve a complete list of blog post categories with optional recent post data for category-based navigation.
Retrieve a complete list of all blog post categories in your organization, including category information and optional recent post data. This endpoint is perfect for building category navigation, content organization systems, and category-based filtering interfaces. Category Information: Returns the category name and URL-friendly slug for each category that contains published posts. This provides the essential data needed for building category-based navigation and filtering systems on your blog. Recent Posts Integration: Use theDocumentation Index
Fetch the complete documentation index at: https://buttercms.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
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