API Reference
The agronome.ai API is a RESTful JSON API built with FastAPI. All endpoints require authentication unless noted otherwise.Base URL
Authentication
All API requests require a Firebase Auth bearer token in theAuthorization header:
Request format
- Content-Type:
application/jsonfor request bodies - Path parameters: Organization-scoped routes use
/organizations/{org_id}/... - Query parameters: Filtering, pagination, and search use query params
Response format
All responses follow a consistent JSON structure:Error format
Errors return appropriate HTTP status codes with a JSON body:Organization scoping
Most endpoints are scoped to an organization. Theorg_id path parameter is validated against your memberships — you can only access organizations you belong to, with permissions determined by your role.