With your content published, it’s time to retrieve it using the ButterCMS API. In this step, you’ll get your API token and learn how to fetch your content.Documentation Index
Fetch the complete documentation index at: https://buttercms.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Get your API token
Before making API calls, you need your API token. You can find it in your account settings:Open Settings
Hover over your profile icon in the top-right corner and select Settings from the popout menu.
API token types
| Token type | Purpose | Client-side safe? |
|---|---|---|
| Read API Token | Fetch draft and published content | ✅ |
| Write API Token | Create and update content | ❌ |
Understanding the API endpoint
ButterCMS uses a REST API with a simple URL structure. For Pages, the basic GET endpoint is:- Page Type:
landing-page - Page Slug:
homepage
YOUR_API_TOKEN with your actual token.
Understanding the response
The API returns your content as structured JSON:What you’ve accomplished
You’ve successfully fetched your first page from the ButterCMS API!
- ✅ Locate your API token
- ✅ Construct API requests to fetch page content
- ✅ Parse the JSON response
Next step
Next steps & resources
Explore advanced features and continue your ButterCMS journey.