Skip to main content
All API requests require a bearer token in the Authorization header.
Authorization: Bearer $LIGHTON_API_KEY
You can create an API key from the API Keys section of the console, or programmatically via POST /api/v3/keys. Existing keys can be listed and revoked through the same endpoint family.
import requests

headers = {"Authorization": "Bearer $LIGHTON_API_KEY"}
response = requests.post(
    "https://api.lighton.ai/api/v3/search",
    headers=headers,
    json={"query": "vacation policy", "max_results": 3},
)

Error responses

StatusMeaning
401Missing or invalid API key
403Key exists but lacks permission for this resource
429Rate limit exceeded