Usage Metrics API - Licenses

Programmatic access to usage metrics across an organization

The Usage API (released with 5.18.0) provides programmatic access to usage metrics across an organization. It complements existing enterprise reporting options—UI-based usage reports and CSV exports—by enabling integration into internal dashboards and tools via API.

The Usage API is available to all Enterprise customers on both Enterprise SaaS (console.tabnine.com) and Private Installations.

The APIs return JSON with parameter details and example responses.

List of Implemented APIs

APIs return JSON with parameter details and example responses:

Licenses & Permissions

  1. GET license info

  2. GET instance permissions

Get License Information

Returns license metadata for the current Tabnine instance. Use it to validate entitlements before pulling usage metrics.

Get license info

GET
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
GET
/api/v1/license

Get Account Permissions Info

Returns the permissions enabled on this Tabnine instance. Use it to gate tooling features and API calls by permission.

Get account permissions info (list of account admins)

GET
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
rolestringRequiredExample: Admin
Responses
GET
/api/v1/instance/permissions

Last updated

Was this helpful?