Create org personal access token
Authorizations
Body
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 an org role for service keys. Workspace-scoped keys accept only the built-in ORGANIZATION_VIEWER or ORGANIZATION_RESTRICTED role. Defaults to ORGANIZATION_VIEWER for workspace-scoped keys, or ORGANIZATION_USER for org-scoped keys. default_workspace_id: UUID of the default workspace for PATs. If not provided, uses the current logic (first available workspace).
Response
Successful Response
API key POST schema.
organization, workspace Whether tracing-key deletion authority has been confirmed. Legacy key responses do not evaluate this capability.

