---
title: "Accept Invitation"
method: POST
path: "/invitations/{invitation_id}/accept"
tags: ["team-invitations"]
---

# Accept Invitation

`POST /invitations/{invitation_id}/accept`

Accept an invitation.

Args:
    invitation_id: Invitation identifier.
    auth: Authenticated caller.
    service: Team service.

Returns:
    Acceptance confirmation.

Raises:
    HTTPException: If the identity email is unavailable.

## Path parameters

- `invitation_id` string, uuid, required

## Response `200`

Successful Response

- InvitationActionResponse — Response model for accepting or declining an invitation.
  - `success` boolean, required
  - `message` string, required
  - `invitation_id` string, required
  - `team_id` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-24** `1cffaad2a921` — 1 breaking, 1 warning, 1 info
  - for the `path` request parameter `invitation_id`, the format changed from no format to `uuid`
  - removed the optional property `detail` from the response with the `422` status
  - added the required property `error` to the response with the `422` status

[Change history](https://skmtc.dev/pioneer/apis/brain-api/changes/invitations/:invitation_id/accept/post.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) · [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/1cffaad2a921?raw)
