Brill Backend API Documentation
Lists all API endpoints for the Brill backend, grouped by feature area, for frontend integration reference.
What this file does
Lists all API endpoints for the Brill backend, grouped by feature area, for frontend integration reference.
When to use it
- Integrating a frontend with the Brill backend
- Planning which endpoints to implement in a new client
- Auditing existing API coverage against requirements
- Onboarding new developers to the Brill backend
Assumes this stack
Brill Backend API Documentation
This document provides an overview of all available API endpoints in the Brill backend, grouped by category. Use this as a reference for frontend integration and development.
Root & Health
GET /— API statusGET /health— Enhanced health checkGET /api/health— Basic health checkGET /api/health/detailed— Detailed health check
Authentication & User Management
POST /api/auth/register— Register a new userPOST /api/auth/login— User loginPOST /api/auth/social-login— Social loginGET /api/auth/profile— Get user profilePUT /api/auth/profile— Update user profilePUT /api/auth/deactivate— Deactivate userPOST /api/password-reset/request— Request password resetPOST /api/password-reset/verify-code— Verify reset codePOST /api/password-reset/complete— Complete password resetPOST /api/mfa-tokens— Create MFA tokenPOST /api/mfa-tokens/verify— Verify MFA tokenGET /api/mfa-tokens/history— Get MFA historyDELETE /api/mfa-tokens/cleanup— Cleanup MFA tokensPOST /api/jwt-tokens/refresh— Refresh JWTPOST /api/jwt-tokens/verify— Verify JWTPOST /api/jwt-tokens/logout— LogoutGET /api/users— List usersPOST /api/users— Create userGET /api/users/:id— Get user by IDPUT /api/users/:id— Update userDELETE /api/users/:id— Delete userPOST /api/users/:id/verify— Verify userPOST /api/users/:id/lock— Lock userPOST /api/users/:id/unlock— Unlock userPOST /api/users/:id/mfa/enable— Enable MFAPOST /api/users/:id/mfa/disable— Disable MFAGET /api/users/:id/mfa— Get MFA statusGET /api/users/:id/ratings— Get user ratings
Product & Category Management
GET /api/categories— List categoriesPOST /api/categories— Create categoryGET /api/categories/:id— Get categoryPUT /api/categories/:id— Update categoryDELETE /api/categories/:id— Delete categoryGET /api/products— List productsPOST /api/products— Create productGET /api/products/:id— Get productPUT /api/products/:id— Update productDELETE /api/products/:id— Delete productPOST /api/commodities— Create a new commodityGET /api/commodities— Get all commoditiesGET /api/commodities/:id— Get a single commodity by IDPUT /api/commodities/:id— Update a commodity by IDDELETE /api/commodities/:id— Delete a commodity by ID
Orders & Transactions
GET /api/orders— List ordersPOST /api/orders— Create orderGET /api/orders/:id— Get orderPUT /api/orders/:id— Update orderDELETE /api/orders/:id— Delete orderPOST /api/orders/:id/accept— Accept orderPOST /api/orders/:id/reject— Reject orderPOST /api/orders/:id/cancel— Cancel orderPOST /api/orders/:id/pickup— Pickup orderPOST /api/orders/:id/deliver— Deliver orderPOST /api/orders/:id/assign-driver— Assign driverPOST /api/orders/:id/mark-ready— Mark order readyPOST /api/orders/:id/confirm-delivery— Confirm deliveryPOST /api/orders/:id/complete— Complete orderPOST /api/orders/:id/pay— Pay for orderPOST /api/orders/:id/release-payment— Release paymentPOST /api/orders/:id/dispute— Dispute orderPOST /api/orders/:id/refund— Refund orderGET /api/orders/:id/tracking— Get order trackingPOST /api/orders/:id/notify— Notify about orderGET /api/orders/active— Get active ordersPOST /api/orders/auto-assign— Auto-assign orderGET /api/transactions— List transactionsPOST /api/transactions— Create transactionGET /api/transactions/:id— Get transactionPUT /api/transactions/:id— Update transactionPOST /api/transactions/:id/confirm— Confirm transactionPOST /api/transactions/:id/refund— Refund transactionGET /api/escrows— List escrowsPOST /api/escrows— Create escrowPOST /api/escrows/delivery/complete— Complete deliveryPOST /api/escrows/delivery/confirm— Confirm deliveryGET /api/escrow-status/:orderId— Get escrow status
Drivers & Merchants
GET /api/drivers— List driversPOST /api/drivers— Create driverGET /api/drivers/:id— Get driverPUT /api/drivers/:id— Update driverPOST /api/drivers/:id/verify— Verify driverPOST /api/drivers/:id/location— Update driver locationGET /api/driver/orders— Get driver ordersPOST /api/driver/orders/:id/accept— Accept driver orderPOST /api/driver/orders/:id/reject— Reject driver orderPOST /api/driver/orders/:id/update-location— Update order locationPOST /api/driver/orders/:id/mark-delivered— Mark order deliveredGET /api/merchants— List merchantsPOST /api/merchants— Create merchantGET /api/merchants/:id— Get merchantPUT /api/merchants/:id— Update merchantPOST /api/merchants/:id/verify— Verify merchant
Delivery, Tracking & Feedback
GET /api/fuel-orders— List fuel ordersPOST /api/fuel-orders— Create fuel orderGET /api/fuel-orders/:id— Get fuel orderPUT /api/fuel-orders/:id— Update fuel orderPOST /api/fuel-orders/:id/accept— Accept fuel orderPOST /api/fuel-orders/:id/cancel— Cancel fuel orderDELETE /api/fuel-orders/:id— Delete fuel orderGET /api/delivery-feedback— List delivery feedbackPOST /api/delivery-feedback— Create delivery feedbackGET /api/delivery-feedback/:id— Get delivery feedbackGET /api/delivery-feedback/order/:id— Get feedback for orderPUT /api/delivery-feedback/:id— Update feedbackDELETE /api/delivery-feedback/:id— Delete feedbackGET /api/tracking— List tracking infoPOST /api/tracking— Create tracking infoGET /api/tracking/order/:orderId— Get tracking for orderGET /api/tracking/driver/:driverId— Get tracking for driverGET /api/tracking/:id— Get tracking by IDPUT /api/tracking/:id— Update trackingDELETE /api/tracking/:id— Delete tracking
Ratings, Reports & Analytics
GET /api/ratings— List ratingsPOST /api/ratings— Create ratingGET /api/ratings/:id— Get ratingPUT /api/ratings/:id— Update ratingDELETE /api/ratings/:id— Delete ratingGET /api/ratings/user/:userId— Get ratings for userGET /api/analytics/dashboard— Analytics dashboardGET /api/analytics/orders— Analytics for ordersGET /api/content-reports— List content reportsPOST /api/content-reports— Create content reportGET /api/content-reports/:id— Get content reportPUT /api/content-reports/:id— Update content report
Support, Messaging & Notifications
GET /api/support-tickets— List support ticketsPOST /api/support-tickets— Create support ticketGET /api/support-tickets/:id— Get support ticketPUT /api/support-tickets/:id— Update support ticketDELETE /api/support-tickets/:id— Delete support ticketGET /api/support-ticket-messages/:ticketId/messages— Get messages for ticketPOST /api/support-ticket-messages/:ticketId/messages— Add message to ticketPUT /api/support-ticket-messages/:ticketId/messages/:messageId/read— Mark message as readGET /api/support-ticket-messages/messages/unread-count— Get unread message countGET /api/messages— List messagesPOST /api/messages— Create messageGET /api/notifications— List notificationsPOST /api/notifications— Create notification
Security, Logs & Admin
GET /api/audit-logs— List audit logsGET /api/error-logs— List error logsGET /api/security-logs— List security logsGET /api/suspicious-activities— List suspicious activitiesGET /api/admin-users— List admin usersPOST /api/admin-users— Create admin userGET /api/admin-dashboard/overview— Admin dashboard overviewGET /api/admin-dashboard/alerts— Admin alertsGET /api/admin/reports— Admin reportsGET /api/admin/system-metrics— System metrics
Payments, Webhooks & Integrations
POST /api/payments/initialize— Initialize paymentGET /api/payments/verify/:reference— Verify paymentGET /api/payments/history— Payment historyGET /api/payments/status/:reference— Payment statusPOST /api/payments/refund— Refund paymentPOST /api/webhooks/paystack— Paystack webhookGET /api/webhooks/health— Webhook healthPOST /api/bank-accounts— Add bank accountGET /api/bank-accounts— List bank accounts
Toll Gates
POST /api/toll-gates- Create a new toll gate (Admin only)GET /api/toll-gates- List all toll gatesGET /api/toll-gates/:id- Get toll gate detailsPUT /api/toll-gates/:id- Update toll gate details (Admin only)
Configuration
GET /api/config/app- Get app configurationGET /api/config/payment- Get payment configurationGET /api/config/delivery- Get delivery configurationPUT /api/config/app- Update app configuration (admin only)
Miscellaneous
GET /api/cart— Get user's cartPOST /api/cart— Add item to cartPUT /api/cart/:id— Update cart item quantityDELETE /api/cart/:id— Remove item from cartDELETE /api/cart— Clear entire cartGET /api/checkout/preview— Preview checkout summaryPOST /api/checkout— Place order/api/firebase/*— Firebase endpoints/api/geolocation/*— Geolocation endpoints/api/identity-verifications/*— Identity verification endpoints/api/push-notifications/*— Push notification endpoints/api/realtime/*— Real-time communication endpoints/api/realtime-examples/*— Real-time example endpoints/api/search/*— Search endpoints/api/upload/*— File upload endpoints/api/verification-documents/*— Verification document endpoints/api/web/*— Web-specific endpoints
Note:
- All endpoints are prefixed with
/apiunless otherwise stated.- Most endpoints require authentication (see backend code for middleware details).
- For detailed request/response formats, see the backend route files or ask for specific endpoint details.
What's inside
15 sections covering 200+ endpoints across auth, products, orders, drivers, payments, admin, and more
Change this for your project
- Replace
Brill-Prime/Brill-backendwith your own repository name - Replace
Brill Backend API Documentationwith your project's title - Replace
Paystackreferences with your payment provider if different
Where it goes
Keep it in your repository where the agent or team that needs it will read it.
Worth borrowing
- Grouping endpoints by domain (auth, orders, payments) for quick scanning
- Including health check endpoints at the root for monitoring setup
- Separating admin-only endpoints (e.g., toll gates, config) into their own sections
Related Documents
ArbitragePro Configuration Guide: Complete Setup and Deployment
Guides you through installing, configuring, and deploying a multi-chain Rust arbitrage trading bot across EVM and Solana networks.
Mkan MVP Production Checklist
Lists over 200 tasks for launching a property rental MVP, organized by priority and timeline.
Analytics Pipeline
Documents an analytics pipeline using OpenSearch, OpenSearch Dashboards, and Nginx routing for a multi-tenant security platform.
VeeFore - Complete Project Documentation
Documents the full architecture, API, deployment, and configuration for a multi-platform social media management app with AI tools.