invite_user
Invite a new organization user with workspace access and optional API key provisioning in one call.
Instructions
Invite a new org user and optionally provision workspace access and an API key in one call. Workspace assignments apply only after acceptance; use add_workspace_member or update_workspace_member later for follow-up changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Email address of the user to invite | ||
| role | Yes | Organization-level role: 'admin' for full access, 'member' for limited access | |
| first_name | No | User's first name | |
| last_name | No | User's last name | |
| workspaces | Yes | List of workspaces and corresponding roles to grant to the user | |
| workspace_api_key_details | No | Optional API key to be created for the user |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |