---
title: "生成共享邀请链接"
method: POST
path: "/tenants/{id}/invite-links"
tags: ["空间邀请"]
---

# 生成共享邀请链接

`POST /tenants/{id}/invite-links`

生成一条多次使用的共享邀请链接：谁拿到链接谁就能注册并加入当前空间。
链接持续有效，直到过期或被撤销。

## Path parameters

- `id` string, required

## Request body

- InternalHandlerCreateInviteLinkRequest
  - `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-06-05** `e7c0c953963b` — 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/invite-links/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/794821c045c7/schema)
