---
title: "Accept an invitation by token"
method: POST
path: "/team/invitations/accept/{token}"
tags: ["Team"]
---

# Accept an invitation by token

`POST /team/invitations/accept/{token}`

## Request

- Base URL: `https://api.apphandoff.com/api`
- URL: `https://api.apphandoff.com/api/team/invitations/accept/{token}`
- Auth: API key in cookie `sb-access-token`

Failures carry a machine `code`: `not_found` (404), `db_error` (500), and the business refusals `no_longer_valid`, `email_required`, `email_mismatch` and `expired` (400).

## Path parameters

- `token` string, required

## Response `200`

Success

- object
  - `ok` true, required

## Other responses

- `400`: Invalid request
- `401`: Not authenticated
- `404`: Not found
- `500`: Server error

---

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