Authentication
How to authenticate with the Subformer API
All API requests require an API key.
Get an API Key
- Go to API Keys
- Click Create New Key
- Copy and securely store your key
API keys are shown only once. If you lose it, create a new one.
Usage
Include your key in the x-api-key header:
x-api-key: sk_subformer_...Example
curl https://api.subformer.com/v1/users/me \
-H "x-api-key: sk_subformer_..."const response = await fetch('https://api.subformer.com/v1/users/me', {
headers: { 'x-api-key': 'sk_subformer_...' }
});Best Practices
- Never commit API keys to version control
- Use environment variables to store keys
- Don't expose keys in client-side code
- Create separate keys for development and production
Revoking Keys
Go to API Keys, find the key, and click Delete. This immediately invalidates the key.