---
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

---

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