---
title: "发出空间邀请"
method: POST
path: "/tenants/{id}/invitations"
tags: ["空间邀请"]
---

# 发出空间邀请

`POST /tenants/{id}/invitations`

Owner 通过邮箱邀请已注册用户加入空间。开启 tenant.auto_accept_invitation 后被邀请人立即自动加入（响应为成员结构），否则需在 /me/invitations 接受后成为成员。

## Path parameters

- `id` string, required

## Request body

- InternalHandlerCreateInvitationRequest
  - `email` string, required
  - `message` string
  - `role` 'owner' | 'admin' | 'contributor' | 'viewer', required

## Response `201`

Created

- object

## Changes

- **2026-07-14** `1c6aac86ddd1` — 2 info
  - api tag `空间邀请` added
  - api tag `租户邀请` removed
- **2026-05-21** `2a10056aff5c` — 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/tenants/:id/invitations/post.md)

---

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