---
title: "Invite a user to the workspace"
method: POST
path: "/api/workspace/invites"
tags: ["workspace"]
---

# Invite a user to the workspace

`POST /api/workspace/invites`

[cloud-only] Creates an invitation for a user to join the current workspace.

## Request body

- object
  - `email` string, email, required — Email address to invite
  - `role` 'admin' | 'member' — Role to assign

## Response `201`

Invite created

- WorkspaceInvite — [cloud-only] A pending workspace invitation.
  - `id` string, required
  - `email` string, email, required
  - `role` 'admin' | 'member', required
  - `invited_by` string
  - `created_at` string, date-time
  - `expires_at` string, date-time

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Workspace not found
- `409` — Conflict
- `422` — Validation error
- `500` — Internal server error

## Changes

- **2026-05-22** `09a5075587c8` — 3 info
  - added the non-success response with the status `404`
  - added the non-success response with the status `422`
  - added the non-success response with the status `500`
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/workspace/invites/post.md)

---

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