Create org-scoped service key. If workspaces is None, key is org-wide.
Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
API key POST schema.
expires_at: Optional datetime when the API key will expire. workspaces: List of workspace UUIDs this key can access (feature-flagged). role_id: Optional UUID of the role to assign to API key. If not provided, uses default role based on read_only flag: - WORKSPACE_ADMIN if read_only is False - WORKSPACE_READER if read_only is True org_role_id: UUID of a org role for org-scoped keys If not provided, defaults to ORG_USER default_workspace_id: UUID of the default workspace for PATs. If not provided, uses the current logic (first available workspace).
Successful Response
API key POST schema.