manage_workspace_member
Invite, update, or remove a workspace colleague. This SENDS EMAILS and CHANGES WHO CAN ACCESS the workspace. Works with an API key that has the Manage team permission or an OAuth connection; the user must be a workspace owner or admin. ALWAYS preview first: call without confirm, show it, and call again with confirm: true and the preview_id only after the user explicitly approves. action=invite: email and role required (publisher, editor or viewer), optional brand_ids and resend; always sends a pending invite email, never adds anyone instantly. action=update: member_id or invite_id (from list_workspace_members) plus role and/or brand_ids; or member_id plus api_access (true or false, on its own) to turn API and AI app access on or off for that teammate, which lets them use the workspace API plan from their own keys and AI apps (off by default; you cannot change your own; only the owner can change it for an admin; turning it off stops their keys, AI app connections and webhooks for this workspace). action=remove: member_id (removes the teammate and revokes their API keys for this workspace) or invite_id (cancels a pending invite). Admin seats can only be granted in the posterly dashboard. The workspace owner is emailed about every change. For action=invite with confirm, reuse idempotency_key if the response is lost.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | action=invite (required) or action=update: publisher, editor, or viewer. | |
| No | action=invite only: the colleague email address. | ||
| action | Yes | invite, update, or remove. | |
| resend | No | action=invite only: email an unchanged pending invite again. | |
| confirm | No | Leave out to get a preview. Set true only after the user explicitly approved it, with the preview_id. | |
| brand_ids | No | action=invite or action=update: limit the seat to these brand IDs (from list_brands). Empty array means every brand. Omit on update to keep the current brands. | |
| invite_id | No | action=update or action=remove: a pending invite ID from list_workspace_members. | |
| member_id | No | action=update or action=remove: a member ID from list_workspace_members. | |
| api_access | No | action=update with member_id only, on its own: true turns API and AI app access on; false turns it off. | |
| preview_id | No | The preview_id returned by the preview call. Required with confirm: true. | |
| workspace_id | Yes | Workspace ID (from whoami). | |
| idempotency_key | No | action=invite with confirm: reuse this key if the response is lost. If omitted, an identical confirm within about 10 minutes replays the first result. |