GET /openapi/memorylake/admin/v1/invitations/{id}
所需权限:
member:invite路径参数
string
必填
邀请的标识符
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/invitations/9d971b8b5813eb1ecceec31354c101b4' \
-H 'Authorization: Bearer sk_xxxxxx'
响应
object
显示 Invitation 对象
显示 Invitation 对象
integer
首次邀请时间,Unix 秒级时间戳
string
被邀请人邮箱地址(规范化为小写)
integer
当前邀请邮件的过期时间,Unix 秒级时间戳
string
此邀请的稳定标识符
string
受邀人接受邀请后将持有的角色:
tenant_admin | tenant_member | <自定义角色>string
邀请状态。可选值:
pending、accepted、rejected、expired、revoked。integer
接受时间,Unix 秒级时间戳。仅在已接受时返回。
string
此邀请产生的成员的
principal_id。仅在已接受时返回。integer
最近一次发送邀请邮件的时间,Unix 秒级时间戳。早于此字段引入的记录中省略。
{
"success": true,
"message": "Operation completed successfully",
"data": {
"created_at": 1760000000,
"email": "alice@example.com",
"expires_at": 1760000000,
"id": "c079f4f4e529b9d687b3cce00eeb9644",
"role": "tenant_member",
"status": "pending",
"accepted_at": 1760000000,
"accepted_principal_id": "5a4863beca31b3b37f780badf1652511",
"last_invited_at": 1760000000
}
}
错误
出错时返回success: false、message 和 error_code。全部错误码见错误码。
| 状态码 | 含义 |
|---|---|
401 | API Key 缺失、无效、已停用或已过期 |
403 | 该 Key 无权执行此操作 |
404 | 资源不存在 |
422 | 请求体或参数未通过校验 |
429 | 请求过多,请按 Retry-After 等待后重试 |
500 | 服务端错误 |