Leaf uses JWT (JSON Web Token) authentication. You send your email and password to the authenticate endpoint, get back a token, and include that token as a Bearer header on every subsequent request.Documentation Index
Fetch the complete documentation index at: https://docs.withleaf.io/llms.txt
Use this file to discover all available pages before exploring further.
Get a token
Send aPOST request to the authenticate endpoint:
Token lifecycle
TherememberMe field controls how long your token lasts:
rememberMe | Token duration |
|---|---|
"true" | 30 days |
"false" | 24 hours |
Using the token
Include the token in theAuthorization header of every API request:
401 Unauthorized response.
Multiple environments
Leaf does not provide separate test and production environments. Instead, create distinct API owner accounts for each:leaf-test@yourcompany.comfor development and testingleaf-prod@yourcompany.comfor production
What to do next
- Authentication API Reference: Endpoint details, request/response shapes, and error codes.
- Quickstart: Use your token to create a Leaf user and start pulling data.
- Core Concepts: Understand the data pipeline before building.

