Base URL
Interactive Docs
Draft auto-generates interactive API documentation via Swagger UI: http://localhost:8000/docsAuthentication
In development mode, no authentication is required. For production deployments, Draft uses JWT tokens.Common Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /health | Health check |
GET | /version | App version |
Response Format
All endpoints return JSON. Successful responses use standard HTTP status codes:| Code | Meaning |
|---|---|
200 | Success |
201 | Created |
400 | Bad request (validation error) |
404 | Resource not found |
409 | Conflict (idempotency violation) |
429 | Rate limited |
500 | Internal server error |
Idempotency
LLM-powered endpoints support idempotency keys to prevent duplicate operations:409 Conflict.
Rate Limiting
LLM endpoints use cost-based rate limiting per client. If you hit a rate limit, you’ll receive a429 response with a Retry-After header.