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

# Create Invitation

`POST /v1/workspaces/{workspace_id}/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_id` string, required

## 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
  - `expires_at` string, required
  - `id` string, uuid, required
  - `invited_by` string, required
  - `status` string, required
  - `token` string, required
  - `workspace_id` string, required

## Other responses

- `422` — Validation Error

## Changes

> 19 revisions in range; 6 could not be searched.

- **2026-07-08** `8940d7f77282` — 3 breaking
  - the `accepted_at/anyOf[subschema #1]/` response's property type/format changed from `string`/`date-time` to `string`/`` for status `201`
  - the `created_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `201`
  - the `expires_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `201`
- **2026-04-29** `e1a530c0a2d5` — 1 info
  - endpoint added
- **2026-03-30** `e9c153221160` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/workspaces/:workspace_id/invitations/post.md)

---

[API](https://skmtc.dev/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.dev/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentarea/agentarea-api/revisions/ac18f7025c00/schema)
