Skip to main content

Overview

The Leavo API uses Bearer Token authentication. All requests must include a valid API key in the Authorization header.

Getting Your API Key

1

Access the Dashboard

Go to Dashboard
2

Navigate to Settings

Access Settings > API Keys
3

Generate Key

Click “Create New Key” and copy the generated key
Store your key securely. It will only be shown once during creation.

Using the Key

Include the key in the Authorization header of all requests:
curl -X GET "https://api.leavo.ai/backend/leads" \
  -H "Authorization: Bearer your_api_key_here"

Environment Variables

Never hardcode your keys. Use environment variables like LEAVO_API_KEY.
const API_KEY = process.env.LEAVO_API_KEY;

Security

Don't expose in code

Never commit keys to version control

Rotate periodically

Change keys regularly for security

Use environment variables

Store keys in env vars or secret managers

Revoke if compromised

Immediately revoke compromised keys