Get a single Page
Retrieve a specific page by page type and slug. Use the wildcard * as the page type for Single Pages.
* as a wildcard, or optimize your query by providing a specific page type slug. Using the wildcard is useful when you know the page slug but aren’t certain of its type, while specifying the page type can improve query performance. Use dotted notation for field filters (e.g., fields.title=Example).
See also: Architecture & Performance for guidance on levels, pagination, and performance best practices.Authorizations
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.
Path Parameters
The type of page to retrieve.
- Use
*to search across all page types - Use a specific page type slug to limit search to that type
The slug of the page to retrieve.
Query Parameters
Set to 1 to return the latest draft version of a page. Useful for previewing changes before publishing live. i.e. &preview=1. If you are trying to view a scheduled page for which the most recent page version is published, you must pass the preview parameter to see the scheduled changes.
Set to 1 to access unpublished/draft collection items. Useful for staging environments.
0, 1 Set to the api slug of your configured locale (e.g. en or fr). When omitted, this query parameter will default to your organization's default locale.
10"en"
Depth of relationship serialization.
Controls how many levels of referenced content to include:
- 1: Direct fields only, references as URIs
- 2: Direct fields + one level of references (default)
- 3-5: Deeper relationship traversal
Important: Higher levels increase response size. Maximum 10MB per response.
Valid range: 1-5 (inclusive). Values outside this range will be automatically capped.
1 <= x <= 5Media field response format.
Affects only media-typed fields. Other field types are unchanged.
- 0 (default): Media fields return simple URL strings
- 1: Media fields return objects with at least
urland, when available,alt. If the stored media value is just a URL string, the object will includeurlonly.
0, 1 Your ButterCMS read API token
Response
Success
A hash with a data property that contains the page matching the page slug.
A single page object that can be either a Single Page or Page Type page