---
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
- `409` — Conflict

## Changes

- **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/c9640fded659/schema)
