Skip to main content

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:

EndpointMethodAccess levelUse it to
/graphqlPOSTSet by each operationRun GraphQL operations on License Access Control, the Reporting Data API, AI Reporting insights, and SAM entitlement records.
/insights/{endpoint}GETReadRead AI Reporting insights as REST.
/reporting/{report}POSTReadDownload a report as a CSV file.
/lacAssetsGETReadRead the license server inventory for ServiceNow.
/cmdb/{feed}GETReadRead the ServiceNow CMDB feeds.
/brokerhub/brokersGET, PATCH, DELETERead for GET, Admin for PATCH and DELETEList, approve, and remove Brokers.
/brokerhub/brokers/hostportGETReadRead the host and port of a Broker.
/mcpPOST, GET, DELETEReadConnect an MCP client to the OpenLM MCP Connector with client credentials.
/healthGETNo token neededCheck 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 queryWhat it answersParameters
forecast/license-availability
forecastLicenseAvailability
How likely a seat of a product is to be free now, or horizon_minutes from now.product (required), horizon_minutes (default 0)
denials/analysis
analyzeDenials
Whether the denial rate of a product is unusually high.product (required), window_days
license-count/recommendation
recommendLicenseCount
How many seats to own to meet a target service level.product (required), target_sla_percent
usage/summary
getUsageSummary
A usage health summary of a product over a recent period.product (required), window_days
seats/availability
licenseSeatAvailability
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-trend
concurrentUsageTrend
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-availability
namedUserSeatAvailability
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/summary
getUtilizationSummary
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/profile
getConcurrencyProfile
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/idle
getIdleLicenses
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/efficiency
getSessionEfficiency
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/summary
getAllocationSummary
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-group
getUsageByGroup
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/inventory
getLicenseInventory
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/simulate
getSimulatePoolChange
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/forecast
getForecastDemand
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/recommendations
getOptimizationRecommendations
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 levelOperations
ReadlacAssetsReadManageOverview, 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
ManageaddRule, addRules, updateRule, restoreRuleNewConfigStatus, deployRules, addRulesAndScheduleDeploymentFromServiceNow, approveAssetPending, denyPendingAsset, restoreDeniedAssetsToPending, deployAsset, deployAssetManage, updateLACAssetManageAutoDeployConfig, deleteManagedLacAssetDraft, revertManagedLacAssetFromHistory, createPolicy, clonePolicy, updatePolicy, deployPolicy, enableDisablePolicies
AdmindeleteRules, 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:

ParameterWhat it does
limitNumber of license servers per page, from 1 to 1,000. The default is 200. A value outside that range is brought within it.
cursorThe 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:

ParameterWhat it does
limitNumber of records per page, from 1 to 10,000. The default is 1,000.
cursorThe meta.page.next_cursor value of the previous page. Leave it out for the first page, and don't build or change a cursor.
sinceReturn 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:

TaskRequestAccess level
List BrokersGET /brokerhub/brokersRead
Approve BrokersPATCH /brokerhub/brokersAdmin
Remove BrokersDELETE /brokerhub/brokersAdmin
Read the host and port of a BrokerGET /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:

LimitValueWhen you go over it
Requests per client3,000 per minute429 with the code RATE_LIMITED and a Retry-After header.
Size of a GraphQL request body1 MB (1,048,576 bytes)413 with the code REQUEST_TOO_LARGE.
Size of any other request body10 MB (10,485,760 bytes)413 with the code REQUEST_TOO_LARGE.
Records per page, Reporting Data API queries250A GraphQL error.
License servers per page, /lacAssets1,000The gateway uses 1,000.
Records per page, CMDB feeds10,000The feed refuses the request.
Reporting requests running at the same time, for CSV exports and /lacAssetsShared by all callers503 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:

StatusCodeWhat it meansWhat to do
400NoneA 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.
401NoneThe token is missing, expired, or not from a GeneralApiClient client.Request a new token.
403NoneThe 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.
403TENANT_REQUIREDA Broker Hub request came with a token that names no account.Request the token with a GeneralApiClient client.
404UNKNOWN_ENDPOINT, UNKNOWN_FEED, UNKNOWN_ROUTEThe REST path isn't offered.Check the path in this reference.
405NoneThe method isn't allowed on this path. The Allow header lists the methods that are.Use one of the allowed methods.
413REQUEST_TOO_LARGEThe request body is over the size limit.Send a smaller request.
429RATE_LIMITEDThe client went over its request limit.Wait for the number of seconds in Retry-After, then retry.
502UPSTREAM_UNAVAILABLEThe service behind the gateway can't be reached.Retry later.
502UPSTREAM_AUTH_FAILED, UPSTREAM_AUTH_UNAVAILABLEThe 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.
503UPSTREAM_BUSYToo many reporting requests are running at the same time.Wait for the number of seconds in Retry-After, then retry.
503INTEGRATION_DISABLEDThe service is switched off.Contact OpenLM Support.
504UPSTREAM_TIMEOUTThe service didn't answer in time.Retry later.

For more information, see these pages:

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.