---
title: "Accepts the invitation with the invitation code."
method: POST
path: "/invitations/accept"
tags: ["invitations"]
---

# Accepts the invitation with the invitation code.

`POST /invitations/accept`

## Headers

- `Authorization` string, required

## Request body

- AcceptInvitation — The invitation of a user to a workspace.
  - `invitationCode` string, nullable — The invitation code provided when creating the invitation.
  - `referralCode` string, nullable — The referral code provided when creating the invitation from a referral.

## Response `200`

OK

- InvitationsAcceptResponse200 — Empty response body

---

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