# Retrieve endpoint-centric license counts Returns an endpoint-focused subset of [Get License Details](https://www.manageengine.com/products/desktop-central/help/api/onpremise/get-license-details.html) -- only resource counts (computers, servers, endpoints). Use this lighter API when only device counts are needed. ## Endpoint `GET /dcapi/license/endpoints` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/license/endpoints` ### Scope `Admin.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** `string` — Mandatory - `application/licenseEndpointsDetails.v1+json` ### Sample Request #### Curl ```curl curl --request GET \ --url https://appdomain/dcapi/license/endpoints \ --header 'Accept: application/licenseEndpointsDetails.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response ### HTTP 200 #### Response Body `application/json` - `JSON Object` - **isLicensePromoted** `boolean` - True when a registered license is running a higher-edition promotional trial. - **trialDaysLeft** `long` - Days remaining in the promotional trial. Included only when isLicensePromoted is true. - **payNow** `string` - CTA text for purchasing the promoted license. Included only when isLicensePromoted is true. - **downgradeNow** `string` - CTA text for reverting to the previous edition. Included only when isLicensePromoted is true. - **Action** `string` - Action identifier for the downgrade button. Included only when isLicensePromoted is true. - **subscriptionFrequency** `string` - Subscription renewal frequency. Values: 'YEARLY' or 'MONTHLY'. - **licenseExpiryDate** `string` - Formatted expiry date for registered licenses. Absent for free and trial licenses. - **endpoints** `JSON Object` - Endpoint license details with purchased count, managed count, and split breakdown. - **servers** `JSON Object` - Server license details with purchased count, managed count, and split breakdown. ### HTTP 500 #### Response Body `application/json` - `JSON Object` - **error_code** `integer` - Error code. 1001 indicates an unexpected failure while fetching license endpoint details. - **error_description** `string` - Human-readable error message describing the failure. ### Possible Response Codes - **200** — HTTP code - **500** — HTTP code ### Sample Response: HTTP 200 #### Registered UEM/Security license with no shortfall -- server splitup present with compact 2-entry format ```json { "licenseExpiryDate": "Dec 31, 2030", "endpoints": { "purchased": 250, "managed": 200, "viewUrl": "/webclient#/uems/agent/som/computers?deviceType=2", "splitDetails": { "managedComputersDetails": [ { "count": 150, "label": "Agent installed" }, { "count": 25, "label": "OS Deployed and agent installed" } ], "managedComputers": 150, "managedOSDComputers": 25, "managedMDMDevices": 25, "title": "Managed computer splitup:" } }, "servers": { "purchased": 10, "managed": 12, "viewUrl": "/webclient#/uems/agent/som/computers?deviceType=1", "splitDetails": { "managedServersDetails": [ { "count": 8, "label": "Agent installed" }, { "count": 2, "label": "OS Deployed and agent installed" } ], "title": "Managed servers splitup:", "managedOSDServers": 2, "managedServers": 10 } }, "subscriptionFrequency": "YEARLY", "isLicensePromoted": false } ``` #### Registered UEM/Security license with endpoint shortfall overflowing into servers -- expanded 3-entry server split with managedEndpoints ```json { "licenseExpiryDate": "Dec 31, 2030", "endpoints": { "purchased": 250, "managed": 250, "viewUrl": "/webclient#/uems/agent/som/computers?deviceType=2", "splitDetails": { "managedComputersDetails": [ { "count": 180, "label": "Agent installed" }, { "count": 55, "label": "OS Deployed and agent installed" } ], "managedComputers": 180, "managedOSDComputers": 55, "serverUsedForEndpoint": true, "managedMDMDevices": 25, "title": "Managed computer splitup:" } }, "servers": { "purchased": 10, "managed": 22, "viewUrl": "/webclient#/uems/agent/som/computers?deviceType=1", "splitDetails": { "labelhelper": "To free up a Server license, consider purchasing 10 additional Endpoint licenses.", "managedServersDetails": [ { "count": 8, "label": "Agent installed" }, { "count": 2, "label": "OS Deployed and agent installed" }, { "count": 2, "label": "OS Deployed-only Servers" } ], "managedEndpointsDetails": [ { "count": 5, "label": "Agent installed" }, { "count": 5, "label": "OS Deployed and agent installed" } ], "title": "Managed servers splitup:", "managedEndpoints": 10, "managedServers": 22 } }, "subscriptionFrequency": "YEARLY", "isLicensePromoted": false } ``` #### Free edition with minimal endpoint counts -- no splitDetails, no servers ```json { "endpoints": { "purchased": 25, "managed": 20, "viewUrl": "/webclient#/uems/agent/som/computers?deviceType=2" }, "subscriptionFrequency": "YEARLY", "isLicensePromoted": false } ``` ### Sample Response: HTTP 500 #### Unexpected server error while fetching license endpoint details ```json { "error_description": "An internal error occurred while processing the request.", "error_code": 1001 } ``` ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.