Invite to a group
create_invitationUse this to create an invitation link to a view-only or private group, as an admin, editor or read_only member, and give the user its url to share. A public_editable group needs no invitation: share its shareUrl from get_group, or make it private first with update_group. Admins only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"groupToken": "<groupToken>"
},
"name": "create_invitation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expiresAt | No | When the invitation stops working; a time in the past is a 400. Omit for one that never expires. | |
| groupToken | Yes | The group's token, from `listGroups` or `listSearchResults`. | |
| idempotencyKey | No | A UUID you make up for this call. If the call fails or gets no answer and you try again, send the same UUID so nothing is added twice. Use a new one for each new thing you add. | |
| membershipRole | No | Role granted to whoever accepts. Defaults to editor. |