API Overview
Base URL, authentication, pagination, rate limits, and error handling.
The crewkit API is a JSON REST API. All endpoints are under /api/v1/.
Base URL
| Environment | URL |
|---|---|
| Production | https://api.crewkit.io/api/v1 |
For local development and testing, set the CREWKIT_API_URL environment variable.
Authentication
All API requests (except auth endpoints and health checks) require a Bearer token:
Authorization: Bearer <access_token>Access tokens expire after 4 hours. Use the refresh token to get a new one. See Authentication for the full flow.
Request format
Send JSON bodies with Content-Type: application/json:
curl -X POST https://api.crewkit.io/api/v1/auth/device \
-H "Content-Type: application/json"Response format
Successful responses return JSON with a data key (or resource-specific key):