Developers
API documentation
Two OpenAPI-documented services, both deployed on Fly.io. They accept the same session token, and the core platform's Swagger UI lets you switch between both APIs.
Core platform API
Django REST Framework — organizations, donations, needs, allocations, transport, notifications, audit, search.
Coordination engine API
Spring Boot — recipient ranking, allocation splitting, transporter selection and Rescue Mode.
Authentication
POST /api/v1/auth/login/with{"email", "password"}returns atokenand itsexpires_at.- Send
Authorization: Token <token>to both APIs. In Swagger UI, click Authorize and pasteToken <token>. - Errors share one shape:
{"detail", "code", "errors"?, "request_id"}. Quote therequest_idwhen reporting problems.
Key endpoints
Core platform
| POST | /api/v1/auth/login/ | Exchange email and password for a session token |
| GET | /api/v1/auth/me/ | Current user and organization |
| GET | /api/v1/donations/ | Donations visible to you (search, status, category, urgency filters) |
| POST | /api/v1/donations/ | Publish a donation (verified donors) |
| POST | /api/v1/donations/{id}/cancel/ | Cancel a donation and its open pickups |
| GET | /api/v1/needs/ | Recipient needs (CRUD for recipients) |
| POST | /api/v1/allocations/{id}/accept/ | Accept, decline, confirm or report-issue on an allocation |
| POST | /api/v1/transport-jobs/{id}/transition/ | Advance a transport job through its state machine |
| GET | /api/v1/search/?q= | Role-scoped global search |
| GET | /api/v1/system/status/ | Dependency health (administrators) |
Coordination engine
| GET | /engine/api/v1/coordination/matches?donation_id= | Ranked recipients with the five-factor breakdown |
| POST | /engine/api/v1/coordination/allocate/{donationId} | Split and allocate a donation, assign transporters |
| POST | /engine/api/v1/coordination/rescue/{donationId} | Rescue Mode allocation with a wider radius |