| OAuth | API key | |
|---|---|---|
| Best for | Individual users who want quick, secure setup | Admins managing keys centrally, or automated workflows |
| Setup complexity | Low - browser flow | Medium - manual configuration |
| Key management | Automatic | Manual |
| User permissions | Uses your permissions | Uses key creator’s permissions |
OAuth authentication
OAuth lets MCP clients connect to Omni without requiring you to manually create and manage API keys. When you connect, Omni creates an API key on your behalf and links it to your user account.Prerequisites
Personal access tokens (PATs) must be enabled for your organization. An admin can activate them by going to Settings > API Keys > Personal tokens.How it works
The OAuth flow will use the cookie of the last Omni instance you logged into when redirecting you to the authorization page. If you are a member of multiple organizations, log out and then log back in to the organization you want to connect to immediately before starting the OAuth flow.
- You add the connection URL to your MCP client.
- The MCP client will trigger the OAuth flow.
- Your browser will open to an authorization page for your Omni organization.
- Review the permissions on the authorization page.
- Click Authorize.
- Omni will automatically create a PAT API key for the MCP client and link it to your Omni user account.
Connection URL
Use this URL when setting up OAuth in your MCP client:API key authentication
API key authentication gives you direct control over key creation and management. This approach is useful when:- You need to manage API keys centrally for your organization
- You’re setting up automated workflows or CI/CD pipelines
- You want to use a service account rather than individual user credentials
- Your MCP client doesn’t support OAuth
How it works
- Create an API key in Omni (instructions)
- Configure the key in your MCP client’s settings
- The client includes the key in all requests to Omni
Connection URL
When using API key authentication, connect directly to your Omni instance:<YOUR_OMNI_INSTANCE> with your Omni URL (e.g., acme.omniapp.co).
Managing MCP API keys
Organization Admins can manage API keys in Settings > API access.Troubleshooting
OAuth issues
"Personal Access Tokens aren't enabled" (403 error)
"Personal Access Tokens aren't enabled" (403 error)
Ask an admin to enable PATs: Settings > API Keys > Personal tokens
Authorization flow doesn't start
Authorization flow doesn't start
Authorization fails after clicking "Authorize"
Authorization fails after clicking "Authorize"
API key issues
Authentication fails
Authentication fails
- Verify the API key is correct and hasn’t been revoked
- Check that the key has appropriate permissions
- Ensure you’re using the correct instance URL
General issues
Queries fail after successful authorization
Queries fail after successful authorization