Prerequisites
- A Stara developer/partner account with API access.
- Your
apiKeyfrom Stara. - The grower’s
accessToken,accessTokenClient, andrefreshTokenfrom 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:- 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
- Connect Stara Tutorial — Step-by-step walkthrough.
- Provider Authentication Overview — How provider credentials work across all providers.
- API Reference: Providers — Full endpoint reference for provider credentials.

