API Reference
Pages & Actions
The admin SPA page map and the web mutations each area wires from React.
Upload a file under a typed purpose; receive a fileId and variant URLs. POST
Multipart endpoint. Supply `purpose` (`avatar | truck_photo | menu_item | marketplace | review_image | community_image | category_icon | chat_attachment | kyc_document`), the target `entityId` (omit for `avatar` — defaults to the caller), and `file`. The response carries `fileId` plus `urls` for the rendered variants; pass `fileId` to the feature endpoint that anchors the upload (e.g. `POST /me/avatar`, `POST /chats/:id/messages`). Per-purpose limits: avatar 2MB, truck_photo / marketplace / community_image 5MB, menu_item / review_image 3MB, category_icon 512KB, chat_attachment / kyc_document 10MB. Allowed types are jpg/png/webp for images; pdf is additionally allowed for chat attachments and KYC docs. Magic-byte checks reject renamed files.