---
title: "Accept Invite"
method: POST
path: "/team/accept"
tags: ["team"]
---

# Accept Invite

`POST /team/accept`

## Request

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

Accept a team invite. Deliberately NOT behind get_current_user --
the invitee may not have an OpenProof account yet at all. The token
itself (verified via the same verify_token used for magic/access
tokens) is the authentication for this step; membership_id is its
`sub` claim.

## Request body

- AcceptRequest
  - `token` string, required

## Response `200`

Successful Response

- AcceptResponse
  - `access_token` string, nullable
  - `token_type` string
  - `two_factor_required` boolean
  - `challenge` string, nullable

## Other responses

- `422`: Validation Error

---

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