Skip to main content

API Keys

The demeterrr API uses API keys for authentication. API keys identify your organization and determine what resources you can access based on assigned scopes.
Keep your API keys secure! Treat them like passwords. Never expose them in client-side code, public repositories, or logs.

Creating an API Key

  1. Log in to your demeterrr dashboard
  2. Navigate to SettingsAPI Keys
  3. Click Create API Key
  4. Assign a name and select scopes
  5. Copy the key immediately (it won’t be shown again)

API Key Format

All demeterrr API keys follow this format:
Example: dem_xK3p9vL2mN8qR4tY6wZ1aC5eF7gH9jK0lM2nO4pQ6rS8t

Making Authenticated Requests

Include your API key in the X-API-Key header:

Alternative: Bearer Token

You can also use the Authorization header with a Bearer token:

Authentication Errors

Missing API Key

Status: 401 Unauthorized

Invalid API Key Format

Status: 401 Unauthorized

Invalid or Inactive Key

Status: 401 Unauthorized

Expired API Key

Status: 401 Unauthorized

Key Management Best Practices

Create new API keys periodically and delete old ones to minimize security risks.
Store API keys in environment variables, not in your source code.
Only grant the scopes (permissions) your integration actually needs. See Scopes for details.
Check your API key usage in the dashboard to detect unusual activity.
If you suspect a key has been exposed, delete it immediately from your dashboard.

Next Steps

Scopes

Learn about API key permissions

Quick Start

Make your first API call