---
title: "Accept an invite (must be signed in as the invited email)"
method: POST
path: "/api/invites/{token}/accept"
tags: ["Invites"]
---

# Accept an invite (must be signed in as the invited email)

`POST /api/invites/{token}/accept`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/invites/{token}/accept`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `hiveship_access`
  - HTTP bearer

## Path parameters

- `token` string, required

## Response `200`

Invite accepted; returns workspaceId

## Other responses

- `400`: Invite expired or already consumed
- `403`: Signed in as the wrong user for this invite
- `404`: Invite not found

---

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