API Key Authentication
All API requests require authentication using a workspace API key.
Obtaining an API Key
- Navigate to Settings → Workspaces → Your Workspace → API Keys in your dashboard
- Click Create API Key
- Give your key a descriptive name
- Copy and securely store your API key - it will only be shown once
Keep your API key secret! Never expose it in client-side code or public repositories.
Using Your Workspace API Key
Authenticate requests using either header:
- Prefix:
wsk_ (Workspace Key)
- Body: 32 random alphanumeric characters
Authentication Errors
Best Practices
- Store API keys in environment variables
- Use separate keys for development and production
- Rotate keys periodically
- Monitor API key usage in your dashboard