---
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 current account email is not allowed to join this organization.
- `410` — The user previously accepted this invitation, but their workspace access was removed.

---

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