Skip to main content

API Keys

The AI Gateway uses two types of API keys to manage access to resources and operations: Admin API Keys and Workspace API Keys. These keys play crucial roles in authenticating and authorizing various operations within your organisation and workspaces.

Admin API Keys

Admin API Keys operate at the organisation level and provide broad access across all workspaces within an organisation. Key features of Admin API Keys:
  • Created and managed by organisation owners and admins
  • Provide access to organisation-wide operations
  • Can perform actions across all workspaces in the organisation
  • Used for administrative tasks and integrations that require broad access
  • When making updates to entities, can specify a workspace_id to target specific workspaces
Admin API Keys should be carefully managed and their use should be limited to necessary administrative operations due to their broad scope of access.

Admin API Key Permission Scopes

Workspace API Keys

Workspace API Keys are scoped to a specific workspace and are used for operations within that workspace only. There are two types — Service API Keys and User API Keys — which share most scopes. The only difference is that Service API Keys can also manage other API keys within the workspace; User API Keys cannot.

Workspace Service API Keys

Used for automated processes, backend integrations, and CI pipelines. In addition to all operational scopes, service keys can create, update, rotate, and delete other workspace API keys.

Workspace User API Keys

Associated with individual users within a workspace. Identical in scope to service keys except they cannot manage other API keys — use these for personal access and user-level integrations.

Using API Key Scopes

When creating or updating API keys, you can define specific permission scopes based on your security requirements: Both types of API keys play important roles in the AI Gateway’s security model, enabling secure and efficient access to resources while maintaining proper separation of concerns between organisation-wide administration and workspace-specific operations.

Organisations

Workspaces

User Roles & Permissions

Last modified on September 15, 2026