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

# Decline Invitation

`POST /invitations/{invitation_id}/decline`

Decline an invitation.

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

Returns:
    Decline 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/decline/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)
