Headless API Ready to Integrate
Fetch your CMS content via a RESTful API. Authenticate with API keys, filter by categories or tags, and paginate results — all from any framework or language.
Base URL
Base URL: https://your-project.supabase.co/functions/v1/posts-api
Authentication: apikey: sk_your_api_keyEndpoints
Method
Endpoint
Description
GET
/posts-api
List posts with filtering & pagination
GET
/posts-api/:id
Get single post by ID
Query Parameters
pagelimitcategoriestagsAPI Features
API Key Auth
Secure API access with per-user API keys. Generate, rotate, and revoke keys from your dashboard.
Advanced Filtering
Filter posts by multiple categories and tags simultaneously. Combine filters and pagination freely.
CORS Enabled
Built-in CORS support for browser-to-API calls. Use the API from any frontend framework without proxy setup.
How It Works
1
Generate an API key
Create an API key from your CMS dashboard settings. Each key can have custom permissions.
2
Make a request
Send a GET request to the posts endpoint with your apikey header and any query params.
3
Parse the response
Receive typed JSON with posts, metadata, and pagination info ready to render in your frontend.
Example Request
const response = await fetch(
'https://your-project.supabase.co/functions/v1/posts-api?page=1&limit=10',
{ headers: { 'apikey': 'sk_your_api_key' } }
);
const { data, pagination } = await response.json();