Create a management PAT
Use the session access_token returned by password or OAuth sign-in. A PAT cannot manage or create PATs.
The plaintext is returned only in this response. If creation has an unknown outcome, reconcile the list before retrying; the list never returns plaintext.
Use the session access_token returned by password or OAuth sign-in. A PAT cannot manage or create PATs.
In: header
Header Parameters
Short-lived, single-use security proof bound to the current identity and exact operation. It is neither a PAT nor a model API key.
1 <= length <= 64Permissions to grant to the PAT. Select from the current account catalog; a PAT cannot elevate the account.
1 <= itemsUnix timestamp in seconds. Zero means no expiry; a positive value must be at least one hour in the future at creation. Reuse the exact value for verification and creation.
int640 <= valueResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.beeaicloud.com/api/user/access_tokens" \ -H "X-Security-Proof: string" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "scopes": [ "string" ], "expires_at": 0 }'{
"success": true,
"message": "string",
"data": {
"token": "string",
"item": {
"id": 0,
"name": "string",
"token_ref": "string",
"token_hint": "string",
"scopes": [
"string"
],
"expires_at": 0,
"created_at": 0,
"last_used_at": 0,
"last_used_ip": "string"
}
}
}{
"success": false,
"message": "string",
"code": "string",
"data": {
"code": "string"
}
}{
"success": false,
"message": "string",
"code": "string",
"data": {
"code": "string"
}
}{
"success": false,
"message": "string",
"code": "string",
"data": {
"code": "string"
}
}{
"success": false,
"message": "string",
"code": "string",
"data": {
"code": "string"
}
}How is this guide?