Skip to main content

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 the Authorization header:
Obtain a token by signing in with Firebase Authentication (email/password or OAuth). Tokens expire after 1 hour — use Firebase’s token refresh mechanism for long-lived sessions.

Request format

  • Content-Type: application/json for 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:
List endpoints return arrays directly:

Error format

Errors return appropriate HTTP status codes with a JSON body:

Organization scoping

Most endpoints are scoped to an organization. The org_id path parameter is validated against your memberships — you can only access organizations you belong to, with permissions determined by your role.

Interactive documentation

This API reference is auto-generated from the live OpenAPI schema. Use the Try It panel on any endpoint page to make test requests with your bearer token.