REST API integration
Example Data REST API integration for Draftbit
Draftbit-hosted sample data for testing apps
What is Example Data?
Draftbit's Example Data service (example-data.com) provides unauthenticated sample data for app prototypes, demos, and tests. Use products, people, books, restaurants, todos, and 100+ other collections without creating a backend first. List responses are wrapped in a { data, meta, links } envelope with page/limit pagination.
Use Example Data with Draftbit
- Built-in endpoints: List products, Get product, Search books, List people, List product reviews, Create product.
- Bind any Example Data 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 Example Data's client library.
Example
example-data-example.ts // Example: fetch from Example Data
// Example Data doesn't require an auth header for this endpoint —
// some providers authenticate via a query param or app-level token.
// Check Example Data's docs for auth requirements on protected endpoints.
const response = await fetch("https://example-data.com/api/v1/products");
const data = await response.json();Use cases
- Power a mobile app with a hosted database and APIs
- Add search, filtering, and pagination to a list-driven feature
- Read and write app data without managing your own server
Authentication
Add any required auth headers when you connect Example Data in Draftbit. Secrets stay on the server side.
Use Example Data in a Draftbit app today
Start free, connect Example Data in minutes, and ship with AI agents that know how to use it.
Frequently asked questions
What is the Example Data REST integration?
Draftbit's Example Data service (example-data.com) provides unauthenticated sample data for app prototypes, demos, and tests. Use products, people, books, restaurants, todos, and 100+ other collections without creating a backend first. List responses are wrapped in a { data, meta, links } envelope with page/limit pagination.
How do I connect Example Data to a Draftbit app?
Go to Integrations and then REST APIs in your Draftbit app and pick Example Data from the catalog. Fill in any base URL variables, such as a project ID or host, and the endpoints are available across your screens and to the AI agents while you build. The preconfigured calls need no auth header.
Does Example Data require authentication?
The preconfigured Example Data endpoints do not need an auth header. Some providers authenticate with a query parameter or an app-level token, and others are public read-only APIs, so check the Example Data docs before you call a protected endpoint. The preconfigured endpoints include List products, Get product, Search books, List people.
What can I build with Example Data and Draftbit?
Most teams use Example Data as a backend platform for a mobile or web app. You might use Example Data to power a mobile app with a hosted database and APIs, or to add search, filtering, and pagination to a list-driven feature.