This page applies to Onyx versions before v4.7. For Onyx v4.7 and later,
see Service Accounts.
API Keys exist as distinct users in Onyx, allowing you to trace activity and manage permissions at the key level.
API Key Types
Each key is created with a role, and that role decides what the key can reach:Admin API Keys
Admin API Keys
Can access all endpoints, including those pre-fixed with
admin/.⚠️ Use with caution: Admin keys have unrestricted access to your Onyx instance.Basic API Keys
Basic API Keys
Can access the non-admin endpoints like Search, Chat, Agents, and Actions.✅ Recommended: Most users should use Basic API Keys for application development.
Limited API Keys
Limited API Keys
Read-only Agent access. Can post messages to Chat endpoints, but cannot read chat history.
Creating API Keys
Only Admins can create and manage API keys.1
Create New API Key
Go to Admin Panel → Service Accounts, click New Service Account, give the key a name,
and select the role for your use case.

2
Save and Copy Key
After creation, immediately copy and securely store the API key. It is shown only once.