REST API Overview & Design Specification
MetaPilot provides a JSON-based RESTful API powered by Django REST Framework (DRF) and documented via OpenAPI 3.0 ().
drf-spectacularInteractive API Documentation (Swagger / ReDoc)
When running the backend server locally ():
./scripts/backend.sh- Swagger UI:
http://localhost:8000/api/schema/swagger-ui/ - ReDoc UI:
http://localhost:8000/api/schema/redoc/ - OpenAPI Schema (JSON):
http://localhost:8000/api/schema/
Common HTTP Headers
| Header Name | Mandatory? | Value / Format | Purpose |
|---|---|---|---|
| Yes (except login) | | Authenticates caller |
| Yes (Tenant endpoints) | | Resolves tenant scope for multi-tenant isolation |
| Yes | | Specifies request body payload format |
| Yes | | Specifies expected response format |