Skip to main content

API Keys

API keys authenticate your applications with MutagenT. Learn how to create, manage, and securely use them.

Creating API Keys

1

Open Dashboard

Navigate to your MutagenT dashboard
2

Go to Settings

Click SettingsAPI Keys
3

Create Key

Click Create API Key and configure:
  • Name: Descriptive name (e.g., “Production Server”)
  • Scope: Personal, Workspace, or Organization
  • Permissions: Select required permissions
4

Copy Key

Copy and securely store your key — it won’t be shown again

Key Scopes

ScopeAccess LevelUse Case
PersonalYour resources onlyDevelopment, personal projects
WorkspaceAll workspace resourcesTeam projects, shared prompts
OrganizationAll org resourcesAdmin tools, cross-workspace access

Using API Keys

# .env
MUTAGENT_API_KEY=sk_live_xxxxxxxxxxxx

SDK Configuration

import { Mutagent } from '@mutagent/sdk';

const client = new Mutagent({
  bearerAuth: process.env.MUTAGENT_API_KEY,
});

HTTP Headers

For direct API calls:
curl -H "x-api-key: sk_live_xxxxxxxxxxxx" \
  https://api.mutagent.dev/prompts

Security Best Practices

Never commit API keys to version control or expose them in client-side code.
Store keys in .env files and load with dotenv or your framework’s config system.
Create new keys periodically and revoke old ones.
Create keys with only the permissions needed for their specific use case.
Review API key usage in the dashboard to detect anomalies.