Base URL
All API requests are made to:Authentication
All API endpoints require authentication using BetterAuth session cookies. See the Authentication page for details.Response Format
All responses are returned in JSON format. Successful responses return the requested resource or array of resources:Error Handling
Errors are returned with appropriate HTTP status codes and error messages:Description of what went wrong
Common Error Codes
| Status Code | Description |
|---|---|
400 | Bad Request - Invalid request body or validation error |
401 | Unauthorized - Missing or invalid authentication |
403 | Forbidden - Authenticated but lacks permission |
404 | Not Found - Resource does not exist |
500 | Internal Server Error - Something went wrong on the server |
Example Error Response
Data Types
UUID
Resource IDs use UUID v4 format:Timestamps
All timestamps are in ISO 8601 format:JSONB Config
Many resources include aconfig field that accepts arbitrary JSON objects for flexible configuration storage:
Rate Limiting
Currently, there are no rate limits enforced. This may change in future versions.Available Resources
- Dashboards - Manage user dashboards
- Widgets - Manage dashboard widgets
- Settings - User settings and preferences
- Notifications - User notifications
- Accounts - Connected OAuth accounts