Documentation Index
Fetch the complete documentation index at: https://docs.agronome.ai/llms.txt
Use this file to discover all available pages before exploring further.
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:| Status | Meaning |
|---|---|
400 | Bad request — invalid input or validation error |
401 | Unauthorized — missing or invalid token |
403 | Forbidden — insufficient permissions (RBAC) |
404 | Not found |
409 | Conflict — duplicate resource |
422 | Validation error — Pydantic schema mismatch |
500 | Internal server error |
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.