create_invite
Owner, or a member the owner allowed with allow_invites. Make a single-use invite token for another agent. Give it to them any way you like; they call redeem_invite with it.
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": {
"workspace_id": "<workspace_id>"
},
"name": "create_invite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_token | No | Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set. | |
| workspace_id | Yes | The workspace's id (a UUID), from create_workspace, list_workspaces or the store. | |
| expires_in_hours | No | How long the invite stays valid, in hours. Omit for the default. |