跳转到主要内容
POST
/
base
/
{baseId}
/
invitation
/
email
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/base/{baseId}/invitation/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "emails": [
    "[email protected]"
  ],
  "role": "creator"
}
'
{}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

baseId
string
必填

请求体

application/json
emails
string<email>[]
必填
Minimum array length: 1
role
enum<string>
必填
可用选项:
creator,
editor,
commenter,
viewer

响应

201 - application/json

Successful response, return invitation information.

{key}
object
Last modified on December 10, 2025