JetBrains Account API
You can use the JetBrains Account API to automate the management of licenses and user accounts. It's a REST API with endpoints to:
Users with the Manage organization permission can also enable or disable the JetBrains Account API for the entire organization. While the API is enabled, they have full read and write access to it.
Enable the JetBrains Account API
In the sidebar, select Organization | Administration.
If you don't see this page, or the controls on this page are inactive, make sure your role has the necessary permissions.
In the JetBrains Account API section of the Administration page, click Enable API.
This enables API access for all users with the Manage organization permission.
Disable the API
In the sidebar, select Organization | Administration.
If you don't see this page, or the controls on this page are inactive, make sure your role has the necessary permissions.
In the JetBrains Account API section of the Administration page, click Disable API.
Disabling the JetBrains Account API blocks all API access to the organization, but any access tokens generated by users stay valid. If you re-enable the API later, they'll still work. For more information, see Token lifetime.
Manage your personal API token
To use the JetBrains Account API, you’ll need a personal access token. You can generate, regenerate, or invalidate it anytime.
Your token is tied to your account, so any API requests made with it will be linked to you. Other users with JetBrains Account API access can generate their own tokens too.
Generate a personal token
In the sidebar, select Organization | Administration.
If you don't see this page, or the controls on this page are inactive, make sure your role has the necessary permissions.
In the JetBrains Account API section of the Administration page, click Generate access token.
Copy your token from the dialog that pops up. For security reasons, we only show the token once – so make sure to save it somewhere safe before closing the dialog.
Generate a new personal token
Generate a new token if you lost access to the current one or accidentally disclosed it to others.
In the sidebar, select Organization | Administration.
If you don't see this page, or the controls on this page are inactive, make sure your role has the necessary permissions.
In the JetBrains Account API section of the Administration page, click Generate new token.
When a confirmation dialog pops up, click Generate new token again.
Copy your token from the dialog that pops up. For security reasons, we only show the token once – so make sure to save it somewhere safe before closing the dialog.
Invalidate your personal access token
Invalidate your token if you no longer need access to the JetBrains Account API.
In the sidebar, select Organization | Administration.
If you don't see this page, or the controls on this page are inactive, make sure your role has the necessary permissions.
In the JetBrains Account API section of the Administration page, click Invalidate token.
When a confirmation dialog pops up, click Invalidate token again.
Token lifetime
The JetBrains Account API tokens have an indefinite lifetime.
Each user gets one token, even if they have multiple roles. Unless they regenerate or remove it, the token stays active as long as they have API access. If they lose all roles, the token gets revoked automatically.
If you disable the API and re-enable it later, any previously generated tokens will still be valid.
Use API methods
See the JetBrains Account API reference for the full list of available methods. To use the API methods, you'll need two parameters:
X-Customer-CodeYour JetBrains customer ID. You can find it by copying support information.
X-Api-KeyYour personal API token.