---
title: "Accept an invitation"
method: POST
path: "/v1/members/accept"
tags: ["Team"]
---

# Accept an invitation

`POST /v1/members/accept`

## Request

- Base URL: `https://www.chatrail.dev`
- URL: `https://www.chatrail.dev/v1/members/accept`
- Auth: API key in cookie `chatrail_session`

Requires a signed-in session whose address matches the invited one. Possessing the token is not enough — a forwarded invitation email must not be a way into a workspace.

## Request body

- object
  - `token` string, required

## Response `200`

Joined.

## Other responses

- `401`: Sign in as the invited address first.
- `403`: The invitation was sent to a different address.
- `404`: The invitation is not valid.

---

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