---
title: "Accept an invitation: choose a password, join the account, sign in (public)"
method: POST
path: "/v1/auth/invitations/accept"
---

# Accept an invitation: choose a password, join the account, sign in (public)

`POST /v1/auth/invitations/accept`

## Request

- Base URL: `https://api.grundfast.dk`
- URL: `https://api.grundfast.dk/v1/auth/invitations/accept`
- Auth: none required

Single use. A login belongs to one account, so an address that already has a Grundfast login cannot accept (409).

## Request body

- InvitationAcceptInput
  - `token` string, required
  - `password` string, required
  - `name` string

## Response `201`

Joined; the session cookie is set

## Other responses

- `400`: Error
- `403`: Error
- `409`: Error
- `415`: Error

---

[API](https://skmtc.dev/grundfast/apis/grundfast-api.md) · [All operations](https://skmtc.dev/grundfast/apis/grundfast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/grundfast/apis/grundfast-api/revisions/ccef6e299bb5?raw)
