Portkey MCP Server

invite_user

Invite a new user to your Portkey organization with specific workspace access and API key permissions

Input Schema

NameRequiredDescriptionDefault
emailYesEmail address of the user to invite
first_nameNoUser's first name
last_nameNoUser's last name
roleYesOrganization-level role: 'admin' for full access, 'member' for limited access
workspace_api_key_detailsNoOptional API key to be created for the user
workspacesYesList of workspaces and corresponding roles to grant to the user

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "email": { "description": "Email address of the user to invite", "format": "email", "type": "string" }, "first_name": { "description": "User's first name", "type": "string" }, "last_name": { "description": "User's last name", "type": "string" }, "role": { "description": "Organization-level role: 'admin' for full access, 'member' for limited access", "enum": [ "admin", "member" ], "type": "string" }, "workspace_api_key_details": { "additionalProperties": false, "description": "Optional API key to be created for the user", "properties": { "expiry": { "description": "Expiration date for the API key (ISO8601 format)", "type": "string" }, "metadata": { "additionalProperties": { "type": "string" }, "description": "Additional metadata key-value pairs for the API key", "type": "object" }, "name": { "description": "Name of the API key to be created", "type": "string" }, "scopes": { "description": "List of permission scopes for the API key", "items": { "type": "string" }, "type": "array" } }, "required": [ "scopes" ], "type": "object" }, "workspaces": { "description": "List of workspaces and corresponding roles to grant to the user", "items": { "additionalProperties": false, "properties": { "id": { "description": "Workspace ID/slug where the user will be granted access", "type": "string" }, "role": { "description": "Workspace-level role: 'admin' for full access, 'manager' for workspace management, 'member' for basic access", "enum": [ "admin", "member", "manager" ], "type": "string" } }, "required": [ "id", "role" ], "type": "object" }, "type": "array" } }, "required": [ "email", "role", "workspaces" ], "type": "object" }