---
title: "Create Invitation"
method: POST
path: "/v1/workspaces/{workspace}/invitations"
tags: ["v1", "protected", "workspace-invitations"]
---

# Create Invitation

`POST /v1/workspaces/{workspace}/invitations`

Create an invitation link for the given workspace.

The plaintext ``token`` is returned exactly once in the response.
The caller delivers it however they want (link, email, Slack).

## Path parameters

- `workspace` string, required — Slug of the workspace the request acts in

## Request body

- CreateInvitationBody
  - `email` string, nullable
  - `expires_in_days` integer, nullable

## Response `201`

Successful Response

- InvitationCreatedResponse — Same as InvitationResponse plus the plaintext token, returned ONCE.
  - `accepted_at` string, nullable, required
  - `accepted_by_user_id` string, nullable, required
  - `created_at` string, required
  - `email` string, nullable, required
  - `email_delivery` 'sent' | 'not_requested' | 'not_configured' | 'failed', required
  - `expires_at` string, required
  - `id` string, uuid, required
  - `invited_by` string, required
  - `invited_by_display_name` string, nullable, required
  - `status` string, required
  - `token` string, required
  - `workspace_id` string, required

## Other responses

- `422` — Validation Error

---

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