Skip to main content

Manage API Keys

API keys are required to authenticate your requests to Wren AI's API. This guide will help you create and manage your API keys.

Creating an API Key

Create API Key

  1. Navigate to the main dashboard
  2. Select "API" from the main navigation menu
  3. Click on the "API Keys" tab
  4. Click the "Create API Key" button
  5. Enter a name for your API key (e.g., "Production", "Development")
  6. Click "Create"
caution

Make sure to copy your API key immediately after creation. For security reasons, you won't be able to view it again.

Copy API Key

Using Your API Key

Include your API key in the Authorization header of your requests:

Authorization: Bearer YOUR_API_KEY

Revoking API Keys

To revoke an API key:

  1. Find the key in the API Keys list
  2. Click the more icon (⋮)
  3. Select "Delete"
warning

Revoking an API key is permanent and cannot be undone. Any applications using the revoked key will stop working.

Best Practices

  • Create separate API keys for different environments (development, staging, production)
  • Regularly rotate your API keys
  • Never share your API keys in public repositories or client-side code
  • Monitor your API usage in the API History