Skip to main content
Leaf connects to Sentera using username/password authentication rather than OAuth. Once connected, Leaf syncs field boundary data for the Leaf user. Sentera is primarily used for field boundary management.

Prerequisites

  1. A Sentera account with the target organization.
  2. The grower’s username and password for their Sentera account.
  3. The organizationName within Sentera that the grower belongs to.

Setup steps

POST the credentials to Leaf:

Credentials schema

Create request body: Response:
Leaf generates an authToken and resolves the organizationId from the provided organizationName after successful authentication.

Confirm the credentials are attached

Check the stored credentials for the Leaf user:
If this worked, Leaf returns the Sentera credential object with the resolved organizationId.

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:
  • Invalid credentials: If the grower changed their Sentera password, the credentials stored in Leaf become invalid. Delete and recreate with the new password.
  • Organization not found: Verify the organizationName matches exactly what’s configured in Sentera, including case sensitivity.

What to do next

Last modified on March 19, 2026