Prerequisites
- A Lindsay developer account with API access.
- Your application’s
clientIdandclientSecretfrom Lindsay. - A grower’s
refreshTokenobtained through the Lindsay OAuth 2.0 consent flow. - The
clientEnvironmentfor your integration:STAGEorPRODUCTION.
Credentials schema
| Field | Type | Required | Description |
|---|---|---|---|
clientId | string | Yes | Your Lindsay application client ID. |
clientSecret | string | Yes | Your Lindsay application client secret. |
refreshToken | string | Yes | The grower’s OAuth refresh token. |
clientEnvironment | string | Yes | STAGE or PRODUCTION. |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /users/{leafUserId}/lindsay-credentials | Get stored credentials. |
| POST | /users/{leafUserId}/lindsay-credentials | Create credentials. |
| DELETE | /users/{leafUserId}/lindsay-credentials | Delete credentials. |
| GET | /users/{leafUserId}/lindsay-credentials/events | Get credential events for troubleshooting. |
https://api.withleaf.io/services/usermanagement/api
Create credentials
Response
Troubleshooting
Use the events endpoint to check credential health. Events are retained for 30 days and are deleted when the credential is removed.What to do next
- Irrigation Overview for details on Lindsay and Valley irrigation data.
- API Reference: Providers for the full credential path matrix.

