Tool reference · Groups, access and invites

invite_users

Invite people

Users with access to a group

POST /v1/actions/invite_users · MCP tool invite_users

Invites people to a group, by email or by an sms: link the user sends, with the access they’ll have, for owners and people with Give access on the group, or everyone with access when the group lets them (anyone_can_invite), whose invites wait for approval unless the group approves people automatically (auto_approve, D10). Never more access than the inviter has. Each person in people gets one invite: Openbook emails it when they have an email, up to 500 emailed invites a day for each inviter, after which an invite comes back with its link and not_emailed for the inviter to send, and otherwise returns an sms: link for their mobile number that the inviter sends from their own phone. emails and phones invite people without names. add_to_group, on unless you set it to false, also adds each person with a name to the group as a contact, with their mobile number and email, which takes add access there. Everyone with access to the group then sees those details by its field rules, before they join, so say so when you confirm. A mobile number the directory already has waits for an owner. Set it to false for people already in the group, like contacts just imported. Each invite in the result says whether its person was added.

View as Markdown

Parameters

ParameterTypeRequiredLimits
groupstringrequired
people{ name: string, phone?: string, email?: string }[]optionalup to 500
emailsstring[]optional
phonesstring[]optional
access{ add?: boolean, edit?: boolean, delete?: boolean }required
add_to_groupbooleanoptionaldefault true

Who can use it

Users get it once they have access to a group, and each call is checked against that access. A person’s tool list only includes it when they can use it, and clients like ChatGPT see the same list.

Errors

Errors carry a stable code and a message written for people. See errors and their status codes.

curl https://api.withopenbook.com/v1/actions/invite_users \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "group": "a1c4e7f0-2b5d-4c8e-9f1a-3b6d9e2c5f80",
  "people": [
    {
      "name": "Dana Diaz",
      "phone": "(415) 555-0155",
      "email": "dana.diaz@example.com"
    }
  ],
  "access": {
    "add": false
  },
  "add_to_group": true
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "invite_users",
    "arguments": {
      "group": "a1c4e7f0-2b5d-4c8e-9f1a-3b6d9e2c5f80",
      "people": [
        {
          "name": "Dana Diaz",
          "phone": "(415) 555-0155",
          "email": "dana.diaz@example.com"
        }
      ],
      "access": {
        "add": false
      },
      "add_to_group": true
    }
  }
}