Providing your API key
Include your API key in theX-API-Key header (case-insensitive):
OAuth through the MCP server
Remote MCP clients discover Autype’s OAuth 2.1 endpoints automatically. After browser consent they receive a short-lived token bound to the MCP resource. The trusted Autype MCP service exchanges it for a separate, short-lived Developer API audience token before making internal API calls.API key scopes
- API keys are bound to your organization
- All operations and resources are scoped to your organization
- Credit costs are deducted from your organization’s balance
- Every protected endpoint declares the scopes it requires
When scopes are omitted while creating a key, Autype grants all currently
available scopes for backward compatibility. An explicitly empty scope list is
rejected. Requests to endpoints outside the granted scopes return
403.
Security best practices
Never expose your API key in client-side code
Never expose your API key in client-side code
API keys should only be used in server-side applications. Never include them in JavaScript that runs in the browser.
Use environment variables
Use environment variables
Store your API key in environment variables rather than hardcoding it in your source code.
Rotate keys regularly
Rotate keys regularly
Create new API keys periodically and revoke old ones. You can manage keys in your dashboard.
Use separate keys for different environments
Use separate keys for different environments
Create separate API keys for development, staging, and production environments.
