---
schema: rendered-html/v1
title: "LicenseInfo | Developer Portal for YouTrack and Hub Documentation"
source_url: https://www.jetbrains.com/help/youtrack/devportal/v1-LicenseInfo.html
generated_at: 2026-06-11T15:17:52.361657+00:00
---

Feedback

Thanks for your feedback!

Was this page helpful?

YesNo

Developer Portal for YouTrack and Hub

- Developer Portal
- Apps
- MCP Tools
- YouTrack Workflows
- JavaScript Workflow Quick Start Guide
- Create a Workflow
- Edit a Workflow
- Workflow Rule Types
- Transactions
- Use Cases for Workflows
- Web-based Workflow Editor
- Using an External Code Editor
- Default Workflows
- Custom Workflow Repository
- JavaScript Workflow Reference
- Rule-specific Properties
- Context
- Requirements
- Using the Workflow API
- Building Integrations with Slack
- Using REST API Methods in JavaScript Workflows
- Working with Dates and Times
- Working with Periods
- Localized Workflow Messages
- Troubleshooting Workflows
- Remote Debugger
- YouTrack Workflow API
- Change Log
- date-time
- entities
- http
- license
- [LicenseInfo](v1-LicenseInfo.html)
- notifications
- search
- strings
- workflow
- YouTrack Import Scripts
- YouTrack Form API
- YouTrack REST API
- Hub REST API

1. YouTrack Workflows
2. JavaScript Workflow Reference
3. YouTrack Workflow API
4. license
5. [LicenseInfo](#0)

# LicenseInfo﻿

Last modified: 07 May 2026

Information about the current YouTrack license.

```
const { licenseInfo } = require('@jetbrains/youtrack-scripting-api/license');
console.log('Current YouTrack version is: ' + licenseInfo.youTrackVersion);
console.log('The current user count in this YouTrack is: ' + licenseInfo.currentUserCount);
```

Available since 2025.3.109000

## Properties﻿

| Name | Type | Description |
| --- | --- | --- |
| currentAgentCount | number | The current number of agents in this YouTrack. |
| currentDiskSpaceMb | number | The current amount of disk space (in megabytes) used by this YouTrack. |
| currentUserCount | number | The maximum number of users allowed in the instance. |
| expirationTimestamp | number | The license expiration timestamp in milliseconds since the Unix epoch. |
| isCloud | boolean | 'True' if this YouTrack is a cloud one. |
| isFree | boolean | Indicates whether the instance is a free instance. |
| isTrial | boolean | 'True' if this YouTrack operates under a trial license. |
| licenseUsername | string | The license username associated with this YouTrack instance. |
| maxAgentCount | number | The maximum number of agents that the current license allows for this YouTrack. |
| maxDiskSpaceMb | number | The maximum amount of disk space (in megabytes) allowed for this YouTrack. |
| maxUserCount | number | The maximum number of users that the current license allows for this YouTrack. |
| youTrackVersion | string | The YouTrack version. |

- [LicenseInfo](/help/youtrack/devportal/v1-LicenseInfo.html)
- [Properties](/help/youtrack/devportal/v1-LicenseInfo.html#properties)

licensenotifications

- Privacy & Security
- Terms Of Use
- Trademarks
- Legal

Copyright © 2000–2026 JetBrains s.r.o.
