# review_invites

**Approve, decline or withdraw invites**

Users with access to a group · destructive

Answers an invite or someone asking to join a group, by its ID from [`waiting_invites`](https://withopenbook.com/docs/tools/waiting_invites): approve lets someone asking to join in, or lets an invite that waited for approval go out, which Openbook emails where it has an email, and decline turns them away, for owners and people with Give access on the group; withdraw takes back an invite nobody has used yet, the user’s own or, with Give access, anyone’s in the group: its link stops working, and a contact it added stays in the group, which remove_contacts in [`manage_groups`](https://withopenbook.com/docs/tools/manage_groups) takes out. Confirm with the user first. Approving can change the proposed access, never past your own. Someone who asked to join from an invite link or its QR code joins with the name, mobile number and email from their own account, and where [`waiting_invites`](https://withopenbook.com/docs/tools/waiting_invites) says adds_to_group, approving also adds them to the group as a contact with those, which everyone with access there sees by its field rules; declined, they’re never added. The result says whether they were added, as [`invite_users`](https://withopenbook.com/docs/tools/invite_users)’ does. A mobile number the directory already has waits for an owner. Nobody joins the user’s Private Contacts by themselves: a scan of its code only asks, and its rules show names alone, so before approving one marked private_contacts, ask the user which fields this person sees, like their mobile numbers or emails, and pass them as visible_fields, which open those fields to them alone as their overrides; notes are never for one person (the user’s call of 2026-11-16). visible_fields works on approve for any group, for someone who already asked to join.

## Parameters

| Parameter | Type | Required | Limits | What |
|---|---|---|---|---|
| `action` | `"approve" \| "decline" \| "withdraw"` | required |  |  |
| `invite` | `string` | required |  |  |
| `access` | `{ add?: boolean, edit?: boolean, delete?: boolean }` | optional |  |  |
| `visible_fields` | `string[]` | optional | up to 40 | On approve: field keys this person sees beyond the group’s rules, like phone.mobile, email or address.home, Visible for them alone. |

## 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.

Annotated **destructive**, so clients like ChatGPT ask the person before calling it.

## Errors

Errors carry a stable code and a message written for people. See [errors and their status codes](https://withopenbook.com/docs/api#errors).

HTTP:

```bash
curl https://api.withopenbook.com/v1/actions/review_invites \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "approve",
  "invite": "7a2e5c9f-3b8d-4f1a-9e6c-2d5b8f1c4a70"
}'
```

MCP:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "review_invites",
    "arguments": {
      "action": "approve",
      "invite": "7a2e5c9f-3b8d-4f1a-9e6c-2d5b8f1c4a70"
    }
  }
}
```

> IDs are made up. Get real ones from `my_access` and `search_contacts`, and send the person’s own OAuth token.
