---
title: "Accept organization invitation"
method: POST
path: "/v1/orgs/invitations/accept"
tags: ["Invitations"]
---

# Accept organization invitation

`POST /v1/orgs/invitations/accept`

Accepts an organization invitation for the current signed-in user and switches their active organization to the accepted workspace.

## Request body

- object
  - `id` string, required

## Response `200`

Invitation accepted successfully.

- InvitationAcceptedResponse
  - `accepted` true, required
  - `organizationId` string, typeid, required — Den TypeID with 'org_' prefix and a 26-character base32 suffix.
  - `organizationSlug` string, nullable, required
  - `invitationId` string, typeid, required — Den TypeID with 'inv_' prefix and a 26-character base32 suffix.

## Other responses

- `400` — The invitation acceptance request body was invalid.
- `401` — The caller must be signed in to accept an invitation.
- `403` — API keys cannot accept invitations, or the deployment requires a verified account email.
- `404` — The invitation could not be found.
- `409` — The account cannot join this organization.
- `410` — The user previously accepted this invitation, but their workspace access was removed.

## Changes

- **2026-08-20** `93df40e2efd5` — 2 info
  - the `invitationId` response's property pattern `^inv_.*` was removed for the status `200`
  - the `organizationId` response's property pattern `^org_.*` was removed for the status `200`
- **2026-08-18** `2b6ce8d3055d` — 5 breaking, 1 info
  - the response's body type changed from `object` to no type for status `409`
  - removed the required property `allowedEmailDomains` from the response with the `409` status
  - removed the required property `emailDomain` from the response with the `409` status
  - removed the required property `error` from the response with the `409` status
  - …2 more

[Change history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/orgs/invitations/accept/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) · [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openworklabs/den-api/revisions/fcbb34aa1702/schema)
