-
Notifications
You must be signed in to change notification settings - Fork 556
Generate API access token
Note: This feature is available in Enterprise and AWS editions only.
- How to generate API token
- Set the maximum token lifetime
- How to delete API token
- Using the API token with GraphQL
The CloudBeaver allows you to generate API tokens for automating tasks and interacting with the GraphQL API.
Note: Each user must create their own tokens.
-
Enable the API token switch in Settings -> Administration -> Server configuration -> Authentication settings.
-
Navigate to your Profile page in the CloudBeaver.
-
Open the API Token tab.

-
Click + Add.
Note: Users can create up to 5 tokens.
-
Enter a Name and select an Expiration date.
Note: The expiration date is required. You can't create a token without one. The maximum token lifetime set by your administrator.
-
Copy the token after it’s generated.
Important: Tokens are displayed only once during creation.
Administrators can limit how long API tokens stay valid.
- Go to Settings -> Administration -> Server configuration.
- In the Server Information section, set the Maximum API token lifetime, days value.
The default is 30 days. Users can't set an expiration date beyond this limit.
- On the API Token tab.
- Find the token you want to delete and click the Delete icon.
- Confirm the deletion in the confirmation dialog.
Note: Deleting a token doesn’t immediately end an active session. Users must log in again for the deletion to take effect.
Authenticate with the GraphQL API console using your token by including it in the query.
- Example query:
query authLogin($credentials: Object) {
authLogin(
provider: "token"
credentials: $credentials
) {
authId
userTokens {
userId
}
authStatus
}
}- Variables:
{
"credentials": {
"token": "your_api_token_here"
}
}- Example response:

- Getting started
- Create connection
- Connection network options
- Supported databases
-
Drivers management
- Database authentication methods
- Connections
- Properties editor
- Data editor
- SQL editor
-
Entity relation diagrams
- Cloud services
- Data transfer
- General user guide
- Administration
- Server configuration
-
Server security and access configuration
- Authentication methods
- Access management
- Proxy configuration
-
Secret management
- Logs
-
Query manager
- Workspace location
- Command line parameters
-
Session manager
- Deployment options
- CloudBeaver Editions
- FAQ
- Development