Invite someone to your organization
invite_memberInvite someone to your organization
Invites a person by email as admin, member or rep, to every agent (the default) or to
the agents in agent_ids. Mojeeb emails them the invitation link, as from the person who
created the key; it is valid for 7 days, and they join when they accept it. A new
invitation to the same email replaces the open one. Someone already on the team is
409 already_member. Invitations send email, so this endpoint and resendInvitation count
in the budget of 10 requests a minute per key that the WhatsApp template endpoints and
broadcast sends and retries share.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | `admin` sets up the agents they can open (with every agent, also the team and billing); `member` handles conversations; `rep` handles only the clients assigned to them. Owners are invited in the dashboard. | |
| Yes | Who to invite. They join with the account that uses this email. | ||
| agent_ids | No | The agents they get, only with `all_agents: false` (required then; with every agent they are refused). At most 100 (`too_many_agents`). | |
| all_agents | No | Every agent, including agents added later. False: only `agent_ids`. |