---
title: "Invite"
method: POST
path: "/api/workspaces/{slug}/invitations"
tags: ["Workspaces"]
---

# Invite

`POST /api/workspaces/{slug}/invitations`

## 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/{slug}/invitations`
- Auth: HTTP bearer

## Path parameters

- `slug` string, required

## Headers

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

## Request body

- InviteRequest
  - `email` string, required
  - `role` 'admin' | 'billing' | 'member'

## Response `201`

Successful Response

- InvitationOut
  - `id` string, required
  - `workspace_id` string, required
  - `email` string, required
  - `role` 'admin' | 'billing' | 'member', required
  - `token` string, required
  - `expires_at` string, date-time, required
  - `created_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)
