HTTP API Overview
Complete reference for the RaisinDB REST API.
Base URL
http://localhost:8080/api
Authentication
All requests require authentication:
curl -H "Authorization: Bearer YOUR_TOKEN" \
http://localhost:8080/api/repositories
Or with API key:
curl -H "X-API-Key: YOUR_API_KEY" \
http://localhost:8080/api/repositories
Response Format
Successful responses return JSON:
{
"data": { ... },
"meta": {
"request_id": "req-abc123"
}
}
Error responses:
{
"error": {
"code": "NOT_FOUND",
"message": "Node not found",
"details": { ... }
}
}
Status Codes
200- Success201- Created400- Bad Request401- Unauthorized403- Forbidden404- Not Found409- Conflict500- Internal Server Error
Rate Limiting
Requests are rate-limited:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1642348800