Prerequisites
- A Valley account with API access.
- Your Valley API credentials:
apid,initializationVector,key,username, andpassword.
Credentials schema
| Field | Type | Required | Description |
|---|---|---|---|
apid | string | Yes | Your Valley application ID. |
initializationVector | string | Yes | Initialization vector for API authentication. |
key | string | Yes | API key. |
username | string | Yes | Valley account username. |
password | string | Yes | Valley account password. |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /users/{leafUserId}/valley-credentials | Get stored credentials. |
| POST | /users/{leafUserId}/valley-credentials | Create credentials. |
| DELETE | /users/{leafUserId}/valley-credentials | Delete credentials. |
| GET | /users/{leafUserId}/valley-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.

