---
title: "Accept invitation"
method: POST
path: "/api/v1/invitations/accept"
tags: ["Invitation"]
---

# Accept invitation

`POST /api/v1/invitations/accept`

## Request

- Base URL: `https://api.currencyguard.com`
- URL: `https://api.currencyguard.com/api/v1/invitations/accept`
- Auth: HTTP bearer

Public endpoint for any user to accept their invitation. No authentication required. The invitation token (from the email link) identifies the user. Password is optional: when provided (seed scripts), the backend sets it directly; when omitted (browser flow), the user sets their password on first login via Cognito challenge.

## Request body

- AcceptInvitationRequestDTO: Request to accept an invitation
  - `token` string, required: The unique invitation token from the email link
  - `password` string: Optional password for headless acceptance (CLI/seed). When provided and allow-headless-password is enabled, the server sets this password directly instead of returning a challenge session. Omit for browser-based acceptance.

## Response `200`

Invitation accepted successfully

## Other responses

- `400`: Invalid or expired token — [`http/malformed-request`](/problems/http/malformed-request/)
- `409`: Invitation already accepted — [`http/resource-conflict`](/problems/http/resource-conflict/)
- `422`: The supplied password does not meet the password policy. The `rule` member names which rule was broken and the limit it is measured against travels alongside it. **Problem types returned by this endpoint** | Type | Meaning | |---|---| | [`validation/password-policy-not-met`](/problems/validation/password-policy-not-met/) | The supplied password does not meet the password policy |
- `429`: Too many requests - rate limit exceeded — [`security/rate-limit-exceeded`](/problems/security/rate-limit-exceeded/)

---

[API](https://skmtc.dev/currencyguard/apis/currencyguard-trading-system-api-external.md) · [All operations](https://skmtc.dev/currencyguard/apis/currencyguard-trading-system-api-external/llms.txt) · [OpenAPI document](https://skmtc.dev/currencyguard/apis/currencyguard-trading-system-api-external/revisions/a1f3f854190d?raw)
