Skip to main content
Glama

create_api_key

Generate API keys for Portkey authentication with configurable scopes, limits, and permissions for organisation or workspace access.

Instructions

Create a new Portkey API key for authentication. Organisation-level keys provide full access, workspace keys are scoped.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesKey type: 'organisation' for org-wide access or 'workspace' for workspace-scoped
sub_typeYesSub-type: 'user' for user-associated keys or 'service' for service accounts
nameYesDisplay name for the API key
descriptionNoOptional description for the key
workspace_idNoWorkspace ID (required for workspace-type keys)
user_idNoUser ID (required for user sub-type keys)
scopesNoPermission scopes for the key (e.g., ['logs.read', 'analytics.read'])
credit_limitNoCredit limit for usage
alert_thresholdNoAlert threshold percentage (0-100)
rate_limit_rpmNoRate limit in requests per minute
default_config_idNoDefault configuration ID to use with this key
default_metadataNoDefault metadata key-value pairs
alert_emailsNoEmail addresses for alerts
expires_atNoExpiration date in ISO 8601 format

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/s-b-e-n-s-o-n/portkey-admin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server