Tool reference · Groups, access and invites
accept_invite
Accept an invite
Every user
POST /v1/actions/accept_invite · MCP tool accept_invite
Accepts an invite sent to the user’s own number or email, by its id from invites_for_me, as its link’s page does: they’re in the group, with the access it gives, and the group’s contacts reach their phones at their next sync, in Contacts or only in search as shown says; or, for one waiting for an owner, they’ve asked to join and someone in the group lets them in. When the group adds people who join as contacts, they join it as one, with their name, mobile number and confirmed email, which everyone with access to the group sees by its field rules. One that takes a payment to join is refused, to accept from its link. Confirm with the user first.
Parameters
| Parameter | Type | Required | Limits | What |
|---|---|---|---|---|
invite | string | required | ||
shown | "in_contacts" | "only_in_search" | optional | default "in_contacts" | in_contacts, the group and its contacts on their phones and Macs, until set, or only_in_search, where iPhones and iPads find its contacts when they search in Contacts. |
Who can use it
Every user has it. 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/accept_invite \
-H "Authorization: Bearer $OPENBOOK_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"invite": "f4b8d2a6-1c9e-4d7b-8a3f-6e2c9b5d1a70",
"shown": "in_contacts"
}'{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "accept_invite",
"arguments": {
"invite": "f4b8d2a6-1c9e-4d7b-8a3f-6e2c9b5d1a70",
"shown": "in_contacts"
}
}
}