TeamCity 2021.1 Help

Get Licensing Info

This article lists REST API requests concerning TeamCity licensing.

Licensing Information

To get the general information about the server licensing (number of available agents/configurations, server license type, effective release date, and so on), use:

GET http://<TeamCity Server host>:<port>/app/rest/server/licensingData

Get License Keys

To get a list of license keys currently available on the server, use:

GET http://<TeamCity Server host>:<port>/app/rest/server/licensingData/licenseKeys

To get details of a specific license key (for example, 00000-00000-00000-00000-00000-00000-00000-00000-00000-00000-00000) use:

GET http://<TeamCity Server host>:<port>/app/rest/server/licensingData/licenseKeys/00000-00000-00000-00000-00000-00000-00000-00000-00000-00000-00000

Add License Key

To add a new key(s), POST text/plain the newline-delimited keys to:

POST http://<TeamCity Server host>:<port>/app/rest/server/licensingData/licenseKeys`.

Delete License Key

To delete a license key (for example, 00000-00000-00000-00000-00000-00000-00000-00000-00000-00000-00000), use:

DELETE http://<TeamCity Server host>:<port>/app/rest/server/licensingData/licenseKeys/00000-00000-00000-00000-00000-00000-00000-00000-00000-00000-00000
Last modified: 14 October 2021