# members_accept

Accept an invitation with its intended email account.

REST · `POST /api/v1/operations/members_accept` · MCP · `members_accept`

Required scope · `read`. Send Idempotency-Key in REST or requestKey in MCP. Replace example IDs and times before running.

## Example request body

~~~json
{
  "invitation": "REPLACE_WITH_THE_INVITATION_FROM_THE_OWNER"
}
~~~

REST returns the output below directly. In MCP read structuredContent.result. Check the current installation at /api/v1/openapi.json.

For 401 check credential validity. For 403 inspect the role, scopes and selected accounts. For 409 reread the record before retrying.

## JSON Schema · Input

~~~json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "invitation": {
      "type": "string",
      "minLength": 32,
      "maxLength": 128
    }
  },
  "required": [
    "invitation"
  ],
  "additionalProperties": false
}
~~~

## JSON Schema · Output

~~~json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string"
    }
  },
  "required": [
    "workspaceId"
  ],
  "additionalProperties": {}
}
~~~
