External API Gateway reference
Use this page to look up what the OpenLM External API Gateway accepts while you build an integration: the endpoints, the operations available on each, the access level each one needs, the limits, and the errors. To create a client and get a token, see Connect to the OpenLM External API Gateway.
Every request needs an Authorization: Bearer <token> header with a token from a GeneralApiClient client. The gateway returns only the data of the account the client belongs to.
Endpoints
All paths are relative to {BASE_URL}/api/externalapigateway, where {BASE_URL} is https://cloud-us.openlm.com or https://cloud-eu.openlm.com. The following table lists the endpoints:
| Endpoint | Method | Access level | Use it to |
|---|---|---|---|
/graphql | POST | Set by each operation | Run GraphQL operations on License Access Control, the Reporting Data API, AI Reporting insights, and SAM entitlement records. |
/insights/{endpoint} | GET | Read | Read AI Reporting insights as REST. |
/reporting/{report} | POST | Read | Download a report as a CSV file. |
/lacAssets | GET | Read | Read the license server inventory for ServiceNow. |
/cmdb/{feed} | GET | Read | Read the ServiceNow CMDB feeds. |
/brokerhub/brokers | GET, PATCH, DELETE | Read for GET, Admin for PATCH and DELETE | List, approve, and remove Brokers. |
/brokerhub/brokers/hostport | GET | Read | Read the host and port of a Broker. |
/mcp | POST, GET, DELETE | Read | Connect an MCP client to the OpenLM MCP Connector with client credentials. |
/health | GET | No token needed | Check that the gateway is up. |
GraphQL operations
Send GraphQL operations to /graphql. The gateway accepts only the operations listed in this section. Any other operation, schema introspection included, is refused with 403. A request can combine queries from several services, as described in Combine queries in one request.
Reporting Data API
Every query in Query the Reporting Data API works through the gateway, with the same names, arguments, and fields. All of them need the Read level. A page returns at most 250 records.
AI Reporting insights
AI Reporting insights answer license questions such as when a seat is likely to be free, which licenses sit idle, and how many seats you need. Each insight is available both as a GraphQL query and as a REST endpoint under /insights/, and both return the same data. The REST endpoint returns the full result without a field selection, so it is the quicker way to start.
All insights need the Read level. REST parameters use the names in the following table. In GraphQL, the same arguments use camelCase, for example idleDays for idle_days. Dates in date_from and date_to use the YYYY-MM-DD format.
| REST endpoint and GraphQL query | What it answers | Parameters |
|---|---|---|
forecast/license-availabilityforecastLicenseAvailability | How likely a seat of a product is to be free now, or horizon_minutes from now. | product (required), horizon_minutes (default 0) |
denials/analysisanalyzeDenials | Whether the denial rate of a product is unusually high. | product (required), window_days |
license-count/recommendationrecommendLicenseCount | How many seats to own to meet a target service level. | product (required), target_sla_percent |
usage/summarygetUsageSummary | A usage health summary of a product over a recent period. | product (required), window_days |
seats/availabilitylicenseSeatAvailability | Floating license seat availability per feature and license server. | feature_name, product_name, vendor, server_name, date_from, date_to, license_type (default Floating), limit (default 50), no_cache |
usage/concurrent-trendconcurrentUsageTrend | The trend of concurrent usage per feature and license server over a date range. | feature_name, product_name, vendor, server_name, date_from, date_to, days, license_type (default Floating), limit (default 50), no_cache |
seats/named-user-availabilitynamedUserSeatAvailability | Named-user license allocations per user. date_from and date_to filter on the date the allocation started. | feature_name, product_name, vendor, user_name, currently_using, date_from, date_to, license_type (default NamedUser), limit (default 100), no_cache |
utilization/summarygetUtilizationSummary | Peak and average utilization against owned seats, as a series by hour, day, week, or month. The default period is the last 30 days. | product, feature, vendor, time_from, time_to, granularity (default day) |
concurrency/profilegetConcurrencyProfile | How hourly peak concurrency is distributed, the hours when the pool ran out, and a heatmap by day of the week and hour. The default period is the last 30 days. | product, feature, vendor, time_from, time_to |
licenses/idlegetIdleLicenses | Licenses with no use in more than idle_days, with last-used dates and an annual savings estimate when costs are mapped. | idle_days (default 30), product, feature, vendor, limit (default 100) |
sessions/efficiencygetSessionEfficiency | Checkout time compared with active work, from Workstation Agent idle data, with an estimate of seats you can harvest. detail_level user adds a row per user. The default period is the last 30 days. | product, feature, vendor, group, user, time_from, time_to, detail_level (default group), limit (default 100) |
allocation/summarygetAllocationSummary | Who holds licenses of a product and since when. active_only limits the result to allocations still held. The default period is the last 30 days. | product, feature, vendor, group, user, time_from, time_to, detail_level (default group), active_only (default true), limit (default 100) |
usage/by-groupgetUsageByGroup | Usage hours, unique users, sessions, peak concurrency, and proportional cost per group and product, for chargeback. The default period is the last 30 days. | product, feature, vendor, group, time_from, time_to, limit (default 100) |
licenses/inventorygetLicenseInventory | The licenses you own: seats owned, deployed, and the 30-day peak used, with expiry and license server. | product, feature, vendor, license_type, license_server, limit (default 100) |
pool/simulategetSimulatePoolChange | What would happen with a different number of seats: hours short of seats, peak affected users, and annual savings when costs are mapped. The default period is the last 90 days. | feature (required), hypothetical_seats (required), vendor, time_from, time_to |
demand/forecastgetForecastDemand | Whether demand for a feature is going up or down, and the peak expected horizon_months ahead. | feature (required), vendor, horizon_months (default 6) |
optimization/recommendationsgetOptimizationRecommendations | Ranked recommendations to harvest idle seats and to reduce underused features, with annual savings when costs are mapped. | product, feature, vendor, idle_days (default 30), min_savings, limit (default 100) |
An unknown REST endpoint is answered with 404 and the code UNKNOWN_ENDPOINT.
License Access Control
License Access Control is the only service with operations at all three access levels. The following table lists the operations the gateway accepts:
| Access level | Operations |
|---|---|
| Read | lacAssetsReadManageOverview, lacAssetContent, candidateLacAssets, lacAssetsPendingHostsFilterValues, lacAssetsDeniedHostsFilterValues, lacAssetsPendingVendorsFilterValues, lacAssetsDeniedVendorsFilterValues, assetsLMTypesFilterValues, lacAssetsReadManageLicenseServersFilterValues, lacAssetsReadManageVendorsFilterValues, lacAssetManageAutoDeployConfig, deploymentQueueItems, allScheduledAssetDeployments, scheduledAssetDeployments, deploymentStatus, lacAssetRules, rulesCategoriesFilterValues, rulesTypesFilterValues, rulesEntityNamesFilterValues, rulesEntityTypesFilterValues, rulesTypesForLMTypeAndCategory, rulesEntityTypesForLMType, propertiesForRuleTypeAndLMType, ruleFeatureKeywordTypesForLMType, rulesFeaturesKeywordNamesFilterValues, rulesFeatureNamesFilterValues, rulesCategoriesForLMType, lacHistory, lacHistoryVendorsFilterValues, lacHistoryLicenseServersFilterValues, lacHistoryHostsFilterValues, lacHistoryPortsFilterValues, lacHistoryPushStatusFilterValues, lacPolicies, lacConfiguration, uniqueLicensesInfoForLicenseProperty, licenseTypes, users |
| Manage | addRule, addRules, updateRule, restoreRuleNewConfigStatus, deployRules, addRulesAndScheduleDeploymentFromServiceNow, approveAssetPending, denyPendingAsset, restoreDeniedAssetsToPending, deployAsset, deployAssetManage, updateLACAssetManageAutoDeployConfig, deleteManagedLacAssetDraft, revertManagedLacAssetFromHistory, createPolicy, clonePolicy, updatePolicy, deployPolicy, enableDisablePolicies |
| Admin | deleteRules, deleteAsset, deletePolicies, updateLacConfiguration |
deployRules and addRulesAndScheduleDeploymentFromServiceNow return a handle. To find out how the deployment ended, pass it to deploymentStatus. For what each change does in License Access Control, see License Access Control.
SAM entitlement records
To page through your SAM entitlement records, with their prices, use the entitlementRecordsPage query. It needs the Read level.
CSV exports
To download a report as a CSV file, send a POST to /reporting/{report}. Set {report} to one of GetLicenseUsageCSV, GetLicenseDenialsCSV, GetSessionDetailsCSV, GetTouchpointDetailsCSV, GetDongleMonitoringCSV, or GetProjectDataCSV.
The request body is the same as for the Reporting Data API, described in CSV exports. The response is the CSV file. Exports need the Read level and accept only POST. An unknown report name is answered with 404 and the code UNKNOWN_ENDPOINT.
License server inventory
To read every license server that License Access Control manages, with its license details, one page at a time, send a GET to /lacAssets. This endpoint is built for the ServiceNow integration and needs the Read level. The following table lists its parameters:
| Parameter | What it does |
|---|---|
limit | Number of license servers per page, from 1 to 1,000. The default is 200. A value outside that range is brought within it. |
cursor | The data.next_cursor value of the previous page. Leave it out for the first page. |
The response has the fields data, succeeded, errors, and message. data holds assets, next_cursor, total_count, and license_server_count. Check succeeded as well as the HTTP status, because a failure can come back inside the response.
ServiceNow CMDB feeds
The ServiceNow CMDB integration reads your computers, servers, applications, and software from four feeds. To read a feed, send a GET to /cmdb/{feed}, with {feed} set to computers, servers, applications, or software. The feeds need the Read level. The following table lists their parameters:
| Parameter | What it does |
|---|---|
limit | Number of records per page, from 1 to 10,000. The default is 1,000. |
cursor | The meta.page.next_cursor value of the previous page. Leave it out for the first page, and don't build or change a cursor. |
since | Return only the records worth reading again. Pass the high_water_mark of the last complete read, and keep the same value for every page of a read. Use ISO 8601 or epoch milliseconds. |
An unknown feed is answered with 404 and the code UNKNOWN_FEED.
Brokers
To manage the Brokers of your account from an integration, use the Broker Hub endpoints. The following table lists them:
| Task | Request | Access level |
|---|---|---|
| List Brokers | GET /brokerhub/brokers | Read |
| Approve Brokers | PATCH /brokerhub/brokers | Admin |
| Remove Brokers | DELETE /brokerhub/brokers | Admin |
| Read the host and port of a Broker | GET /brokerhub/brokers/hostport?brokerid=<broker-id> | Read |
The list holds both pending and approved Brokers. Each Broker has an ApprovalStatus of New (waiting for approval) or Approved. To approve or remove Brokers, send their host names and Broker IDs in the body:
{
"BrokerIds": [
{ "Hostname": "lic-server-01", "Brokerid": "<broker-id>" }
]
}
Any other path under /brokerhub is answered with 404 and the code UNKNOWN_ROUTE. For what approving and removing a Broker does, see Broker Hub.
OpenLM MCP Connector
To connect an MCP client that authenticates with a General API client instead of a user sign-in, point it at {BASE_URL}/api/externalapigateway/mcp and send the token in the Authorization header. The client needs the Read level. MCP clients that sign in as a user connect as described in Connect an AI client to the OpenLM MCP Connector.
Limits
The gateway applies the limits in the following table:
| Limit | Value | When you go over it |
|---|---|---|
| Requests per client | 3,000 per minute | 429 with the code RATE_LIMITED and a Retry-After header. |
| Size of a GraphQL request body | 1 MB (1,048,576 bytes) | 413 with the code REQUEST_TOO_LARGE. |
| Size of any other request body | 10 MB (10,485,760 bytes) | 413 with the code REQUEST_TOO_LARGE. |
| Records per page, Reporting Data API queries | 250 | A GraphQL error. |
License servers per page, /lacAssets | 1,000 | The gateway uses 1,000. |
| Records per page, CMDB feeds | 10,000 | The feed refuses the request. |
Reporting requests running at the same time, for CSV exports and /lacAssets | Shared by all callers | 503 with the code UPSTREAM_BUSY and a Retry-After header. |
Errors
The gateway passes on the status and body that each service returns, except in the cases in this section. When the gateway itself refuses or fails a request, a REST endpoint answers with this body:
{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Retry after the interval given in the Retry-After header.",
"request_id": "0HN8Q3V7K2L1M:00000004"
}
}
On /graphql, a service that can't be reached or doesn't answer in time comes back as a GraphQL error with the same status. A 401 has no body, and a 403 about the access level or the operation name has a plain-text message. Keep the request_id when you report a problem to OpenLM Support.
The following table lists the errors the gateway returns itself:
| Status | Code | What it means | What to do |
|---|---|---|---|
400 | None | A GraphQL request that spans several services can't be divided: it has a mutation, two parts return the same response key, or a fragment with directives covers fields of several services. | Follow the message: send the mutation on its own, add aliases, or select the root fields directly. |
401 | None | The token is missing, expired, or not from a GeneralApiClient client. | Request a new token. |
403 | None | The client's access level is too low, the operation isn't offered, or the GraphQL body can't be read. | Read the message. Use a client with a higher level, or check the operation name and the body. |
403 | TENANT_REQUIRED | A Broker Hub request came with a token that names no account. | Request the token with a GeneralApiClient client. |
404 | UNKNOWN_ENDPOINT, UNKNOWN_FEED, UNKNOWN_ROUTE | The REST path isn't offered. | Check the path in this reference. |
405 | None | The method isn't allowed on this path. The Allow header lists the methods that are. | Use one of the allowed methods. |
413 | REQUEST_TOO_LARGE | The request body is over the size limit. | Send a smaller request. |
429 | RATE_LIMITED | The client went over its request limit. | Wait for the number of seconds in Retry-After, then retry. |
502 | UPSTREAM_UNAVAILABLE | The service behind the gateway can't be reached. | Retry later. |
502 | UPSTREAM_AUTH_FAILED, UPSTREAM_AUTH_UNAVAILABLE | The gateway couldn't sign in to the service. Your credentials aren't the cause. | Retry later. If it continues, contact OpenLM Support with the request_id. |
503 | UPSTREAM_BUSY | Too many reporting requests are running at the same time. | Wait for the number of seconds in Retry-After, then retry. |
503 | INTEGRATION_DISABLED | The service is switched off. | Contact OpenLM Support. |
504 | UPSTREAM_TIMEOUT | The service didn't answer in time. | Retry later. |
Related pages
For more information, see these pages:
- Connect to the OpenLM External API Gateway: create a client, request a token, and send your first request.
- Query the Reporting Data API: the report queries, their arguments, and CSV export bodies.
- Reporting Data API field reference: the fields each report query returns.
The documentation team might draft this page using a large language model. A technical writer reviews every page and verifies it against the product before publishing it. A human makes the final decision.