Skip to main content

API Keys

Portkey 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 organization and workspaces.

Admin API Keys

Admin API Keys operate at the organization level and provide broad access across all workspaces within an organization. Key features of Admin API Keys:
  • Created and managed by organization owners and admins
  • Provide access to organization-wide operations
  • Can perform actions across all workspaces in the organization
  • 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 Portkey’s security model, enabling secure and efficient access to resources while maintaining proper separation of concerns between organization-wide administration and workspace-specific operations.

Organizations

Workspaces

User Roles & Permissions

Last modified on May 26, 2026