Skip to main content

Overview

The Enterprise API v2 uses API key authentication. All requests must include a valid API key in the Authorization header using the Bearer token format.

API Key Format

API keys are prefixed strings:
  • Live keys: tavrn_sk_live_...

Making Authenticated Requests

Include your API key in every request:

Permission Scopes

Each API key is created with specific permission scopes that control access to resources: Use an API key with retrievals:write to create retrievals. An inline requestor also requires requestors:write, and an inline case also requires cases:write. See Select a Requestor.

Managing API Keys

API keys are managed through your organization dashboard:
  1. Navigate to your dashboard → Settings → API Keys
  2. Click “Create API Key”
  3. Select permission scopes
  4. Copy and securely store the generated key (shown only once!)
API keys are shown only once during creation. Store them securely - they cannot be retrieved later.

Security Best Practices

Never Expose Keys

  • Never commit API keys to version control
  • Never include keys in client-side code
  • Use environment variables for key storage

Secure Storage

Key Rotation

  • Rotate keys periodically (recommendation: every 90 days)
  • Rotate immediately if a key is compromised
  • Test new keys before deactivating old ones

Scope Restriction

  • Use the minimum required scopes for each key
  • Create separate keys for different integrations
  • Use read scopes where write isn’t needed

Error Responses

Missing API Key

HTTP Status: 401 Unauthorized

Invalid API Key

HTTP Status: 401 Unauthorized

Insufficient Scope

HTTP Status: 403 Forbidden

Next Steps