API ReferenceAuthentication
Authentication
Authenticate your API requests with API keys.
All API requests require authentication via an API key passed in the Authorization header.
Getting an API Key
- Go to Settings → API Keys in your Workestra workspace
- Click Create API Key
- Name your key (e.g., "Production Integration")
- Copy the key — it's only shown once
Using Your API Key
Include your API key in the Authorization header of every request:
curl -X GET \
https://eitztntfwelucezqxjmw.supabase.co/functions/v1/api-contacts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Key Permissions
API keys inherit the permissions of the workspace they belong to. All keys have access to the modules active on the workspace's plan.
Revoking Keys
- Go to Settings → API Keys
- Click the delete icon next to the key
- The key is immediately invalidated
Security Best Practices
- Never commit API keys to version control
- Use environment variables to store keys
- Rotate keys regularly
- Use separate keys for development and production
- Monitor key usage in the audit log