# Accept an invitation

`POST /api/v1/team/invites/{token}/accept`

Requires a session but not a tenant. The address is matched in SQL against the signed-in user’s own `users.email`, so the caller cannot supply it; a mismatch answers `403 invite_email_mismatch` rather than pretending the invite does not exist.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `token` | string | required |  |

## Responses

### 200

Joined.

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "tenant_id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "role": {
          "type": "string",
          "enum": [
            "owner",
            "admin",
            "developer",
            "finance",
            "viewer"
          ]
        }
      },
      "required": [
        "tenant_id",
        "role"
      ]
    },
    "_agent": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok"
          ]
        },
        "next_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "summary",
        "status",
        "next_actions",
        "warnings"
      ]
    },
    "api_version": {
      "type": "string",
      "example": "2026-07-01"
    }
  },
  "required": [
    "data",
    "_agent",
    "api_version"
  ]
}
```
