REST API integration
Strapi REST API integration for Draftbit
Use Strapi collection REST endpoints
What is Strapi?
Strapi's REST API exposes collection and single types based on content permissions. Public content can be read without a token, while protected reads and writes need a bearer token.
Use Strapi with Draftbit
- Built-in endpoints: List entries, Get entries, Create entries, Update entries, Delete entries.
- Bind any Strapi endpoint to a screen, list, form, or AI agent action.
- Authentication is configured once per app — secrets stay on the server.
- Add custom request and response transforms without forking Strapi's client library.
More ways to connect Strapi
Prefer GraphQL? Connect to the Strapi GraphQL integration instead.
Example
strapi-example.ts // Example: fetch from Strapi
const response = await fetch("https://{strapi_host}/api/{content_type}", {
headers: {
"Authorization": "Bearer YOUR_STRAPI_TOKEN",
},
});
const data = await response.json();Use cases
- Drive a blog, news feed, or content section from a headless CMS
- Let non-engineers publish app content without a release
- Localize copy and assets without code changes
Authentication
Authentication uses the `Authorization` header. Paste your key once in Draftbit and every request to Strapi carries it automatically — secrets stay on the server side.
Use Strapi in a Draftbit app today
Start free, connect Strapi in minutes, and ship with AI agents that know how to use it.
Frequently asked questions
What is the Strapi REST integration?
Strapi's REST API exposes collection and single types based on content permissions. Public content can be read without a token, while protected reads and writes need a bearer token.
How do I connect Strapi to a Draftbit app?
Go to Integrations and then REST APIs in your Draftbit app and pick Strapi from the catalog. Paste your API key or token and fill in any base URL variables, such as a project ID or host. The endpoints are then available across your screens and to the AI agents while you build.
Does Strapi require authentication?
Most Strapi endpoints expect a key or token sent as a header. The preconfigured endpoints include List entries, Get entries, Create entries, Update entries.
What can I build with Strapi and Draftbit?
Most teams use Strapi as a headless CMS for a mobile or web app. You might use Strapi to drive a blog, news feed, or content section from a headless CMS, or to let non-engineers publish app content without a release.