Skip to main content
All API endpoints require authentication via a Bearer token in the Authorization header. API keys are prefixed with lasso_.

Creating an API key

Generate API keys from the Lasso dashboard. Navigate to Settings > API Keys and click Create API Key.
API keys are shown only once at creation time. Store them securely. If you lose a key, deactivate it and create a new one.

Using your API key

Include the key in the Authorization header of every request.

Key format

Security best practices

  • Store API keys in environment variables, not in source code.
  • Use a separate key per environment (development, staging, production).
  • Rotate keys periodically and deactivate unused ones.
  • Keys are scoped to a single company. All resources accessed through a key belong to that company.

Error responses

If authentication fails, the API returns a 401 status code.