Before you start
- A Leaf account with a valid API token.
- A Leaf user created.
- A Stara developer account. Contact Stara at servicos@stara.com.br or +55 054 99706-7292 to request API access. They’ll provide a username and password.
Step 1: Get your API key
Authenticate with Stara to get an API key:Step 2: Get access and refresh tokens
Use the API key to generate tokens:Step 3: Attach credentials to the Leaf user
Step 4: Confirm the credentials are attached
Check the stored credentials for the Leaf user:cURL
apiKey, accessToken, accessTokenClient, and refreshToken.

