# POST /chat/rooms/:room_id/invite

**Resource:** [Chat](./chat.md)  
**MCP tool:** `invite_chat_member`  
**Scopes:** `chat:write`  
**Write operation:** yes

Invite someone to a chat room by email — the cross-workspace path. Existing TrustPager users are added immediately; a new email is provisioned an account and added so they land in the room when they accept. Optionally set member_role "host" so they can invite their own people.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `room_id` | path | string | yes |  |
| `email` | body | string | yes | Email address of the person to invite. |
| `member_role` | body | string | no | member (default) or host (can invite others + manage the room). |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/chat/rooms/:room_id/invite"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"email":"...","member_role":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`