Create member

View as MarkdownOpen in Claude

Create member and auto-create Virtual Key. fullToken returned only here. Owner or admin.

Headers

AuthorizationstringRequired

Bearer {access_token}

X-Workspace-IdstringRequired
Workspace UUID

Request

displayName, email, masterKeyId required
displayNamestringRequired
masterKeyIdstringRequired
departmentIdstringOptional
emailstringOptional
expiresAtstringOptional
modelsInfomap from strings to objectsOptional

ModelsInfo 是 custom provider 时的模型价格,格式:{“modelId”: {“prompt”: 1.5, “completion”: 2.0}} 单位:美元 / 1M tokens

monthlyBudgetdoubleOptional
notestringOptional
rateLimitRpmintegerOptional
roleLabelstringOptional

Response

Created
memberobject
virtualKeyobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
422
Unprocessable Entity Error