---
title: "Accept"
method: POST
path: "/v1/invitations/accept"
---

# Accept

`POST /v1/invitations/accept`

## Request

- Base URL: `https://api.flanner.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flanner.io/v1/invitations/accept`
- Auth: none declared

Join an organization and enrol the machine doing it, in one step.

The invitation is the only credential, and it is spent here.
Splitting this into "join" then "enrol" would need a second secret
to carry the new member between the two, which is a worse thing to
put in an email than the one we already send.

## Request body

- AcceptInvitation: Join an organization and enrol the machine doing it, in one step.
  - `token` string, required
  - `public_key` string, required
  - `user_id` string, required
  - `label` string, nullable
  - `platform` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/flanner/apis/flanner-control-plane.md) · [All operations](https://skmtc.dev/flanner/apis/flanner-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/flanner/apis/flanner-control-plane/revisions/96c571cfab10?raw)
