Skip to main content
Leaf connects to Raven using OAuth 2.0 credentials. Once connected, Leaf syncs grower, farm, and field data for the Leaf user. This is separate from Raven Slingshot, which uses API key credentials for machine file ingestion.

Prerequisites

  1. A Raven developer account with OAuth application credentials.
  2. Your application’s clientId and clientSecret from Raven.
  3. A grower’s refreshToken obtained through the Raven OAuth 2.0 consent flow.

Credentials schema

Endpoints

Base URL: 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

Last modified on March 19, 2026