Skip to main content
Leaf connects to Stara using an API key combined with OAuth tokens. Once connected, Leaf syncs fields, machine files, and field operations. Stara’s FMIS structure exposes fields only (no separate grower or farm hierarchy).

Prerequisites

  1. A Stara developer/partner account with API access.
  2. Your apiKey from Stara.
  3. The grower’s accessToken, accessTokenClient, and refreshToken from the Stara authentication flow.

Setup steps

POST the credentials to Leaf:

Credentials schema

Create request body: Response:

Endpoints

Base URL: https://api.withleaf.io/services/usermanagement/api

Troubleshooting

Use the events endpoint to inspect credential health:
Event logs are retained for 30 days. Once the credential is deleted or disassociated from the Leaf user, the logs are no longer available.
Common issues:
  • No grower/farm hierarchy: Stara only exposes fields. If you expect grower or farm-level data, it won’t be available from this provider.
  • Status changes to invalid: Tokens may have expired. Re-authenticate the grower through Stara.

What to do next

Last modified on March 19, 2026