API Reference
The Cocobase REST API allows you to interact with your database using standard HTTP requests.Base URL
Authentication
All API requests require authentication using your API key in theAuthorization header:
Request Format
- All request bodies should be JSON
- Set
Content-Type: application/jsonheader
Response Format
All responses are JSON with the following structure: Success Response:HTTP Status Codes
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource doesn’t exist |
| 429 | Too Many Requests - Rate limited |
| 500 | Internal Server Error |
Rate Limits
- Standard: 100 requests per minute
- Pro: 1000 requests per minute
- Enterprise: Custom limits
Pagination
List endpoints support pagination with these parameters:| Parameter | Type | Description |
|---|---|---|
limit | number | Max items to return (default: 20, max: 100) |
offset | number | Number of items to skip |
