API Overview
Authentication
The Lighthouse API uses Bearer token authentication via Supabase Auth. Include your token in every request:Response Format
All successful responses are wrapped in anApiResponse envelope:
Error Format
Errors return anApiError object:
Common Status Codes
| Code | Meaning |
|---|---|
| 200 | Success |
| 201 | Created |
| 204 | No Content (successful delete) |
| 400 | Bad Request (validation error) |
| 401 | Unauthorized (missing or invalid token) |
| 403 | Forbidden (insufficient permissions) |
| 404 | Not Found |
| 409 | Conflict (resource already being processed) |
| 500 | Internal Server Error |