Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.leaf7.fun/llms.txt

Use this file to discover all available pages before exploring further.

Authentication

Every API request must include your API key in the Authorization header.

Finding your API key

  1. Log in to your Leaf7 Dashboard
  2. Navigate to Settings
  3. Your API key is displayed under API Key
Keep your API key secret. Anyone with your key has full access to your projects, keys, and source code. Never expose it in client-side code, public repositories, or Discord messages.

Using your API key

Include your API key as a Bearer token in the Authorization header of every request:
curl -X GET https://auth.leaf7.fun/api/vendor/projects \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
import requests

API_KEY = "your-api-key-here"
BASE_URL = "https://auth.leaf7.fun"

headers = {
    "Authorization": f"Bearer {API_KEY}",
    "Content-Type": "application/json"
}

response = requests.get(f"{BASE_URL}/api/vendor/projects", headers=headers)
print(response.json())

Error responses

If your API key is missing or invalid, you’ll receive:
{
    "detail": "Not authenticated"
}
with HTTP status code 401 or 403.

Rate limits

ScopeLimitWindow
Global60 requestsPer minute
Key generation30 requestsPer minute
Webhook relay30 requestsPer minute
Exceeding rate limits returns a 429 Too Many Requests response. Back off and retry after the window resets.