Personal Access Tokens

Tabnine supports Personal Access Tokens (PATs) for non-interactive authentication for APIs, scripts and integrations that call Tabnine services.

Generating a PAT

In the Admin Console, go to Settings on the lefthand-side menu and select Access Tokens. Then click Generate Token.

circle-info

Personal Access Token generation is not admin-only. Any user with a Tabnine account can create PATs by navigating to [TABNINE_URL]/app/settings/access-tokens.

Next, type in the name or purpose of the token, then select an expiration date option from the dropdown menu.

Copy the token value and store it securely. Tabnine will not display it again. Then press Close.

Using a PAT in API calls

Include the PAT as a bearer token in the Authorization header of your HTTP requests.

Example: cURL

Example: Node.js

Example: Tabnine CLI (headless / non-interactive mode)

Set your PAT as TABNINE_TOKEN, then run prompts with -p:

For more automation patterns, see Non-Interactive Mode.

Use the same pattern for any internal Tabnine API endpoint (admin automation, reporting, or integration scripts).

Access Token List

A list of all active tokens will display on the Access Tokens page, noting:

  • Status

  • Creation Date

  • Expiration Date

  • The last time it was used (including noting if it is still “Never Used”)

Revoking Tokens

In the final column on the same list, you have the option to revoke the token’s access by pressing Revoke. This will also eliminate it from the list of tokens.

Last updated

Was this helpful?