Accept account invitation

Accept account invitation.

Arguments

  • tokenstring · min length 20 · max length 200required

    Invitation acceptance token. Requires a user session; API keys are refused. Fresh acceptance requires the matching current email. Repeating acceptance returns the existing membership for the same accepting user, if that membership still exists. Unknown or revoked tokens return 404; a fresh request with a mismatched email returns 403. Expired or no longer authorized invitations return 409.

Responses

curl -X POST -N "https://api.veryfront.com/mcp" \  -H "Authorization: Bearer $VERYFRONT_API_KEY" \  -H "Accept: application/json, text/event-stream" \  -H "Content-Type: application/json" \  -d '{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__accept_account_invitation",    "arguments": {      "token": "stringstringstringst"    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"slug\":\"string\",\"name\":\"string\",\"kind\":\"personal\",\"created_at\":\"string\",\"updated_at\":\"string\",\"membership\":{\"role\":\"owner\",\"capabilities\":[\"account.read\"]}}"      }    ],    "structuredContent": {      "id": "00000000-0000-0000-0000-000000000000",      "slug": "string",      "name": "string",      "kind": "personal",      "created_at": "string",      "updated_at": "string",      "membership": {        "role": "owner",        "capabilities": [          "account.read"        ]      }    }  }}

The tool ran; its output is result.structuredContent.