Skip to content

Generate API Key

Generate a unique API key for accessing Attune's services programmatically. This creates an API key associated with your namespace that can be used to authorize requests to the API.


Overview

Create an API key from the API Access tab in your namespace settings (inside the Attune web-app). The key provides full access to the API on behalf of your namespace.


Notes

  • IMPORTANT: The complete API key is only shown once during creation. Store it securely as it cannot be retrieved later.
  • Use the generated API key in the x-api-key header as x-api-key: at_sk_01H9X7Z5NB3KQY6DGTD5J8K9M0
  • Only one active API key is supported per namespace at a time.
  • If you need to replace your API key, use the "Revoke & Regenerate" option in the API Access tab.
  • For security reasons, the API key will only be displayed as "••••••••••••XXXXXXXX" (with only the last 8 characters visible) after initial generation.
  • All API requests using a revoked key will immediately fail after revocation.

Web Interface

The API key can be managed through the API Access tab in the namespace settings:

  1. Navigate to Settings > API Access
  2. Click "Generate API Key" to create a new key
  3. Copy and securely store the displayed API key
  4. Use the key in API requests with the Authorization header
  5. If needed, click "Revoke & Regenerate" to create a new key (invalidating the previous one)