Skip to main content

Authentication

The LumoAuth Admin API uses API keys for authentication. All API requests must include a valid API key in the X-API-Key header.

API Base URL

https://app.lumoauth.dev/api/v1

API Keys

Include your API key in the X-API-Key header of every request:

X-API-Key: your_api_key_here

[!WARNING] Keep your API keys secure

Using an API Key

bash

curl https://app.lumoauth.dev/t/acme-corp/api/v1/admin/users \
-H "X-API-Key: lmk_abc123xyz..."

Generating API Keys

Create API keys from your tenant portal:

  1. Navigate to Settings → API Keys in your tenant portal

  2. Click Generate New API Key

  3. Give your key a descriptive name (e.g., "Production Server", "CI/CD Pipeline")

  4. Select the appropriate scopes for your use case

  5. Copy the generated key immediately - it won't be shown again

    [!NOTE]

API Key Format

API Key Scopes

When creating an API key, assign scopes to control what resources it can access:

ScopeDescription
admin:readRead access to all admin resources
admin:writeWrite access to all admin resources
admin:usersManage users (create, update, delete)
admin:rolesManage roles and permissions
admin:groupsManage groups and membership
admin:clientsManage OAuth clients
admin:webhooksManage webhooks
admin:auditAccess audit logs

[!NOTE] Scope Principle

Example Request

bash

# API key with admin:read scope
curl https://app.lumoauth.dev/t/acme-corp/api/v1/admin/users \
-H "X-API-Key: lmk_abc123..."

Authentication Errors

When authentication fails, you'll receive one of these errors:

StatusErrorDescription
401UnauthorizedNo API key provided or key is invalid/revoked
403ForbiddenAPI key is valid but lacks required scopes