Tabnine APIs
Consolidated API reference for Tabnine Enterprise
Tabnine API Reference
Authentication

Token Scopes
API Areas
Error Responses
Usage Metrics
ORGANIZATIONS
Get Current Organization
Get current organization ID and high-level settings
JWT Bearer token for authentication
Organization information
Public key in PEM format
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Not Found - Resource not found
Internal Server Error - Unexpected server error
Get List of Teams
Get list of teams for the organization
JWT Bearer token for authentication
050List of teams
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Not Found - Resource not found
Internal Server Error - Unexpected server error
Get Account Usage Info
Get monthly account utilization (registered, deactivated, active, pending users)
JWT Bearer token for authentication
Start date for showing utilization (YYYY-MM). Default is last 12 months.
2025-01Pattern: ^\d{4}-\d{2}$Monthly utilization data
Zero-based month (0=January, 11=December)
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Not Found - Resource not found
Internal Server Error - Unexpected server error
Get Organization Usage
Returns aggregated usage metrics for an organization with split chat/agent metrics and per-model breakdown. Replaces v1 usage endpoint.
New in 6.2:
- Chat and agent metrics are split (separate
messages,linesAdded) - Per-model breakdown with token counts (
chat.models,agent.models) idesandlanguagesfields on per-user queries
JWT Bearer token for authentication
Start of reporting interval (inclusive), ISO-8601 UTC
2025-03-23T00:00:00ZEnd of reporting interval (exclusive), ISO-8601 UTC
2026-02-23T00:00:00ZAggregation granularity for usage data
allPossible values: Organization usage data (v2 format)
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Internal Server Error - Unexpected server error
Get Organization Usage (LEGACY)
⚠️ LEGACY ENDPOINT — DO NOT USE FOR NEW INTEGRATIONS.
As of Tabnine 6.2, this endpoint only returns historical usage data collected before 6.2 (pre-6.2 chat interactions, useful interactions, productivity factor, etc.). It does not contain any activity from 6.2 onward and will never be updated with new data.
For all current usage data, use
/api/v2/organization/usage. The v2 endpoint provides split chat/agent metrics with per-model breakdowns and is the only source of post-6.2 activity data.
Returns aggregated usage metrics for an organization over a given time range. Includes per-tool metrics for agent, chat, code completions, and instruct.
JWT Bearer token for authentication
Start of reporting interval (inclusive), ISO-8601 UTC
2025-03-23T00:00:00ZEnd of reporting interval (exclusive), ISO-8601 UTC
2026-02-23T00:00:00ZAggregation granularity for usage data
allPossible values: Organization usage data
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Internal Server Error - Unexpected server error
Get Users NOT Assigned to Teams
Get users in the organization. Can filter by team membership and active status.
Use teamMember=false to get users not assigned to any team.
JWT Bearer token for authentication
Maximum number of items to return
200Number of items to skip
0Filter by team membership. Use false for unassigned users.
Filter by active status. true=registered, false=deactivated.
Paginated list of users
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Internal Server Error - Unexpected server error
LICENSES AND PERMISSIONS
Get License Info
Get license information including seats, features, and settings
JWT Bearer token for authentication
License information
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Not Found - Resource not found
Internal Server Error - Unexpected server error
Get Account Permissions Info
Get list of users with a specific role (e.g., account admins)
JWT Bearer token for authentication
AdminPossible values: Users with specified role
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Not Found - Resource not found
Internal Server Error - Unexpected server error
TEAMS AND USERS
Get Team Users
Get paginated list of users in a team
JWT Bearer token for authentication
Team UUID
Team users
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Not Found - Resource not found
Internal Server Error - Unexpected server error
Get team usage info
Get current team utilization counts (registered, deactivated, invited)
JWT Bearer token for authentication
Team utilization counts
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Not Found - Resource not found
Internal Server Error - Unexpected server error
Get Team-Wide Usage
Returns team-level usage metrics with split chat/agent metrics and per-model breakdown. Replaces v1 team usage endpoint.
JWT Bearer token for authentication
Start of reporting interval (inclusive), ISO-8601 UTC
2025-03-23T00:00:00ZEnd of reporting interval (exclusive), ISO-8601 UTC
2026-02-23T00:00:00ZAggregation granularity for usage data
allPossible values: Team usage data (v2 format)
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Internal Server Error - Unexpected server error
Get team-wide usage (LEGACY)
⚠️ LEGACY ENDPOINT — DO NOT USE FOR NEW INTEGRATIONS.
As of Tabnine 6.2, this endpoint only returns historical usage data collected before 6.2 (pre-6.2 chat interactions, useful interactions, productivity factor, etc.). It does not contain any activity from 6.2 onward and will never be updated with new data.
For all current usage data, use
/api/v2/team/usage. The v2 endpoint provides split chat/agent metrics with per-model breakdowns and is the only source of post-6.2 activity data.
Get team-level usage metrics over a time range.
JWT Bearer token for authentication
Start of reporting interval (inclusive), ISO-8601 UTC
2025-03-23T00:00:00ZEnd of reporting interval (exclusive), ISO-8601 UTC
2026-02-23T00:00:00ZAggregation granularity for usage data
allPossible values: Team usage data
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Internal Server Error - Unexpected server error
Get User Usage
Returns per-user usage metrics with split chat/agent metrics, per-model breakdown, and IDE/language information. Replaces v1 user usage endpoint.
JWT Bearer token for authentication
Start of reporting interval (inclusive), ISO-8601 UTC
2025-03-23T00:00:00ZEnd of reporting interval (exclusive), ISO-8601 UTC
2026-02-23T00:00:00ZAggregation granularity for usage data
allPossible values: User usage data (v2 format)
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Internal Server Error - Unexpected server error
Get user usage (LEGACY)
⚠️ LEGACY ENDPOINT — DO NOT USE FOR NEW INTEGRATIONS.
As of Tabnine 6.2, this endpoint only returns historical usage data collected before 6.2 (pre-6.2 chat interactions, useful interactions, productivity factor, etc.). It does not contain any activity from 6.2 onward and will never be updated with new data.
For all current usage data, use
/api/v2/user/usage. The v2 endpoint provides split chat/agent metrics with per-model breakdowns and is the only source of post-6.2 activity data.
Get user-level usage metrics over a time range.
JWT Bearer token for authentication
Start of reporting interval (inclusive), ISO-8601 UTC
2025-03-23T00:00:00ZEnd of reporting interval (exclusive), ISO-8601 UTC
2026-02-23T00:00:00ZAggregation granularity for usage data
allPossible values: User usage data
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Internal Server Error - Unexpected server error
AUDIT LOGS
Returns a paginated list of audit log events for the organization. Supports filtering by time range, event type, actor, and resource. Can return JSON or CSV format.
JWT Bearer token for authentication
Start of time range (inclusive)
End of time range (exclusive)
Filter by event type (e.g., team_member.added, role.assigned)
Filter by actor ID
Filter by actor email
Filter by resource type (team, user, role, organization)
Filter by resource ID
Sort order by timestamp
descPossible values: Maximum number of events per page
50Number of items to skip
0Output format (json or csv)
jsonPossible values: Paginated audit log events
Total matching items (may be approximate)
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Too Many Requests - Rate limit exceeded
Internal Server Error - Unexpected server error
USER ROLE MANAGEMENT
Permissions
Team rRepositories
List Repositories
Retrieve all repository connections for a team. Requires Admin role.
JWT Bearer token for authentication
Team UUID
List of repository connections
The URL or path to the repository
Authentication method (Git only)
Name of credentials for authentication
Template pattern for source code links. Use {path} and {line}.
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Internal Server Error - Unexpected server error
Add Repository
Add a new repository connection to a team. Requires Admin role. Git repositories can optionally include authentication. Perforce repositories require authentication.
JWT Bearer token for authentication
Team UUID
Optional for Git, not applicable for Perforce
Optional for Git, required for Perforce
Repository connection added
The URL or path to the repository
Authentication method (Git only)
Name of credentials for authentication
Template pattern for source code links. Use {path} and {line}.
Repository connection created
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Repository connection already exists
Internal Server Error - Unexpected server error
Update Repository
Update an existing repository connection. Requires Admin role. All fields are optional (partial update).
JWT Bearer token for authentication
Team UUID
The full repository link/URL
All fields optional for partial update
Repository connection updated
The URL or path to the repository
Authentication method (Git only)
Name of credentials for authentication
Template pattern for source code links. Use {path} and {line}.
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Internal Server Error - Unexpected server error
Delete Repository
Remove a repository connection from a team. Requires Admin role.
JWT Bearer token for authentication
Team UUID
The full repository link/URL
Repository connection deleted
Repository connection deleted (no content)
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Internal Server Error - Unexpected server error
Field descriptions
TEAM MANAGEMENT
Create A Team
Create a new team within the organization. Requires Admin or Manager role.
JWT Bearer token for authentication
Team created
Optional ID of synced external group
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Team with the same name already exists
Internal Server Error - Unexpected server error
USER MANAGEMENT
Get user info
Get user details including allowed teams and primary team. Requires Admin role.
JWT Bearer token for authentication
User UUID
User information
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Internal Server Error - Unexpected server error
Update user properties
Update user role, active status, or team assignment. Requires Admin or Manager role (with role hierarchy checks). Cannot modify self, instance admins, or anonymized users.
JWT Bearer token for authentication
User UUID
All fields are optional; only provided fields will be updated
User updated
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Conflict - invalid user state
Insufficient permissions for role operation
Internal Server Error - Unexpected server error
Look up user by email
Look up a user by email address. Requires Admin or Manager role. Returns 404 if user not found or belongs to different organization.
JWT Bearer token for authentication
URL-encoded email address
User found
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Internal Server Error - Unexpected server error
List user's allowed teams
List teams a user is allowed to access. Requires Admin or Manager role.
JWT Bearer token for authentication
User UUID
List of allowed teams
Optional ID of synced external group
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Internal Server Error - Unexpected server error
Add teams to a user's allowed list
Add teams to a user's allowed-teams list. Requires Admin or Manager role. Idempotent operation.
JWT Bearer token for authentication
User UUID
Teams added to allowed list
No content
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Internal Server Error - Unexpected server error
No content
Remove teams from a user's allowed list
Remove teams from a user's allowed-teams list. Requires Admin or Manager role.
JWT Bearer token for authentication
User UUID
Teams removed from allowed list
No content
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Internal Server Error - Unexpected server error
No content
Invitation management
Invite user by email
Invite a user by email to a team with a role. Requires Admin or Manager role (with role hierarchy checks).
Returns 201 for new invitation, 200 if user already exists.
JWT Bearer token for authentication
Existing user added to team
Invitation created for new user
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Invitation already exists
Internal Server Error - Unexpected server error
List pending invites
List pending invitations, optionally filtered by team. Requires Admin or Manager role.
JWT Bearer token for authentication
Filter invitations by team ID
Paginated invitations
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Internal Server Error - Unexpected server error
Revoke invites by ID
Revoke (soft-delete) invitations by IDs. Requires Admin or Manager role (with role hierarchy checks).
JWT Bearer token for authentication
Invitations revoked
Number of invitations revoked
Bad Request - Invalid or missing parameters
Unauthorized - Invalid or missing token
Forbidden - Insufficient permissions
Not Found - Resource not found
Internal Server Error - Unexpected server error
Agent usage
Get organization agent usage
Returns aggregated agent usage for an organization, including model breakdown and agent type breakdown.
JWT Bearer token for authentication
Organization identifier.
Start of reporting interval (inclusive), ISO-8601 UTC
2025-03-23T00:00:00ZEnd of reporting interval (exclusive), ISO-8601 UTC
2026-02-23T00:00:00ZAggregation granularity for usage data
allPossible values: Organization agent usage
Validation error
Unauthorized or invalid organization
Agent feature not available or insufficient permissions
Internal server error
Get team agent usage
Returns aggregated agent usage for a team, including model breakdown and agent type breakdown.
JWT Bearer token for authentication
Organization identifier.
Team identifier.
Start of reporting interval (inclusive), ISO-8601 UTC
2025-03-23T00:00:00ZEnd of reporting interval (exclusive), ISO-8601 UTC
2026-02-23T00:00:00ZAggregation granularity for usage data
allPossible values: Team agent usage
Validation error
Unauthorized or invalid organization
Agent feature not available or insufficient permissions
Internal server error
Get user agent usage
Returns aggregated agent usage for a user, including model breakdown and agent type breakdown.
JWT Bearer token for authentication
Organization identifier.
User identifier.
Start of reporting interval (inclusive), ISO-8601 UTC
2025-03-23T00:00:00ZEnd of reporting interval (exclusive), ISO-8601 UTC
2026-02-23T00:00:00ZAggregation granularity for usage data
allPossible values: User agent usage
Validation error
Unauthorized or invalid organization
Agent feature not available or insufficient permissions
Internal server error
Last updated
Was this helpful?
