---
title: "Accept"
method: POST
path: "/api/workspaces/invitations/accept"
tags: ["Workspaces"]
---

# Accept

`POST /api/workspaces/invitations/accept`

## Request

- Base URL: `https://api.kolens.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kolens.ai/api/workspaces/invitations/accept`
- Auth: HTTP bearer

Redeem an invitation token. The caller's user_id (from the
Vercel proxy) becomes a member of the invited workspace.

## Headers

- `x-kolens-user-id` string, nullable

## Request body

- AcceptInvitationRequest
  - `token` string, required

## Response `200`

Successful Response

- AcceptInvitationOut
  - `workspace_id` string, required
  - `workspace_slug` string, required
  - `role` 'admin' | 'billing' | 'member', required
  - `joined_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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