API reference
Discover API v2 Documentation
Base URL: https://api.moleant.com/v2/ — one REST route per operation, authenticated with a header. Every operation is also reachable through its v1 alias.
Updated: 2026-10-31
Conventions
Every v2 route follows the same pattern:
- Path:
/v2/<resource>/<id>/…. Organization-scoped resources sit under/v2/organizations/{CGuid}/; the ids in the path are the same values the responses return (CGuid,SystemID,ServerID,guid…). A trailing slash is optional. Paths are case-sensitive. - Method:
GETreads,POSTcreates,PUTorPATCHmodifies (the two are interchangeable: only the fields sent are changed),DELETEdeletes. A supported path with the wrong method answers405with the allowed methods insubmessage. - Parameters: a value can come from the path, from the JSON body or from the query string, in that order of precedence.
GETandDELETErequests take their remaining parameters in the query string; the writing methods take a JSON body (Content-Type: application/json). Query values are URL-decoded, soSearch=Hello%20Worldsearches forHello World. - Content type: responses are
application/json; charset=UTF-8, except the two file downloads. - CORS:
Access-Control-Allow-Origin: *on every response;OPTIONSpreflight requests are answered with204and the allowed methods and headers.
Request format
- Send values as JSON strings in a body and as text in a query string. Numbers are accepted wherever digits are expected (
"SystemID":"12"and"SystemID":12behave the same). - Flags are strings too. Where a field takes
"TRUE","true"/"false"or"1", a JSON boolean does not work. - List filters (
ServerID,SystemID,UserID,ComputerSoftware,issueNo,CVE) take a JSON array in a body, and in a query string either a repeated parameter (SystemID=1&SystemID=2, orSystemID[]=1&SystemID[]=2) or a single value. - Every value is validated against a format and a length range (see Value formats). A value that fails is treated as missing, which usually produces the operation's …missing or invalid failure.
- A body that is not valid JSON is treated as empty. Unknown fields are ignored; field names are case-sensitive.
Response formats
Successful reads return the payload directly, usually a JSON object keyed by the collection name ({"Systems":[...]}). Writes, and every failure, return a status message with one fixed shape. The payloads and the messages are the same as in v1, so a client that parsed v1 responses parses these.
| Shape | Used by | Example |
|---|---|---|
| Data object | Reads, on success. | {"Query":[...],"Systems":[...]} |
| Status message | All failures, and all writes. | {"message":"Success","subcode":"Successfully added the key.","submessage":"None"} |
| Status message with extra fields | Creates, on success: the id of the new record (SystemID, guid, Guid, AttributeGuid, CGuid, Key, RandomNo, ServerID, DeviceId and DeviceToken) is added to the message. Each operation says which. | {"message":"Success","subcode":"Successfully add the system.","submessage":"None","SystemID":12} |
| Agent verdict | The Active Directory engine operations: a Success status whose subcode is TRUE (proceed) or FALSE (don't), with the reason in submessage. | {"message":"Success","subcode":"FALSE","submessage":"You are not the designated update server."} |
| File | downloadkb and DownloadVex, on success. Their failures are status messages. | The file's bytes, with its content type and a Content-Disposition file name |
{ "message": "Success", "subcode": "Successfully modified data to the system.", "submessage": "None" }
{ "message": "Failure", "subcode": "User token invalid or empty.", "submessage": "None" }
| Attribute | Description | Example |
|---|---|---|
message | Always Success or Failure. Use it, together with the HTTP status code, to tell the outcome. | Failure |
subcode | What happened. This is the string to show or log. The tables below quote each operation's values verbatim, typos included. | User token invalid or empty. |
submessage | Additional detail when there is any, otherwise the literal string None. | None |
{"Computers":["No computer information was found."]}. Check the type of the first element before reading fields. The per-operation sections quote each placeholder.Value types
Identifiers, counters and sizes that the API itself computes or converts, such as ServerID, SystemID, ResultCount and byte counts, are JSON numbers, and the response tables say so. Every other value is passed through as it is stored. Text is always a string. A numeric column that the API does not convert may arrive as a number or as a numeric string, depending on the column type, so parse those defensively. A missing text value is the empty string "", never null, in every list and detail response.
- Ids (
ServerID,SystemID, log entry ids, entitlement ids and the like) are integers numbered across all organizations. They are unique and stable, but an organization's first asset is not id 1. Never guess an id or assume a sequence. - Timestamps are UTC.
whenCardCreatedis ISO 8601 with the offset written out,YYYY-MM-DDTHH:MM:SS+00:00;Updated,DateCreated,DateRebooted,LogDate/LogTimeandLastSyncHRareYYYY-MM-DD HH:MM:SSin UTC. Unix epochs (LastEpoch,NotAfter,NotBefore,Timestamp,LastUpdated,LastSync,ExpiryDate) are seconds since 1970-01-01 UTC, as always. - Text is returned as stored: plain UTF-8, without HTML entities. See Text encoding in responses below.
Status codes
| Code | Meaning |
|---|---|
200 | The operation ran. The body is the payload, an empty-result placeholder, a Success status message (including an agent verdict of FALSE), or a file. |
204 | An OPTIONS preflight request. |
400 | Validation failure, invalid credential, missing permission, or a database error. |
403 | A malformed engine credential, a device token used for another asset's ServerGuid, or a Stripe webhook call without a valid signature. Also an authorization refusal on the /v2/risk/ and /v2/account/ operations (since 2026-11-08): the token is valid, but its holder has no access to Moleant Risk, no role in the organization or plan the request names, or not the role the operation needs; the body is the usual Failure status message with the subcode of the operation's failure table, so a client can show "no access" without parsing the sentence. |
404 | No route matches the path: {"message":"Failure","subcode":"Unknown endpoint.","submessage":"None"}. Also CveDetails for a CVE that is not in the synchronised NVD data (CVE not found.). |
405 | The path exists but not with this method; submessage lists the allowed methods. |
429 | Rate limited — see Rate limiting. |
503 | The API could not reach its database. |
Common failures
These failures can come from almost every operation that takes the credential in question, so the per-operation tables leave them out.
subcode | Cause |
|---|---|
JSON request appears to be invalid. | The request carried neither a credential nor any parameter — typically an empty or malformed body on a v1 alias. |
User token invalid or empty. | The user token failed validation: it did not decrypt and authenticate under a key of the operation's branch, it has expired, its header is not the one described in User token format, or it is a legacy token the API no longer accepts. Also returned when an API key is sent to an operation that takes user tokens only. |
User objectID invalid or empty.Users email invalid or empty. | The user token validated but carried no usable identity. The SBOM and VEX operations spell these User's objectID invalid or empty. and User's email invalid or empty. |
Key token invalid or empty. | On the operations that also accept an API key: the key is unknown. |
The API key does not belong to this organization. | An API key was used on a route whose {CGuid} is another organization. |
A database error occurred while processing this request. | A database statement failed. |
Text encoding in responses
Text is stored and returned as plain UTF-8, exactly as it was sent: a description saved as Primary file server & DFS root comes back as Primary file server & DFS root, with the ampersand, quotes, angle brackets, backslashes and the Swedish letters å, ä and ö as themselves. Line breaks are the newline character. Nothing is HTML-entity encoded, so clients must escape text for their own output (HTML, CSV, a shell) and must not decode entities. The same applies to text reported by Moleant Engine. Fields that return a cut version of a text (DescriptionCut, SystemDescriptionCut, CustomerDetailsCut) cut the plain text.
&, (, <b>, <br> for line breaks) and returned them as such. Stored data was decoded in the migration; a client that still decodes entities will mangle a text that legitimately contains &.Value formats
The Notes column of each request table gives a field's format and maximum length, for example Text, max 255. Lengths are counted in bytes of the value as sent, before any cleaning.
| Format | Accepted | Behaviour |
|---|---|---|
| Alphanumeric | a–z, A–Z, 0–9 | Any other character rejects the value. Organization GUIDs (CGuid) use this format. |
| Hex | 0–9, a–f in either case | Any other character rejects the value. |
| GUID | Hex digits and hyphens | Any other character rejects the value. |
| Digits | 0–9 | Other characters are removed rather than rejected; a value with no digits becomes empty. |
| DNS name | Letters, digits, hyphen and dot | Any other character rejects the value. |
| A syntactically valid e-mail address | Anything else rejects the value. | |
| Date | Digits, space and : - , / T | Any other character rejects the value. |
| File name | Anything except / : * " < > | \ | Those characters reject the value. The extension must also be on the list of allowed upload types. |
| Base64 | A–Z, a–z, 0–9, + / = | Any other character rejects the value. The length limit applies to the Base64 text. |
| Text | Anything, but not empty | Stored as plain UTF-8, as sent (see Text encoding above). Control characters other than tab and newline are removed and line endings are normalised to a newline. An empty value counts as missing, even where the table says it is optional. Text reported by Moleant Engine is cut at the maximum length instead of being refused. |
| Plain text | Anything | The characters ' < > = ; are removed. |
| Tolerant text | Anything | The characters ' < > = are removed. |
| SamAccountName | Anything | The characters " [ ] : ; | = + * ? < > / \ , are removed. |
Multi-organization queries and paging
ListAssets, ListIssues, ListSoftware, ListSystemsForReport, ListUsers, ListVulnerabilitiesForReport and, optionally, ListSystems take an Organizations array instead of a single CGuid. Each element names one organization and may carry its own filters; the results of all organizations are concatenated, except in ListVulnerabilitiesForReport, which sorts them together.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Organizations[].OrgName | Yes | The organization's GUID (despite the name). | Alphanumeric, max 120. |
Organizations[].ServerID | No | Array of asset ids to restrict to. | Digits, max 10 each. |
Organizations[].SystemID | No | Array of system ids to restrict to. | Digits, max 10 each. |
Organizations[].UserID | No | Array of user ids of local or primary accounts, the UserID values ListUsers returns (the account's row id, as text). | Digits, max 10 each (Text, max 150, on ListSystemsForReport; Alphanumeric, max 50, on ListSystems). |
Organizations[].ComputerSoftware | No | Array of applications, each ApplicationName or ApplicationName-.-Version. | Text, max 1024 each. |
Organizations[].issueNo | No | Array of issue numbers. | Digits, max 4 each. |
Organizations[].CVE | No | Array of CVE ids. Restricts the list to what the organization's open findings of those CVEs touch: the affected assets, on ListSoftware the affected applications and not everything on those assets, and the systems, accounts and issues of the affected assets. A finding that has been reviewed or resolved does not count. | Letters, digits and hyphens, max 20 each. |
Organizations[].Search | No | Free-text search on the listed entity's name. | Text, max 120. |
You have selected too many <organizations|users|systems|servers|applications|issues|vulnerabilities|total items> for this query. Skip and Count page the result (both are needed, 0–1000000). Query[].TotalCount reports the unpaged total; the endpoints that document CreateTotalCount only compute it when that field is "1" and otherwise report -1.GET /v2/organizations/{CGuid}/… forms of these reports query one organization: the same filters are query parameters, and paging uses Skip and Count.Rate limiting (HTTP 429)
Every request passes through the same per-IP throttle as the v1 aliases before any endpoint logic runs: 120 requests per 60-second window, then a 300-second block. While blocked, every request returns HTTP 429 with a Retry-After header and the status message {"message":"Failure","subcode":"Too many requests. Please try again later.","submessage":"None"}. Agents behind one NAT share a single budget.
Authentication
The credential travels in a request header. Each operation says which credentials it accepts.
| Credential | Header | Used by | Validated as |
|---|---|---|---|
| User token | Authorization: Bearer <token> | The web app: most operations. | An encrypted JWT (JWE) made with the Discover key; see User token format. It identifies the user; per-organization permissions are then checked against the permission levels. |
| Account token | Authorization: Bearer <token> | The account operations. | The same format, made with the separate Account key. Each branch refuses the other's tokens. |
| API key | X-Api-Key: <key> (or Authorization: Bearer <key>) | Integrations: the operations marked User token or API key. | An organization key from API keys, 16 to 64 hexadecimal characters. The key decides the organization: it grants Read and Write on that organization only, and a route whose {CGuid} is another organization is refused. The API stores only a hash of the key: AddKey shows a generated key once, and the listings show its first 8 characters followed by .... |
| Engine token | Authorization: Bearer <token> | Moleant Engine: Enroll, createserver and the Active Directory update operations. | A device token issued by Enroll for one asset, or the organization's enrollment token (orgid in ListOrganizationDetails); see Engine credentials. Both are 24–64 hex characters. A malformed value is HTTP 403, an unknown or revoked one HTTP 400. |
| Stripe signature | Stripe-Signature | AcceptOrder. | Stripe's webhook signature for the endpoint's signing secret. |
The credential may also be sent as a query parameter (Key, jwt or token), which is how the previous v2 and its key routes work, and the v1 aliases take it as a body field (jwt or token). A header is preferred: query strings end up in server logs.
A user token and an API key are told apart by shape: a value of more than 120 characters, or one containing a dot, is a user token; anything else is an API key.
Engine credentials
Moleant Engine authenticates with one of two credentials, both presented the same way (Authorization: Bearer, or the token body field on a v1 alias):
- Enrollment token. One per organization: the value ListOrganizationDetails returns as
orgid(the Organization ID an engine is installed with). It enrolls devices through Enroll. While the organization still allows it, it is also accepted directly by createserver and the Active Directory update operations, so engines deployed before enrollment existed keep reporting; once the organization's engines are enrolled, Moleant turns that off per organization and the enrollment token can only enroll. - Device token. Issued by Enroll for one asset, identified by its
ServerGuid, and returned once: 48 hexadecimal characters, stored as a hash. It is the credential the engine reports with. A device token presented with another asset'sServerGuidis refused with HTTP 403 (Invalid token.with the submessageThe device token belongs to another asset., or the verdictFALSEwith that submessage on the Active Directory operations).
Rotation and revocation. Enrolling a ServerGuid again revokes every earlier token of that asset: a reinstalled engine takes over cleanly, and a lost or leaked token dies with the next enrollment. A device token can re-enroll (rotate) its own ServerGuid and no other. A revoked token answers Invalid token. at HTTP 400. Treat both credentials as secrets: the enrollment token is returned only to users with Write on the organization.
User token format
The field is called jwt, but its value is an encrypted JWT: a JWE (RFC 7516) in compact serialization, five base64url parts separated by dots, the second one empty. The protected header is always {"alg":"dir","enc":"A256GCM","kid":"<key id>","typ":"JWT"}: the claims are encrypted and authenticated with AES-256-GCM under a 256-bit key that only the API and the Moleant frontend issuing the token hold. A client can't read a token or make one, and a token with any part changed, header included, is refused. So is a token with any other alg or enc, a kid the API doesn't know, or any other header field (zip, crit, jku…).
| Claim | Mandatory? | Description |
|---|---|---|
iat | Yes | Issue time in Unix seconds, as an integer. Refused if it is more than 60 seconds in the future. |
exp | Yes | Expiry time in Unix seconds, as an integer. Refused from 60 seconds after exp, and whenever exp − iat exceeds 900 seconds. The web app's tokens last 600 seconds, and it fetches a new one for every call. |
data.id | Yes | The user's object id in Moleant's Entra ID tenant. A token without one is refused. |
data.email | No | The user's sign-in name. |
data.creationemail | No | The e-mail address the account was created with, when the web app knows it. |
data.service, data.intentlock | No | Purpose lock. Ignored unless the endpoint requires one: CreateAccount requires CreateAccount and CREATE. |
Only Moleant's own frontends hold the keys, so a third party can't obtain a user token. Integrations use an organization API key instead.
data (id, email, creationemail, timestamp, nonce, and for CreateAccount service and intentlock), each claim except nonce ending with the marker bm9uY2U= and the nonce. Anyone holding a legacy token can read its claims. Legacy tokens are refused once the move is complete.Permission levels
A user's rights in an organization are a string of flags in the roles table, one character per position. The Permission column of each group's endpoint table refers to these levels.
| Level | Flag position | Grants | Set with |
|---|---|---|---|
| Read | 1 | Viewing the organization's data. | ModifyPermission Read |
| Write | 2 | Adding, changing and deleting the organization's data. | Write |
| Account admin | 3 | Managing the organization's users and their permissions. | Admin |
| Read password / Write password | 4 / 5 | Stored and editable, but not checked by any endpoint. | ReadPassword / WritePassword |
| Organization admin | 9 | Accepted by ModifyPermission in place of Account admin. | Not settable through the API. |
Two further roles belong to a plan (a subscription that owns organizations), not to an organization: the Discover admin owns the plan, and co-admins help run it. Creating and deleting organizations and managing co-admins require one of them; the endpoints say so. A newly invited user starts with Read only.
From v1, and from the previous v2
This version replaces the internal v1 endpoints (POST /discover/<Operation>/ with a JSON body) and the previous key-authenticated v2 with one set of REST routes. Nothing in the data changed: request field names, validation, payloads, empty-result placeholders and status messages are the same as before, so the per-operation documentation is shared.
- Every v1 operation is still available at its old path as an alias of the v2 route, with the credential in the body as before. The v1 reference stays valid for those callers, and each of its sections links to the v2 route.
- Removed:
discover/AddUser,account/CreateOrder,account/FinishOrder,account/FinishOrderKlarnaandaccount/ReceivePush, which did not work in any version. - The previous v2 routes (
/v2/assets/,/v2/systems/… with?Key=) keep working unchanged; see Key routes kept from the previous v2. Their query values are now URL-decoded, which they were not before. - New in this version: creates return the new record's id;
PATCHis accepted whereverPUTis; unknown routes and wrong methods answer 404 and 405 as JSON; and the behaviour changes listed under Changes in this version in the affected operations, most of them tightening what a credential may reach.
Schema version 1 (October 2026)
In October 2026 the database behind the API moved from one set of tables per organization to one shared schema. Routes, request fields, response shapes and failure subcodes are unchanged except for the points below; each affected operation also carries them in its Changes in this version note.
- Text is plain. Text values are returned as stored, in plain UTF-8, without HTML entities; clients escape for their own output. Cut fields (
DescriptionCut,SystemDescriptionCut,CustomerDetailsCut) cut the plain text, so the visible cut point moves a little. See Conventions. - Ids are global.
ServerID,SystemID, log ids, entitlement ids and so on are integers numbered across organizations: still unique and stable, but an organization's first asset is no longer id 1. - Timestamps are UTC.
whenCardCreatedisYYYY-MM-DDTHH:MM:SS+00:00;Updated,DateCreated,DateRebooted,LogDate/LogTimeandLastSyncHRare UTC. Unix epochs keep their meaning. - A missing text value is
"", nevernull, in every list and detail response (PrincipalName,servicePrincipalName,OperatingSystemHotfix,Notes,CreationEmailand the like). The old API returned a mix. - API keys are stored hashed. AddKey returns a generated key once; ListKeys and the key lists of ListAccounts show the first 8 characters followed by
...; DeleteKey accepts the full key or those 8 characters. A generated key is 48 hexadecimal characters. UserIDof a local or primary user in ListUsers, and in theUserIDfilter of ListComputers, ListSystems, ListAssets, ListSoftware, ListIssues and ListUsers, is the integer row id of the local account, returned as text ("7"). It used to be the user name followed by the asset'sServerGuid. Active Directory users keepSamAccountName:domain.- ListSystemLicenseTypes returns a reference list of seven licence types; production had none before.
- Installed software is a history. An application is listed while the engine keeps reporting it; one that disappears from the reports is kept with a removal time and left out of ListServerDetails, ListSoftware, the
ComputerSoftwarefilters and entitlement install counts. Nothing changes in the responses. - Device enrollment for Moleant Engine. The new Enroll operation issues a device token per asset; createserver and the
/v2/engine/ad/*operations accept it, and keep accepting the organization's enrollment token while the organization allows it. See Engine credentials. - Report contract 2. createserver accepts a second, richer report body (
ContractVersion: 2) with the engine's identity, structured OS and hardware fields, software provenance and free-form facts; a section that is absent is left as it was and an empty list clears it. Contract 1 bodies are accepted unchanged.createservernow returnsServerID. - Long inventory values are cut, not dropped. A reported
Versionlonger than its column used to be stored as""or to fail the report; the columns are wider (Version120,Publisher255,Path512) and anything longer is truncated. - Tightened checks where the old API wrote an orphan row or failed with a database error: UploadSBOM, UploadVEX, AddSystemKBs and uploadkb refuse a system or asset that is not the organization's; AddSystemLicense checks that the system exists; ModifyRACITask refuses another organization's system; ModifyAttributeValue refuses an
OrgIDthat is not the request's organization; ModifyLogEntry refuses an unparsable date and time; ModifyServerDetails refuses an unknownAssetState; DeleteServer with an API key of another organization is refused; ListServerDetails no longer answersServer details does not exist. - Software vulnerabilities. Eight new operations under Software vulnerabilities list the CVEs matched to an organization's installed software, take the review of a finding, show the CVE record, and show and override how software is resolved to CPE names. They have no v1 alias.
- Departments and teams in RACI roles.
R,A,CandIof AddRACITask and ModifyRACITask take theGuidof a department or team as well as of a person or a vendor, and ListRACITasks and ListOrganizationRACI return it. DeleteDepartment empties the roles that name the department. ModifyRACITask now checks every role it is sent, as AddRACITask does, and AddRACITask now requires at least one role, as ModifyRACITask does. - Nothing was removed from the API surface. The legacy
jwt/tokenbody credential and the?Key=query credential are unchanged.
The table maps every operation to its route. Operations are documented in the sections that follow, under their operation name, which is also the section id (so #ListSystemDetails links work on both references).
| Operation (v1 alias) | v2 route | Credential |
|---|---|---|
SecBuildTicketPOST /discover/SecBuildTicket/ | GET /v2/me | User token |
ListAccountsPOST /discover/ListAccounts/ | GET /v2/accounts | User token |
ListCoAdminsPOST /discover/ListCoAdmins/ | GET /v2/coadmins | User token |
AddCoAdminPOST /discover/AddCoAdmin/ | POST /v2/coadmins | User token |
DeleteCoAdminPOST /discover/DeleteCoAdmin/ | DELETE /v2/coadmins/{Subject} | User token |
ListOrganizationsPOST /discover/ListOrganizations/ | GET /v2/organizations | User token |
AddOrganizationPOST /discover/AddOrganization/ | POST /v2/organizations | User token |
ListOrganizationDetailsPOST /discover/ListOrganizationDetails/ | GET /v2/organizations/{CGuid} | User token or API key |
ModifyOrganizationDetailsPOST /discover/ModifyOrganizationDetails/ | PUT PATCH /v2/organizations/{CGuid} | User token |
DeleteOrganizationPOST /discover/DeleteOrganization/ | DELETE /v2/organizations/{CGuid} | User token |
ListMasterLogEntriesPOST /discover/ListMasterLogEntries/ | GET /v2/masterlogGET /v2/organizations/{CGuid}/masterlog | User token or API key |
ListKeysPOST /discover/ListKeys/ | GET /v2/organizations/{CGuid}/keys | User token |
AddKeyPOST /discover/AddKey/ | POST /v2/organizations/{CGuid}/keys | User token |
DeleteKeyPOST /discover/DeleteKey/ | DELETE /v2/organizations/{CGuid}/keys/{Key} | User token |
InviteUserPOST /discover/InviteUser/ | POST /v2/organizations/{CGuid}/users | User token |
DeleteUserPOST /discover/DeleteUser/ | DELETE /v2/organizations/{CGuid}/users/{Email} | User token |
ModifyPermissionPOST /discover/ModifyPermission/ | PUT PATCH /v2/organizations/{CGuid}/roles/{UserID} | User token |
ListAddressBookPOST /discover/ListAddressBook/ | GET /v2/organizations/{CGuid}/addressbook | User token or API key |
AddAddressBookEntryPOST /discover/AddAddressBookEntry/ | POST /v2/organizations/{CGuid}/addressbook | User token |
ModifyAddressBookEntryPOST /discover/ModifyAddressBookEntry/ | PUT PATCH /v2/organizations/{CGuid}/addressbook/{Guid} | User token |
DeleteAddressBookEntryPOST /discover/DeleteAddressBookEntry/ | DELETE /v2/organizations/{CGuid}/addressbook/{Guid} | User token |
| ListDepartments No v1 alias | GET /v2/organizations/{CGuid}/departments | User token or API key |
| AddDepartment No v1 alias | POST /v2/organizations/{CGuid}/departments | User token |
| ModifyDepartment No v1 alias | PUT PATCH /v2/organizations/{CGuid}/departments/{Guid} | User token |
| DeleteDepartment No v1 alias | DELETE /v2/organizations/{CGuid}/departments/{Guid} | User token |
| ListVendors No v1 alias | GET /v2/organizations/{CGuid}/vendors | User token or API key |
| AddVendor No v1 alias | POST /v2/organizations/{CGuid}/vendors | User token |
| ModifyVendor No v1 alias | PUT PATCH /v2/organizations/{CGuid}/vendors/{Guid} | User token |
| DeleteVendor No v1 alias | DELETE /v2/organizations/{CGuid}/vendors/{Guid} | User token |
ListAttributesPOST /discover/ListAttributes/ | GET /v2/organizations/{CGuid}/attributes | User token |
AddAttributePOST /discover/AddAttribute/ | POST /v2/organizations/{CGuid}/attributes | User token |
ModifyAttributePOST /discover/ModifyAttribute/ | PUT PATCH /v2/organizations/{CGuid}/attributes/{AttributeGuid} | User token |
DeleteAttributePOST /discover/DeleteAttribute/ | DELETE /v2/organizations/{CGuid}/attributes/{AttributeGuid} | User token |
ModifyAttributeValuePOST /discover/ModifyAttributeValue/ | PUT PATCH /v2/organizations/{CGuid}/attributes/{AttributeGuid}/value | User token |
ListLogEntriesPOST /discover/ListLogEntries/ | GET /v2/organizations/{CGuid}/logsGET /v2/organizations/{CGuid}/systems/{SystemID}/logsGET /v2/organizations/{CGuid}/assets/{ServerID}/logs | User token or API key |
AddLogEntryPOST /discover/AddLogEntry/ | POST /v2/organizations/{CGuid}/logsPOST /v2/organizations/{CGuid}/systems/{SystemID}/logsPOST /v2/organizations/{CGuid}/assets/{ServerID}/logs | User token |
ModifyLogEntryPOST /discover/ModifyLogEntry/ | PUT PATCH /v2/organizations/{CGuid}/logs/{guid} | User token |
DeleteLogEntryPOST /discover/DeleteLogEntry/ | DELETE /v2/organizations/{CGuid}/logs/{guid} | User token |
ListSystemLogTypesPOST /discover/ListSystemLogTypes/ | GET /v2/logtypes | User token or API key |
ListSystemsPOST /discover/ListSystems/ | GET /v2/organizations/{CGuid}/systemsPOST /v2/systems/search | User token |
ListSystemsForReportPOST /discover/ListSystemsForReport/ | POST /v2/reports/systems | User token |
ListSystemDetailsPOST /discover/ListSystemDetails/ | GET /v2/organizations/{CGuid}/systems/{SystemID} | User token or API key |
AddSystemPOST /discover/AddSystem/ | POST /v2/organizations/{CGuid}/systems | User token |
ModifySystemDetailsPOST /discover/ModifySystemDetails/ | PUT PATCH /v2/organizations/{CGuid}/systems/{SystemID} | User token |
DeleteSystemPOST /discover/DeleteSystem/ | DELETE /v2/organizations/{CGuid}/systems/{SystemID} | User token |
ListServersInSystemPOST /discover/ListServersInSystem/ | GET /v2/organizations/{CGuid}/systems/{SystemID}/assets | User token or API key |
AddServerToSystemPOST /discover/AddServerToSystem/ | PUT /v2/organizations/{CGuid}/systems/{SystemID}/assets/{ServerID} | User token |
RemoveServerFromSystemPOST /discover/RemoveServerFromSystem/ | DELETE /v2/organizations/{CGuid}/systems/{SystemID}/assets/{ServerID} | User token |
ListSystemsForServerPOST /discover/ListSystemsForServer/ | GET /v2/organizations/{CGuid}/assets/{ServerID}/systems | User token or API key |
AddSystemToServerPOST /discover/AddSystemToServer/ | PUT /v2/organizations/{CGuid}/assets/{ServerID}/systems/{SystemID} | User token |
RemoveSystemFromServerPOST /discover/RemoveSystemFromServer/ | DELETE /v2/organizations/{CGuid}/assets/{ServerID}/systems/{SystemID} | User token |
ListSystemLicenseTypesPOST /discover/ListSystemLicenseTypes/ | GET /v2/licensetypes | User token or API key |
ListSystemLicensesPOST /discover/ListSystemLicenses/ | GET /v2/organizations/{CGuid}/systems/{SystemID}/licenses | User token or API key |
AddSystemLicensePOST /discover/AddSystemLicense/ | POST /v2/organizations/{CGuid}/systems/{SystemID}/licenses | User token |
ModifySystemLicensePOST /discover/ModifySystemLicense/ | PUT PATCH /v2/organizations/{CGuid}/systems/{SystemID}/licenses/{guid} | User token |
DeleteSystemLicensePOST /discover/DeleteSystemLicense/ | DELETE /v2/organizations/{CGuid}/systems/{SystemID}/licenses/{guid} | User token |
| ListOrganizationRACI No v1 alias | GET /v2/organizations/{CGuid}/raci | User token or API key |
ListRACITasksPOST /discover/ListRACITasks/ | GET /v2/organizations/{CGuid}/systems/{SystemID}/raci | User token or API key |
AddRACITaskPOST /discover/AddRACITask/ | POST /v2/organizations/{CGuid}/systems/{SystemID}/raci | User token |
ModifyRACITaskPOST /discover/ModifyRACITask/ | PUT PATCH /v2/organizations/{CGuid}/systems/{SystemID}/raci/{guid} | User token |
DeleteRACITaskPOST /discover/DeleteRACITask/ | DELETE /v2/organizations/{CGuid}/systems/{SystemID}/raci/{guid} | User token |
ListComputersPOST /discover/ListComputers/ | GET /v2/organizations/{CGuid}/assets | User token or API key |
ListServerDetailsPOST /discover/ListServerDetails/ | GET /v2/organizations/{CGuid}/assets/{ServerID} | User token or API key |
| AllServerDetails — | GET /v2/organizations/{CGuid}/assetdetails | User token or API key |
ModifyServerDetailsPOST /discover/ModifyServerDetails/ | PUT PATCH /v2/organizations/{CGuid}/assets/{ServerID} | User token or API key |
DeleteServerPOST /discover/DeleteServer/ | DELETE /v2/organizations/{CGuid}/assets/{ServerID} | User token or API key |
ListOrganizationKBsPOST /discover/ListOrganizationKBs/ | GET /v2/organizations/{CGuid}/kbs | User token or API key |
AddOrganizationKBsPOST /discover/AddOrganizationKBs/ | POST /v2/organizations/{CGuid}/kbs | User token |
ModifyOrganizationKBsPOST /discover/ModifyOrganizationKBs/ | PUT PATCH /v2/organizations/{CGuid}/kbs/{guid} | User token |
DeleteOrganizationKBsPOST /discover/DeleteOrganizationKBs/ | DELETE /v2/organizations/{CGuid}/kbs/{guid} | User token |
ListSystemKBsPOST /discover/ListSystemKBs/ | GET /v2/organizations/{CGuid}/systems/{SystemID}/kbs | User token or API key |
AddSystemKBsPOST /discover/AddSystemKBs/ | POST /v2/organizations/{CGuid}/systems/{SystemID}/kbs | User token |
ModifySystemKBsPOST /discover/ModifySystemKBs/ | PUT PATCH /v2/organizations/{CGuid}/systems/{SystemID}/kbs/{guid} | User token |
DeleteSystemKBsPOST /discover/DeleteSystemKBs/ | DELETE /v2/organizations/{CGuid}/systems/{SystemID}/kbs/{guid} | User token |
listkbsPOST /discover/listkbs/ | GET /v2/organizations/{CGuid}/assets/{ServerID}/kbs | User token or API key |
uploadkbPOST /discover/uploadkb/ | POST /v2/organizations/{CGuid}/assets/{ServerID}/kbs | User token |
ModifyServerKBsPOST /discover/ModifyServerKBs/ | PUT PATCH /v2/organizations/{CGuid}/assets/{ServerID}/kbs/{guid} | User token |
DeleteServerKBsPOST /discover/DeleteServerKBs/ | DELETE /v2/organizations/{CGuid}/assets/{ServerID}/kbs/{guid} | User token |
downloadkbPOST /discover/downloadkb/ | GET /v2/organizations/{CGuid}/files/{RandomNo} | User token or API key |
PopulateKBCarouselPOST /discover/PopulateKBCarousel/ | GET /v2/organizations/{CGuid}/kbs/imagesGET /v2/organizations/{CGuid}/systems/{SystemID}/kbs/imagesGET /v2/organizations/{CGuid}/assets/{ServerID}/kbs/images | User token or API key |
ListAssetsPOST /discover/ListAssets/ | POST /v2/reports/assets | User token or API key |
ListSoftwarePOST /discover/ListSoftware/ | GET /v2/organizations/{CGuid}/softwarePOST /v2/reports/software | User token or API key |
ListIssuesPOST /discover/ListIssues/ | GET /v2/organizations/{CGuid}/issuesPOST /v2/reports/issues | User token or API key |
ListUsersPOST /discover/ListUsers/ | GET /v2/organizations/{CGuid}/usersPOST /v2/reports/users | User token or API key |
| ListVulnerabilitiesForReport No v1 alias | POST /v2/reports/vulnerabilities | User token or API key |
ListSbomPOST /discover/ListSbom/ | GET /v2/organizations/{CGuid}/systems/{SystemID}/sbom | User token or API key |
UploadSBOMPOST /discover/UploadSBOM/ | PUT /v2/organizations/{CGuid}/systems/{SystemID}/sbom | User token |
ListVexPOST /discover/ListVex/ | GET /v2/organizations/{CGuid}/systems/{SystemID}/vex | User token or API key |
UploadVEXPOST /discover/UploadVEX/ | PUT /v2/organizations/{CGuid}/systems/{SystemID}/vex | User token |
ModifyVexPOST /discover/ModifyVex/ | PUT PATCH /v2/organizations/{CGuid}/systems/{SystemID}/vex/{id} | User token or API key |
DownloadVexPOST /discover/DownloadVex/ | GET /v2/organizations/{CGuid}/systems/{SystemID}/vex/download | User token or API key |
AddM365AppPOST /discover/AddM365App/ | POST /v2/organizations/{CGuid}/m365 | User token |
ListM365LicensesPOST /discover/ListM365Licenses/ | GET /v2/organizations/{CGuid}/systems/{SystemID}/m365 | User token |
Populatem365LicensesPOST /discover/Populatem365Licenses/ | POST /v2/organizations/{CGuid}/systems/{SystemID}/m365/sync | User token |
ListEntitlementsPOST /Entitlements/ListEntitlements/ | GET /v2/organizations/{CGuid}/entitlementsGET /v2/organizations/{CGuid}/systems/{SystemID}/entitlements | User token or API key |
AddEntitlementPOST /Entitlements/AddEntitlement/ | POST /v2/organizations/{CGuid}/entitlements | User token |
ModifyEntitlementPOST /Entitlements/ModifyEntitlement/ | PUT PATCH /v2/organizations/{CGuid}/entitlements/{Guid} | User token |
DeleteEntitlementPOST /Entitlements/DeleteEntitlement/ | DELETE /v2/organizations/{CGuid}/entitlements/{Guid} | User token |
| ListVulnerabilities No v1 alias | GET /v2/organizations/{CGuid}/vulnerabilitiesGET /v2/organizations/{CGuid}/assets/{ServerID}/vulnerabilities | User token or API key |
| VulnerabilitySummary No v1 alias | GET /v2/organizations/{CGuid}/vulnerabilities/summary | User token or API key |
| ModifyVulnerability No v1 alias | PUT PATCH /v2/organizations/{CGuid}/vulnerabilities/{VulnerabilityID} | User token or API key |
| CveDetails No v1 alias | GET /v2/cve/{CVE} | User token |
| ListSoftwareCpe No v1 alias | GET /v2/organizations/{CGuid}/software/cpe | User token or API key |
| ListSoftwareCpeOverrides No v1 alias | GET /v2/organizations/{CGuid}/software/cpe/overrides | User token or API key |
| SetSoftwareCpeOverride No v1 alias | PUT /v2/organizations/{CGuid}/software/cpe/overrides | User token or API key |
| DeleteSoftwareCpeOverride No v1 alias | DELETE /v2/organizations/{CGuid}/software/cpe/overrides/{OverrideID} | User token or API key |
ADListDomainDataPOST /discover/ADListDomainData/ | GET /v2/organizations/{CGuid}/ad/domains/{DomainObjectGUID} | User token |
ADSearchUserPOST /discover/ADSearchUser/ | GET /v2/organizations/{CGuid}/ad/users | User token |
ADCheckUpdateAllowedPOST /discover/ADCheckUpdateAllowed/ | POST /v2/engine/ad/check | Engine token |
ADUpdateForestDataPOST /discover/ADUpdateForestData/ | PUT /v2/engine/ad/forest | Engine token |
ADUpdateDomainDataPOST /discover/ADUpdateDomainData/ | PUT /v2/engine/ad/domain | Engine token |
ADUpdateDomainStatisticsPOST /discover/ADUpdateDomainStatistics/ | PUT /v2/engine/ad/statistics | Engine token |
ADUpdateDomainUserDataPOST /discover/ADUpdateDomainUserData/ | PUT /v2/engine/ad/users | Engine token |
ADUpdateDomainControllersPOST /discover/ADUpdateDomainControllers/ | PUT /v2/engine/ad/domaincontrollers | Engine token |
| Enroll No v1 alias | POST /v2/engine/enroll | Engine token |
createserverPOST /discover/createserver/ | POST /v2/engine/assets | Engine token |
CreateAccountPOST /account/CreateAccount/ | POST /v2/account/users | Account token |
OnBoardAccountPOST /account/OnBoardAccount/ | POST /v2/account/onboarding | Account token |
OffBoardAccountPOST /account/OffBoardAccount/ | POST /v2/account/offboarding | Account token |
AcceptOrderPOST /discover/AcceptOrder/ | POST /v2/webhooks/stripe | Stripe signature |
| ListRiskSession No v1 alias | GET /v2/risk/me | User token |
| ListRiskAccess No v1 alias | GET /v2/risk/access | User token |
| AddRiskAccess No v1 alias | POST /v2/risk/access | User token |
| ModifyRiskAccess No v1 alias | PUT PATCH /v2/risk/access/{Email} | User token |
| DeleteRiskAccess No v1 alias | DELETE /v2/risk/access/{Email} | User token |
| ResendRiskInvitation No v1 alias | POST /v2/risk/access/{Email}/invitation | User token |
| ListRiskModel No v1 alias | GET /v2/risk/model | User token |
| ModifyRiskModel No v1 alias | PUT PATCH /v2/risk/model | User token |
| DeleteRiskModel No v1 alias | DELETE /v2/risk/model | User token |
| ListRiskSubjects No v1 alias | GET /v2/risk/subjects | User token |
| AddRiskSubject No v1 alias | POST /v2/risk/organizations/{CGuid}/subjects | User token |
| ModifyRiskSubject No v1 alias | PUT PATCH /v2/risk/organizations/{CGuid}/subjects/{SubjectID} | User token |
| DeleteRiskSubject No v1 alias | DELETE /v2/risk/organizations/{CGuid}/subjects/{SubjectID} | User token |
| ListRiskTemplates No v1 alias | GET /v2/risk/templates | User token |
| ListRiskTemplateDetails No v1 alias | GET /v2/risk/templates/{Kind}/{TemplateKey} | User token |
| SaveRiskTemplateVersion No v1 alias | PUT /v2/risk/templates/{Kind}/{TemplateKey}/versions/{Number} | User token |
| ModifyRiskTemplateDistribution No v1 alias | PUT PATCH /v2/risk/templates/{Kind}/{TemplateKey}/versions/{Number}/distribution | User token |
| ListRiskAssessments No v1 alias | GET /v2/risk/assessments | User token |
| ListRiskAssessmentDetails No v1 alias | GET /v2/risk/organizations/{CGuid}/subjects/{SubjectID}/assessments/{TemplateKey}/{Version} | User token |
| SaveRiskAssessment No v1 alias | PUT PATCH /v2/risk/organizations/{CGuid}/subjects/{SubjectID}/assessments/{TemplateKey}/{Version} | User token |
| ModifyRiskAssessmentFinding No v1 alias | PUT PATCH /v2/risk/organizations/{CGuid}/assessments/{AssessmentID}/findings/{FindingKey} | User token |
| ListRiskFindings No v1 alias | GET /v2/risk/findings | User token |
| ModifyRiskFinding No v1 alias | PUT PATCH /v2/risk/organizations/{CGuid}/findings/{VulnerabilityID} | User token |
| VerifyRiskFinding No v1 alias | POST /v2/risk/organizations/{CGuid}/findings/{VulnerabilityID}/checks | User token |
| ListRiskTickets No v1 alias | GET /v2/risk/tickets | User token |
| AddRiskTicket No v1 alias | POST /v2/risk/organizations/{CGuid}/tickets | User token |
| ModifyRiskTicket No v1 alias | PUT PATCH /v2/risk/organizations/{CGuid}/tickets/{TicketID} | User token |
| ModifyRiskAssetProfile No v1 alias | PUT PATCH /v2/risk/organizations/{CGuid}/assets/{ServerID}/profile | User token |
| ListRiskAssetAssessments No v1 alias | GET /v2/risk/assetassessments | User token |
| SaveRiskAssetAssessment No v1 alias | PUT PATCH /v2/risk/organizations/{CGuid}/assets/{ServerID}/assessment | User token |
| ListRiskDashboard No v1 alias | GET /v2/risk/dashboard | User token |
Session and plan
Who the caller is, and the plan-level administration of co-admins.
SecBuildTicket
Returns the caller's organizations with their permission flags and plan roles. The web app calls it after sign-in. On a user's first sign-in after an invitation it also binds the account to the user's object id and grants Read.
v1 alias: POST https://api.moleant.com/discover/SecBuildTicket/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
No further parameters.
Example request
GET https://api.moleant.com/v2/me
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An object with a Roles array and a GlobalRoles object. The response carries no status, so the submessage the handler sets is not sent.
| Attribute | Description | Example |
|---|---|---|
Roles[].guid | Organization GUID. | 7a8b26724e508ade |
Roles[].roles | The caller's permission flags in it. | 11100000000000000000000000000000 |
Roles[].CustomerName | Organization name. | Contoso AB |
Roles[].Plan | The plan that owns the organization. | f17f35b5... |
Roles[].isDiscoverAdmin, Roles[].isCoAdmin | "1" or "0": whether the caller owns or co-administers a plan. Strings. | 1 |
Roles[].ADDomains | Array of the organization's AD domain names. | ["corp.example.com"] |
GlobalRoles.CreationEmail | E-mail the account was created with. | grace@contoso.com |
GlobalRoles.Email | Current e-mail. | grace@contoso.com |
GlobalRoles.isDiscoverAdmin, GlobalRoles.isCoAdmin | "1" or "0". Strings. | 1 |
Example response
{"Roles":[
{"guid":"7a8b26724e508ade","roles":"11100000000000000000000000000000","CustomerName":"Contoso AB",
"Plan":"f17f35b5...","isDiscoverAdmin":"1","isCoAdmin":"0","ADDomains":["corp.example.com"]}
],
"GlobalRoles":{"CreationEmail":"grace@contoso.com","Email":"grace@contoso.com","isDiscoverAdmin":"1","isCoAdmin":"0"}}
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
email: You have not been added to the MoleAnt Discover system. Please contact your system administrator | No user record has the user token's e-mail address. |
GET /v2/me.ListAccounts
For every organization where the caller is Account admin, lists the users' role rows and the organization's API keys. This is the user-management view of the web app.
v1 alias: POST https://api.moleant.com/discover/ListAccounts/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
No further parameters.
Example request
GET https://api.moleant.com/v2/accounts
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A Permissions array, one entry per organization.
| Attribute | Description | Example |
|---|---|---|
Permissions[].guid | Organization GUID. | 7a8b26724e508ade |
Permissions[].CustomerName | Organization name. | Contoso AB |
Permissions[].orgid | The organization's enrollment token for Moleant Engine (see Engine credentials). Treat it as a secret. | 5e0c... |
Permissions[].roles[].email | User e-mail address. | grace@contoso.com |
Permissions[].roles[].roles | Permission flags; see Permission levels. | 11000000000000000000000000000000 |
Permissions[].roles[].id | Role row id. Send it as UserID to ModifyPermission. A number. | 117 |
Permissions[].keys[].key | An API key of the organization, masked: its first 8 characters followed by .... The full key is not stored. | c9c42981... |
Example response
{"Permissions":[
{"guid":"7a8b26724e508ade","CustomerName":"Contoso AB","orgid":"5e0c...",
"roles":[{"email":"grace@contoso.com","roles":"11000000000000000000000000000000","id":117}],
"keys":[{"key":"c9c42981..."}]}
]}
{"Permissions":[]}.Failures are the common failures only.
ListCoAdmins
Lists the users who share organizations with the caller, optionally narrowed to the co-admins and owner of the caller's plan, or to everyone else.
v1 alias: POST https://api.moleant.com/discover/ListCoAdmins/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Userlist | No | Members (the plan's owner and co-admins) or Nonmembers (everyone else). Omit for everyone. | Case-sensitive. |
Subject | No | Read, never used. |
Example request
GET https://api.moleant.com/v2/coadmins?Userlist=Nonmembers
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A SelectableAdmins array, one entry per user.
| Attribute | Description | Example |
|---|---|---|
SelectableAdmins[].Email | User e-mail address. | grace@contoso.com |
SelectableAdmins[].Objectid | User object id. Send it as Subject. | 74c78695-356f-4b00-8b62-bc4e166c37b2 |
Example response
{"SelectableAdmins":[{"Email":"grace@contoso.com","Objectid":"74c78695-356f-4b00-8b62-bc4e166c37b2"}]}
{"SelectableAdmins":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Incorrect membersetting. Leave unset for full list. | Userlist was set to something else. |
User email does not have permission to list users for any customer. | The caller is neither Discover admin nor co-admin. |
AddCoAdmin
Makes a user a co-admin of the plan the caller owns or co-administers. The user must already have access to an organization of that plan.
v1 alias: POST https://api.moleant.com/discover/AddCoAdmin/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Subject | Yes | Object id of the user, Objectid from ListCoAdmins. | GUID, max 120. |
Example request
POST https://api.moleant.com/v2/coadmins
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Subject":"74c78695-356f-4b00-8b62-bc4e166c37b2"}
Response
A status message. On success the subcode is The user was successfully set as a CoAdmin (no full stop).
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You must specify a correct ObjectID of the Subject. | Subject was missing or not a GUID. |
The specified subject could not be found. | No user has that object id. |
The specified object could not be found. | The caller's user record was not found. |
Cannot set this user as CoAdmin as they are already set as DiscoverAdmin/Owner for a Plan. | The user owns a plan. |
Cannot set this user as CoAdmin as they are already set as CoAdmin for a Plan. | The user is already a co-admin. |
The user has not been invited to the Plan the he needs to be in order to become a CoAdmin | The user has no access to the plan's organizations. |
You lack the proper permissions to add someone as a CoAdmin | The caller is neither Discover admin nor co-admin. |
An unknown error occured. | Anything else. |
DeleteCoAdmin
Removes a user's co-admin role in the caller's plan.
v1 alias: POST https://api.moleant.com/discover/DeleteCoAdmin/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Subject | Yes | Path segment. Object id of the co-admin. | GUID, max 120. |
Example request
DELETE https://api.moleant.com/v2/coadmins/74c78695-356f-4b00-8b62-bc4e166c37b2
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is The user was successfully removed as a CoAdmin (no full stop).
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You must specify a correct ObjectID of the Subject. | Subject was missing or not a GUID. |
The specified subject could not be found. | No user has that object id. |
User email does not have permission to demote coadmins for any customer. | The caller is neither Discover admin nor co-admin. |
The specified object could not be found. | The caller's user record was not found. |
You cannot demote yourself from coadmin. | The caller named themself. |
Cannot remove the permissions from this user as they are already set as DiscoverAdmin/Owner for a Plan. | The user owns a plan. |
You cannot change a user that has another plan than yours. | The user belongs to another plan. |
You lack the proper permissions to remove someone as a CoAdmin | The caller may not change this user. |
An unknown error occured. | Anything else. |
Organizations
An organization is the unit of data: assets, systems, users and files belong to exactly one. A plan owns one or more organizations. Organizations are registered once for every Moleant product (the shared registry, since 2026-10-31); the operations here see the organizations the caller has Discover roles in, and ListPlanOrganizations lists a plan's organizations across products.
ListOrganizations
Lists every organization in which the caller has Read permission.
v1 alias: POST https://api.moleant.com/discover/ListOrganizations/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
No further parameters.
Example request
GET https://api.moleant.com/v2/organizations
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An Organisations array — note the British spelling.
| Attribute | Description | Example |
|---|---|---|
Organisations[].Organization | Organization name. | Contoso AB |
Organisations[].CustomerShortName | Short name. | Contoso |
Organisations[].CustomerDetails | Free-text details. | Head office and two branches |
Organisations[].CustomerDetailsCut | The same value truncated to 40 characters, with a trailing ellipsis when it was cut. | Head office and two branches |
Organisations[].Description | Description, plain text. | Nordic manufacturing group |
Organisations[].DescriptionCut | The same value truncated to 40 characters. | Nordic manufacturing group |
Organisations[].CGUID | Organization GUID. | 7a8b26724e508ade |
Example response
{"Organisations":[
{"Organization":"Contoso AB","CustomerShortName":"Contoso",
"CustomerDetails":"Head office and two branches","CustomerDetailsCut":"Head office and two branches",
"Description":"Nordic manufacturing group","DescriptionCut":"Nordic manufacturing group",
"CGUID":"7a8b26724e508ade"}
]}
{"Organisations":["No organization information was found for this system."]}.Failures are the common failures only.
AddOrganization
Creates a new organization under the caller's plan and provisions its tables. The new organization counts against the plan's organization quota.
v1 alias: POST https://api.moleant.com/discover/AddOrganization/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CustomerName | Yes | Display name of the organization. | Text, max 255. |
CustomerShortName | Yes | Short name. | Text, max 50. |
CGuid | No | Ignored. The new organization gets a generated GUID. |
Example request
POST https://api.moleant.com/v2/organizations
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"CustomerName":"Contoso AB","CustomerShortName":"Contoso"}
Response
A status message. On success the subcode is Successfully created organization.. The new CGuid is returned in the status message.
CGuid for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
CustomerName and CustomerShortName must be specified. | A name was missing or empty. |
User is not a Discover admin or a Co-admin. | The caller owns or co-administers no plan. |
You have used up all n organizations you were allowed to create. | The plan's organization quota is used up. |
Unknown error. | The plan's quota could not be read. |
Sorry, an error occurred. | The organization could not be created. Nothing is left behind: the tables made for it are dropped again and no organization, user or role row is added. What went wrong is written to the API's error log and mailed to the administrators; the caller is never told. |
An unexpected error occurred while processing this request. | Any other error. |
Sorry, an error occurred. Earlier versions added the rows first and returned success even when some tables were missing.ListOrganizationDetails
Returns an organization's descriptive fields and its system and asset counts.
v1 alias: POST https://api.moleant.com/discover/ListOrganizationDetails/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade
X-Api-Key: c9c42981ebf50a4749c2
Response
An OrganizationDetails array with one element.
| Attribute | Description | Example |
|---|---|---|
OrganizationDetails[].status | Always OK on success. | OK |
OrganizationDetails[].CustomerName | Organization name. | Contoso AB |
OrganizationDetails[].CustomerShortName | Short name. | Contoso |
OrganizationDetails[].CustomerDetails | Free-text details. | Head office and two branches |
OrganizationDetails[].orgid | The organization's enrollment token: the credential Enroll takes to issue device tokens to Moleant Engine (see Engine credentials). Treat it as a secret. Empty for callers without Write. | 5e0c... |
OrganizationDetails[].Description | Description, plain text. | Nordic manufacturing group |
OrganizationDetails[].NumberOfSystems | Number of systems. A number. | 7 |
OrganizationDetails[].NumberOfAssets | Number of assets. A number. | 42 |
OrganizationDetails[].HQAddress | Head-office address, plain text; line breaks are newline characters. | Storgatan 1\n111 51 Stockholm |
Example response
{"OrganizationDetails":[
{"status":"OK","CustomerName":"Contoso AB","CustomerShortName":"Contoso",
"CustomerDetails":"Head office and two branches","orgid":"5e0c...",
"Description":"Nordic manufacturing group","NumberOfSystems":7,"NumberOfAssets":42,
"HQAddress":"Storgatan 1\n111 51 Stockholm"}
]}
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to get organization details. | The caller lacks Read. |
Organization does not exist. | No organization has that GUID. |
orgid is the organization's enrollment token, the credential Enroll takes; it is returned only to callers with Write on the organization, others get an empty string. Description, CustomerDetails and HQAddress are plain text (no HTML entities, newline characters for line breaks).ModifyOrganizationDetails
Updates an organization's name, short name, description and address. Only the fields you send are changed; at least one is required.
v1 alias: POST https://api.moleant.com/discover/ModifyOrganizationDetails/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
CustomerName | No | New organization name. | Text, max 120. |
CustomerShortName | No | New short name. | Text, max 40. |
Description | No | New description. | Text, max 4096. |
HQAddress | No | New head-office address. | Text, max 4096. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Description":"Nordic manufacturing group"}
Response
A status message. On success the subcode is Successfully modified information about the organization..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
CustomerShort, CustomerShortName, Description or HQAddress must be specified. | No field to change was sent. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to change the organization data for this customer. | The caller lacks Write. |
Organization does not exist and cannot be modified. | No organization has that GUID. |
Failed to modify the organization. | The write failed. |
DeleteOrganization
Deprovisions an organization: removes it, its tables and its users' access to it.
ABCD1234 cannot be deleted.v1 alias: POST https://api.moleant.com/discover/DeleteOrganization/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully deleted organization..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User is not a Discover admin or a Co-admin. | The caller owns or co-administers no plan. |
User is not a Discover admin or a Co-admin for this particular organization. | The organization belongs to another plan. |
Sorry, an error occurred. | The organization could not be removed completely. It stays listed, so the removal can be repeated. What went wrong is written to the API's error log and mailed to the administrators; the caller is never told. |
An unexpected error occurred while processing this request. | Any other error. |
Sorry, an error occurred. A plan whose organization count cannot be lowered no longer turns a completed removal into Unknown error.ListMasterLogEntries
Returns the 250 most recent master-log entries of every organization the caller has a role in (or of one, with CGuid), merged and sorted newest first. This handler also serves v2 orglog, where every field is described; called with an API key it returns {"MasterLogs":[]}.
v1 alias: POST https://api.moleant.com/discover/ListMasterLogEntries/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Narrow to one organization. | Alphanumeric, max 50. |
FilterAdmin | No | "1": only entries with ItemClass Admin. | Digits, max 2. |
FilterAuth | No | "1": leave out entries with ItemClass Auth. Overrides FilterAdmin. | Digits, max 2. |
SystemID, ServerID | No | Read, never used. |
Example request
GET https://api.moleant.com/v2/masterlog?FilterAuth=1
X-Api-Key: c9c42981ebf50a4749c2
Response
A MasterLogs array.
| Attribute | Description | Example |
|---|---|---|
MasterLogs[].LogDate / LogTime / LastEpoch | When, in UTC; LastEpoch is the Unix time and the sort key. A number. | 2026-08-18 / 14:22:07 / 1786976527 |
MasterLogs[].id, LogID, LogAuthorID, ServerID, SystemID | Numbers. | 91204, 4471, 0, 38, 0 |
MasterLogs[].LogDescription, LogName, LogType, LogAuthor, LogClass, ItemClass, Severity, EntityName, PrincipalName, PrincipalID, ObjectPrincipal, guid | As in v2 orglog. PrincipalID is usually the acting user's object GUID. | |
MasterLogs[].CustomerName | Organization the entry came from. | Contoso AB |
MasterLogs[].CGuid | GUID of the organization the entry came from. |
Example response
{"MasterLogs":[
{"LogDate":"2026-08-18","LogTime":"14:22:07","LastEpoch":1786976527,"id":91204,"LogID":4471,
"LogDescription":"Environment changed to Production","LogAuthor":"alovelace","LogType":4,
"LogName":"Configuration change","ServerID":38,"guid":"b13f...","LogClass":"System Event",
"SystemID":0,"LogAuthorID":0,"Severity":"Information","EntityName":"SRV-FILE01",
"PrincipalName":"alovelace@contoso.com","PrincipalID":"74c78695-356f-4b00-8b62-bc4e166c37b2",
"CGuid":"7a8b26724e508ade","CustomerName":"Contoso AB","ObjectPrincipal":"SRV-FILE01","ItemClass":"Admin"}
]}
{"MasterLogs":[]}.Failures are the common failures only.
LogDate and LogTime are UTC, text fields are plain text, a missing text value (PrincipalName, ObjectPrincipal and the like) is "", and the ids are numbered across organizations.API keys
API keys authenticate integrations. A key belongs to one organization and grants Read and Write on it. The API stores only a hash of each key: a generated key is shown once, in the AddKey response, and the listings show the first 8 characters followed by ....
ListKeys
Lists API keys, masked. Each entry names the organization the key belongs to.
v1 alias: POST https://api.moleant.com/discover/ListKeys/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Hex, max 100. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/keys
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A Keys array.
| Attribute | Description | Example |
|---|---|---|
Keys[].OrgID | GUID of the organization the key belongs to. | 7a8b26724e508ade |
Keys[].OrgName | Its name. | Contoso AB |
Keys[].Key | The key, masked: its first 8 characters followed by .... Send either the full key or these 8 characters to DeleteKey. | c9c42981... |
Keys[].KeyDescription | The key's name. | Power BI export |
Example response
{"Keys":[{"OrgID":"7a8b26724e508ade","OrgName":"Contoso AB","Key":"c9c42981...","KeyDescription":"Power BI export"}]}
{"Keys":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
CGuid is missing. | CGuid was missing or not hex. |
User does not have permission to list keys for this organization. | The caller lacks Read. |
Key shows the first 8 characters of the key followed by ...: keys are stored hashed and the full value is shown only once, by AddKey. Only the keys of the requested organization are returned. Earlier versions returned the keys of every organization the caller could see, in full.AddKey
Stores a new API key for the organization. Leave Key out to have the API generate one: the generated key is returned in the response and nowhere else, so the client must keep it. The API stores only a hash.
v1 alias: POST https://api.moleant.com/discover/AddKey/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Hex, max 100. |
Key | No | The key value. When left out, the API generates a 48-character key and returns it in the status message. | Hex, 16 to 64 characters. |
Name | Yes | Name of the key. | Text, max 200. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/keys
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Name":"Power BI export"}
Response
A status message. On success the subcode is Successfully added the key.. When the API generated the key, the message carries it as Key: 48 hexadecimal characters, shown this once. The listings show only its first 8 characters.
Key for the new record, when the API generated it.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
CGuid is missing. | CGuid was missing or not hex. |
Key is missing. | Key was sent but empty or not hex. |
Key name is missing. | Name was missing. |
User does not have permission to modify attributes for this organization. | The caller lacks Write (sic). |
Key must be 16 to 64 hexadecimal characters. | Key was shorter than 16 or longer than 64 characters. |
This key is already in use. | The same key exists in this or another organization. |
Key is left out the API generates a 48-character key and returns it in the Key field of the status message (earlier versions generated 40 characters). A key must be 16 to 64 hexadecimal characters and unique across organizations.DeleteKey
Deletes an API key of the organization. The call succeeds even when the organization has no such key.
v1 alias: POST https://api.moleant.com/discover/DeleteKey/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Hex, max 100. |
Key | Yes | Path segment. The key to delete: the full key, or the 8 characters ListKeys shows (without the dots). | Hex, max 100. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/keys/c9c42981
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully deleted the key..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
CGuid is missing. | CGuid was missing or not hex. |
Key is missing. | Key was missing or not hex. |
User does not have permission to delete attributes for this organization. | The caller lacks Write (sic). |
Key may be the full key or the first 8 characters that ListKeys and ListAccounts show, since the full key is no longer stored. Only the organization's own keys are deleted.Users and permissions
Users are Entra ID identities with a permission set per organization; see Permission levels.
InviteUser
Gives a person access to the caller's organizations. An address that already has a Moleant Discover account is granted access and notified by e-mail. Otherwise Mode decides: Invite sends a Microsoft Entra B2B invitation (the address must belong to a Microsoft 365 organization), and Create creates a new account in Moleant's own directory and e-mails the sign-in details. New users start with Read permission.
v1 alias: POST https://api.moleant.com/discover/InviteUser/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. An organization in which the caller is Account admin. | Alphanumeric, max 255. |
Email | Yes | The person's e-mail address. | E-mail, max 255. |
Mode | Yes | Invite or Create. | Case-sensitive. |
FirstName | Conditional | Given name. Required for Create. | Text, max 255. |
LastName | Conditional | Surname. Required for Create. | Text, max 255. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/users
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Email":"grace@fabrikam.com","Mode":"Invite"}
Response
A status message. The Success subcodes, with their submessage, are:
subcode | submessage | Meaning |
|---|---|---|
Invitation sent to already existing user. | Invitations sent. | An existing account was given access. |
User already have access to the same organizations as you do. | Invitations sent. | Nothing to do. |
Invitation sent and user added. | Invitations sent. | Invite: the B2B invitation went out. |
The user already exists and will not be added for this customer | Invitations not needed. | Invite: the user already has a role here. |
User was successfully created. | User was successfully created. | Create: the account exists and the e-mail was sent. |
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Mode not specified or incorrect. | Mode was not Invite or Create. |
Firstname and Lastname must be specified when creating a new user. | Create without names. |
Email must be specified. | Email was missing or not an e-mail address. |
FALSE | With submessage Organization data missing.: CGuid was missing. |
User email does not have permission to perform this operation. | The caller lacks Account admin. |
Could not handle existing users. Please contact system administration. | The existing account could not be updated. |
The domain does not appear to be a Microsoft federation. Could not send invite. | Invite to an address outside Microsoft 365. |
Could not authenticate with the Microsoft Graph API. Please contact MoleAnt System Administration. | Moleant could not get a Graph token. |
Could not send invitation. Please make sure the use has a school/business account at Office365 and that the user is not using a @moleant.com-address. | Graph rejected the invitation. |
Could not send invitation. Please contact MoleAnt System Administration. | The invitation failed for another reason. |
Cannot find the Plan bound to the caller. | The caller has no plan. |
The target email is already used for another user. | Create for an address that is taken. |
Failed to create user. EC: … | Create: Graph rejected the new account. The Graph error follows EC:. |
An error occurred while creating the user. Please try again later. | Create failed for another reason. |
General error. Please contact system administration. | Anything else. |
DeleteUser
Removes a user. If the user belongs to the caller's plan, the user record and all of the user's roles are deleted. Otherwise only the user's roles in organizations of the caller's plan are removed. The plan owner cannot be deleted, and neither can the caller.
v1 alias: POST https://api.moleant.com/discover/DeleteUser/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. An organization in which the caller is Account admin. | Alphanumeric, max 255. |
Email | Yes | Path segment. E-mail address of the user to remove. | E-mail, max 255. |
Mode | No | Read, never used. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/users/grace%40contoso.com
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is User was successfully deleted., with the same text in submessage.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Email must be specified. | Email was missing or not an e-mail address. |
FALSE | With submessage Organization data missing.: CGuid was missing. |
User email does not have permission to delete users for this customer. | The caller lacks Account admin. |
User not found and could not be deleted. | No user has that e-mail address. |
You may not delete your own admin-rights. | The caller tried to delete themself. |
User email does not have permission to delete users for any customer. | The caller is neither Discover admin nor co-admin. |
This user is not permissible to delete as they own the Plan. | The user is the plan owner. submessage: User could not be deleted. |
ModifyPermission
Turns individual permission flags of one role row on or off, and logs the change. Flags you do not send are left as they are.
v1 alias: POST https://api.moleant.com/discover/ModifyPermission/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 255. |
UserID | Yes | Path segment. Id of the role row to change, roles[].id from ListAccounts. Not a user object id. | Digits, max 10. |
Read | No | "true" or "false" — strings, not booleans. | Anything else leaves the flag unchanged. |
Write | No | "true" or "false". | |
Admin | No | "true" or "false": Account admin. | You cannot change your own. |
ReadPassword | No | "true" or "false". | |
WritePassword | No | "true" or "false". | |
PlanOwner, OrgAdmin | No | Read, never used. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/roles/117
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Read":"true","Write":"true"}
Response
A status message. On success the subcode is Permissions updated successfully.; submessage is OK.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Permissions not declared. | No flag was sent. |
FALSE | With submessage Organization data missing., UserID data missing., Incorrect CGuid specified. (the role row is not in that organization) or Unable to find Plan for organisation. |
User does not have permission to change this user email data. | The caller lacks Account admin. |
User not found...User does not have permission to change this user data. | No role row has that id. |
You may not delete your own admin-rights. | The caller sent Admin for their own role row. |
This user is not permissible to change as they own the Plan. | The user owns the plan. submessage: User could not be deleted. |
Address book
The people of an organization, the departments and teams they are placed in, and its vendors. A RACI task names a person, a vendor or a department/team by its Guid.
ListAddressBook
Lists every address-book entry of the organization.
v1 alias: POST https://api.moleant.com/discover/ListAddressBook/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/addressbook
X-Api-Key: c9c42981ebf50a4749c2
Response
An AddressBook array.
| Attribute | Description | Example |
|---|---|---|
AddressBook[].id | Row id. A number. | 5 |
AddressBook[].GivenName / LastName / Initial | Name. | Ada / Lovelace / AL |
AddressBook[].Phone / Email | Contact details. | +46 8 123 45 67 / ada@contoso.com |
AddressBook[].Role / Notes | Role and notes, plain text. | System owner |
AddressBook[].Guid | Entry GUID. Used by the Modify and Delete calls and by RACI tasks. | e41f... |
AddressBook[].DepartmentGuid | The department the person is in, or empty. See ListDepartments. | c17a... |
Example response
{"AddressBook":[
{"id":5,"GivenName":"Ada","LastName":"Lovelace","Initial":"AL","Phone":"+46 8 123 45 67",
"Email":"ada@contoso.com","Role":"System owner","Notes":"","Guid":"e41f...","DepartmentGuid":"c17a..."}
]}
{"AddressBook":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to list the addressbook for this customer. | The caller lacks Read. |
DepartmentGuid is new.AddAddressBookEntry
Adds a person to the address book.
v1 alias: POST https://api.moleant.com/discover/AddAddressBookEntry/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
GivenName | Yes | Given name. | Text, max 250. |
LastName | Yes | Surname. | Text, max 250. |
Initial | No | Initials. | Text, max 250. |
Phone | No | Phone number. | Text, max 250. |
Email | No | E-mail address. When sent it must be valid. | E-mail, max 250. |
Role | No | Role or title. | Text, max 4096. |
Notes | No | Notes. | Text, max 4096. |
DepartmentGuid | No | The Guid of the department the person is in. | Hex, max 120. Must exist when sent. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/addressbook
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"GivenName":"Ada","LastName":"Lovelace","Email":"ada@contoso.com","Role":"System owner"}
Response
A status message. On success the subcode is Successfully added the person to the AddressBook.. The new Guid is returned in the status message.
Guid for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
The email-address in the addressbook is not correctly formatted. | Email was not a valid address. |
GivenName invalid or missing. | GivenName was missing. |
LastName invalid or missing. | LastName was missing. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The department does not exist. | DepartmentGuid names no department of this organization. |
User does not have permission to add a person to the AddressBook for this customer. | The caller lacks Write. |
Failed to add person to AddressBook. | The write failed. |
ModifyAddressBookEntry
Rewrites an address-book entry. Every field is replaced: send the complete entry, since omitted fields are cleared. The exception is DepartmentGuid, which a client from before departments does not know about.
v1 alias: POST https://api.moleant.com/discover/ModifyAddressBookEntry/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Guid | Yes | Path segment. Entry GUID. | Hex, max 120. |
GivenName | Yes | Given name. | Text, max 250. |
LastName | Yes | Surname. | Text, max 250. |
Initial | No | Initials. | Text, max 250. |
Phone | No | Phone number. | Text, max 250. |
Email | No | E-mail address. When sent it must be valid. | E-mail, max 250. |
Role | No | Role or title. | Text, max 4096. |
Notes | No | Notes. | Text, max 4096. |
DepartmentGuid | No | The Guid of the department the person is in. Left out, the person stays where they are; empty takes them out of their department. | Hex, max 120. Must exist when sent. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/addressbook/e41f...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"GivenName":"Ada","LastName":"Lovelace","Initial":"AL","Phone":"+46 8 123 45 67","Email":"ada@contoso.com","Role":"System owner","Notes":"Back from leave in May"}
Response
A status message. On success the subcode is Successfully modified the person in the AddressBook..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
The email-address in the addressbook is not correctly formatted. | Email was not a valid address. |
GivenName invalid or missing. | GivenName was missing. |
LastName invalid or missing. | LastName was missing. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The department does not exist. | DepartmentGuid names no department of this organization. |
Object Guid missing or invalid. | Guid was missing or not hex. |
User does not have permission to modify a person in the AddressBook for this customer. | The caller lacks Write. |
The person does not exist in the addressbook and thus cannot be modified. | No entry has that GUID. |
Failed to modify the person in the AddressBook. | The write failed. |
DeleteAddressBookEntry
Deletes an address-book entry. The person is taken out of every RACI role they hold, where the task stays with nobody in that role, and a vendor that had them as its internal contact is left without one.
v1 alias: POST https://api.moleant.com/discover/DeleteAddressBookEntry/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Guid | Yes | Path segment. Entry GUID. | Hex, max 250. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/addressbook/e41f...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Addressbookentry was successfully deleted..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid is missing or invalid. | CGuid was missing or malformed. |
Guid is missing or invalid. | Guid was missing or not hex. |
User does not have permission to delete AddressBookEntry for this customer. | The caller lacks Write. |
This address book entry does not exist. | No entry has that GUID. |
Addressbookentry could not be deleted. | The delete failed. |
ListDepartments
Lists the departments and teams of the organization, in the order of their names. ParentGuid gives the hierarchy.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/departments
X-Api-Key: c9c42981ebf50a4749c2
Response
A Departments array.
| Attribute | Description | Example |
|---|---|---|
Departments[].id | Row id. A number. | 12 |
Departments[].Guid | Department GUID. Used by the Modify and Delete calls, as DepartmentGuid and ParentGuid, and by RACI tasks. | c17a... |
Departments[].Name | Name. | Service desk |
Departments[].ParentGuid | The department it is a part of, or empty at the top level. | 8e20... |
Departments[].Description | Description, plain text. | First line support |
Example response
{"Departments":[
{"id":11,"Guid":"8e20...","Name":"IT operations","ParentGuid":"","Description":""},
{"id":12,"Guid":"c17a...","Name":"Service desk","ParentGuid":"8e20...","Description":"First line support"}
]}
{"Departments":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to list the departments for this customer. | The caller lacks Read. |
AddDepartment
Adds a department or team to the address book.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Name | Yes | Name of the department or team. | Text, max 250. |
ParentGuid | No | The Guid of the department it is a part of. Left out or empty puts it at the top level. | Hex, max 120. Must exist when sent. |
Description | No | A few words about it. | Text, max 4096. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/departments
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Name":"Service desk","ParentGuid":"8e20c1d47a3b4f6e9d02b5a1c7e36f10","Description":"First line support"}
Response
A status message. On success the subcode is Successfully added the department.. The new Guid is returned in the status message.
Guid for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Name invalid or missing. | Name was missing or too long. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to add a department to this customer. | The caller lacks Write. |
The parent department does not exist. | ParentGuid names no department of this organization. |
Description is too long. | Description is over its limit. |
ModifyDepartment
Rewrites a department and can move it in the hierarchy. Every field is replaced: send the complete department, since a left-out ParentGuid moves it to the top level and a left-out Description is cleared. What is in or below the department moves with it.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Guid | Yes | Path segment. The GUID of the record. | Hex, max 120. |
Name | Yes | Name of the department or team. | Text, max 250. |
ParentGuid | No | The Guid of the department it is a part of. Left out or empty puts it at the top level. | Hex, max 120. Must exist when sent. |
Description | No | A few words about it. | Text, max 4096. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/departments/c17a...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Name":"Helpdesk","ParentGuid":"8e20c1d47a3b4f6e9d02b5a1c7e36f10","Description":"First line support"}
Response
A status message. On success the subcode is Successfully modified the department..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Name invalid or missing. | Name was missing or too long. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
Object Guid missing or invalid. | Guid was missing or not hex. |
User does not have permission to modify a department for this customer. | The caller lacks Write. |
The parent department does not exist. | ParentGuid names no department of this organization. |
The department does not exist and thus cannot be modified. | No department has that GUID. |
A department cannot be a part of itself or of a department below it. | ParentGuid would make a loop. |
Description is too long. | Description is over its limit. |
DeleteDepartment
Deletes a department. What was in it moves up one step: the people and the departments below it go to its parent, or out of any department and to the top level if it had none. Nobody is deleted with it. The department is taken out of every RACI role it holds, which is emptied; the tasks stay, even one left with nobody in any role.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Guid | Yes | Path segment. The GUID of the record. | Hex, max 120. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/departments/c17a...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Department was successfully deleted..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid is missing or invalid. | CGuid was missing or malformed. |
Guid is missing or invalid. | Guid was missing or not hex. |
User does not have permission to delete a department for this customer. | The caller lacks Write. |
This department does not exist. | No department has that GUID. |
ListVendors
Lists the vendors of the organization, in the order of their names. A vendor is an external supplier; a RACI task can name it by its Guid as it names a person.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/vendors
X-Api-Key: c9c42981ebf50a4749c2
Response
A Vendors array.
| Attribute | Description | Example |
|---|---|---|
Vendors[].id | Row id. A number. | 4 |
Vendors[].Guid | Vendor GUID. Used by the Modify and Delete calls and by RACI tasks. | 3fd1... |
Vendors[].Name / Category | Name and category. | Tech Solutions AB / IT services |
Vendors[].Email / Phone / Website | Contact details. | contact@techsolutions.example |
Vendors[].Address | Postal address, with its line breaks. | Sveavägen 10 |
Vendors[].About / OrgNumber | A few words about the company, and its registration number. | 556789-1234 |
Vendors[].ContactGuid | The internal contact, a person in the address book, or empty. | e41f... |
Example response
{"Vendors":[
{"id":4,"Guid":"3fd1...","Name":"Tech Solutions AB","Category":"IT services","Email":"contact@techsolutions.example",
"Phone":"+46 8 123 45 00","Website":"https://www.techsolutions.example","Address":"Sveavägen 10\n111 57 Stockholm",
"About":"Runs our servers.","OrgNumber":"556789-1234","ContactGuid":"e41f..."}
]}
{"Vendors":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to list the vendors for this customer. | The caller lacks Read. |
AddVendor
Adds a vendor.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Name | Yes | Name of the vendor. | Text, max 250. |
Category | No | What kind of vendor it is, free text. | Text, max 100. |
Email | No | E-mail address. Empty means none; anything else must be valid. | E-mail, max 250. |
Phone | No | Phone number. | Text, max 100. |
Website | No | Website. Stored as text: a client must check it before making it a link. | Text, max 500. |
Address | No | Postal address. Line breaks are kept. | Text, max 1000. |
About | No | A few words about the company. | Text, max 4096. |
OrgNumber | No | Company registration number. | Text, max 50. |
ContactGuid | No | The internal contact: the Guid of a person in the address book. | Hex, max 120. Must exist when sent. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/vendors
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Name":"Tech Solutions AB","Category":"IT services","Email":"contact@techsolutions.example","ContactGuid":"e41fb07c2d954a18b6f3097ce1a4d582"}
Response
A status message. On success the subcode is Successfully added the vendor.. The new Guid is returned in the status message.
Guid for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Name invalid or missing. | Name was missing or too long. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to add a vendor to this customer. | The caller lacks Write. |
The email-address of the vendor is not correctly formatted. | Email was not a valid address. |
Category is too long. | Category is over its limit. |
Phone is too long. | Phone is over its limit. |
Website is too long. | Website is over its limit. |
Address is too long. | Address is over its limit. |
About is too long. | About is over its limit. |
OrgNumber is too long. | OrgNumber is over its limit. |
The internal contact does not exist in the addressbook. | ContactGuid names nobody in this organization. |
ModifyVendor
Rewrites a vendor. Every field is replaced: send the complete vendor, since omitted fields are cleared.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Guid | Yes | Path segment. The GUID of the record. | Hex, max 120. |
Name | Yes | Name of the vendor. | Text, max 250. |
Category | No | What kind of vendor it is, free text. | Text, max 100. |
Email | No | E-mail address. Empty means none; anything else must be valid. | E-mail, max 250. |
Phone | No | Phone number. | Text, max 100. |
Website | No | Website. Stored as text: a client must check it before making it a link. | Text, max 500. |
Address | No | Postal address. Line breaks are kept. | Text, max 1000. |
About | No | A few words about the company. | Text, max 4096. |
OrgNumber | No | Company registration number. | Text, max 50. |
ContactGuid | No | The internal contact: the Guid of a person in the address book. | Hex, max 120. Must exist when sent. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/vendors/3fd1...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Name":"Tech Solutions AB","Category":"IT services","Email":"support@techsolutions.example","ContactGuid":"e41fb07c2d954a18b6f3097ce1a4d582"}
Response
A status message. On success the subcode is Successfully modified the vendor..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Name invalid or missing. | Name was missing or too long. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
Object Guid missing or invalid. | Guid was missing or not hex. |
User does not have permission to modify a vendor for this customer. | The caller lacks Write. |
The vendor does not exist and thus cannot be modified. | No vendor has that GUID. |
The email-address of the vendor is not correctly formatted. | Email was not a valid address. |
Category is too long. | Category is over its limit. |
Phone is too long. | Phone is over its limit. |
Website is too long. | Website is over its limit. |
Address is too long. | Address is over its limit. |
About is too long. | About is over its limit. |
OrgNumber is too long. | OrgNumber is over its limit. |
The internal contact does not exist in the addressbook. | ContactGuid names nobody in this organization. |
DeleteVendor
Deletes a vendor. The vendor is taken out of every RACI role it holds; the tasks stay, with nobody in that role.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Guid | Yes | Path segment. The GUID of the record. | Hex, max 120. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/vendors/3fd1...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Vendor was successfully deleted..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid is missing or invalid. | CGuid was missing or malformed. |
Guid is missing or invalid. | Guid was missing or not hex. |
User does not have permission to delete a vendor for this customer. | The caller lacks Write. |
This vendor does not exist. | No vendor has that GUID. |
Attributes (tags)
Custom fields defined per organization and filled in per organization, system or asset. The web app calls them tags.
ListAttributes
Lists the attribute values set on one card, followed by the organization's other attributes of that card type with empty values, so the result can drive an edit form. Without a card it lists every attribute definition of every organization the caller may read, each with its Organization and CGUID.
OrgID, SystemID or ServerID) is read from the organization in CGuid only: system and asset ids are unique within an organization, not across organizations.v1 alias: POST https://api.moleant.com/discover/ListAttributes/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Hex, max 100. |
OrgID | No | Organization card to read. Takes precedence over SystemID and ServerID. | Hex, max 100. |
SystemID | No | System card to read. | Digits, max 10. |
ServerID | No | Asset card to read. | Digits, max 10. |
AttributeGuid | No | Read, never used. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/attributes?SystemID=12
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An Attributes array.
| Attribute | Description | Example |
|---|---|---|
Attributes[].Name | Attribute name. | Cost centre |
Attributes[].ID | Id of the value row, as a string; empty for an attribute without a value. | 31 |
Attributes[].ItemValue | The value; empty when unset. | 4410 |
Attributes[].HRLocation | Human-readable kind and place, e.g. A single row in a system; empty when unset. | A single row in a system |
Attributes[].AttributeGuid | Attribute GUID. | 4be1... |
Attributes[].Type | 0 row or 1 block. A number. | 0 |
Attributes[].CardType | 0 organization, 1 system, 2 asset. A number. | 1 |
Attributes[].Organization | Name of the organization the attribute came from. | Contoso AB |
Attributes[].CGUID | GUID of the organization the attribute belongs to: the CGuid to use when changing or deleting it. | 7a8b26724e508ade |
Example response
{"Attributes":[
{"Name":"Cost centre","ID":"31","ItemValue":"4410","HRLocation":"A single row in a system",
"AttributeGuid":"4be1...","Type":0,"CardType":1,"Organization":"Contoso AB","CGUID":"7a8b26724e508ade"},
{"Name":"Owner","ID":"","HRLocation":"","ItemValue":"","Type":0,"CardType":1,
"AttributeGuid":"8c02...","Organization":"Contoso AB","CGUID":"7a8b26724e508ade"}
]}
An organization without attributes answers HTTP 200 with the placeholder {"Attributes":["No attributes were found"]}.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
User does not have permission to list attributes for this organization. | The caller lacks Read. |
OrgID, SystemID or ServerID) is read from the organization in CGuid only; earlier versions of this release mixed in the values and attributes that other organizations of the caller hold for the same id, and those could not be saved. Without a card, the attributes of every organization the caller may read are returned, each with Organization and CGUID. An empty result is HTTP 200 with a placeholder, no longer the failure No attributes were found.AddAttribute
Defines a new attribute for the organization. The definition applies organization-wide to cards of its CardType; give it values with ModifyAttributeValue.
v1 alias: POST https://api.moleant.com/discover/AddAttribute/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Hex, max 100. |
Name | Yes | Attribute name. | Text, max 5000. |
Type | Yes | 0 a single row, 1 a block of text. | Digits, max 3. |
CardType | Yes | Where it appears: 0 organization, 1 system, 2 asset. | Digits, max 3. |
OrgID, SystemID, ServerID | One of them | At least one must be sent, but none is stored. | OrgID: Hex, max 100. The ids: Digits, max 10. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/attributes
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"OrgID":"7a8b26724e508ade","Name":"Cost centre","Type":"0","CardType":"1"}
Response
A status message. On success the subcode is Successfully added the attribute..
AttributeGuid for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
CGuid missing | With submessage ListAttributes failure.: CGuid was missing or not hex. |
User does not have permission to add attributes for this organization. | The caller lacks Write. |
Name is missing. | Name was missing. |
CardType is missing. | CardType was missing. |
Type is missing. | Type was missing. |
OrgID, SystemID or ServerID must be set. | None of the three was sent. |
ModifyAttribute
Changes the name of an attribute definition.
v1 alias: POST https://api.moleant.com/discover/ModifyAttribute/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Hex, max 100. |
AttributeGuid | Yes | Path segment. The attribute. | Hex, max 100. |
Name | Yes | New name. | Text, max 5000. |
OrgID | Yes | Required by the validation, otherwise unused. | Hex, max 100. |
SystemID, ServerID | No | Read, never used. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/attributes/4be1...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"OrgID":"7a8b26724e508ade","Name":"Cost center"}
Response
A status message. On success the subcode is Successfully modified the attribute..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
CGuid missing | With submessage Modifyattributes failure. |
OrgID is missing. | OrgID was missing. |
AttributeGuid is missing. | AttributeGuid was missing. |
Name is missing. | Name was missing. |
User does not have permission to modify attributes for this organization. | The caller lacks Write. |
This attribute does not exist. | No attribute has that GUID. |
DeleteAttribute
Deletes an attribute definition.
v1 alias: POST https://api.moleant.com/discover/DeleteAttribute/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Hex, max 100. |
AttributeGuid | Yes | Path segment. The attribute. | Hex, max 100. |
OrgID, SystemID, ServerID, Name | No | Read, never used. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/attributes/4be1...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully deleted the attribute..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
CGuid missing | With submessage DeleteAttributes failure. |
AttributeGuid is missing. | AttributeGuid was missing or not hex. |
User does not have permission to delete attributes for this organization. | The caller lacks Write. |
This attribute does not exist. | No attribute has that GUID. |
ModifyAttributeValue
Sets the value of an attribute on one organization, system or asset card, creating the value row the first time.
v1 alias: POST https://api.moleant.com/discover/ModifyAttributeValue/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Hex, max 100. |
AttributeGuid | Yes | Path segment. The attribute. | Hex, max 100. |
ItemValue | Yes | The value. | Text, max 5000. |
OrgID, SystemID, ServerID | One of them | The card to set it on. OrgID must be the request's own organization (CGuid). | OrgID: Hex, max 100. The ids: Digits, max 10. |
Name | No | Read, never used. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/attributes/4be1.../value
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"SystemID":"12","ItemValue":"4410"}
Response
A status message. On success the subcode is Successfully edited the tag. when a value is replaced, and New value added to tag. when the first value is set.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
CGuid missing | With submessage ListAttributes failure. |
OrgID, SystemID or ServerID is missing. | No card was named. |
AttributeGuid is missing. | AttributeGuid was missing. |
User does not have permission to modify attributes for this organization. | The caller lacks Write. |
This attribute does not exist. | No attribute has that GUID. |
This systemid, serverid or orgid does not exist | The named card does not exist: the system or asset is not in this organization, or OrgID is not the request's organization. |
OrgID that is not the request's organization fails with This systemid, serverid or orgid does not exist; it used to answer Success and store a value nobody could read.Log entries
The organization's master log: audit entries the API writes, and entries users write for systems and assets.
ListLogEntries
Lists the log entries of a system, an asset, some log classes, or the whole organization, newest first. This handler also serves v2 systemlog.
v1 alias: POST https://api.moleant.com/discover/ListLogEntries/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Ignored with a key. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Entries of this system, without routine check-in entries. | Digits, max 10. |
ServerID | Yes | Path segment. Entries of this asset, without routine check-in entries. | Digits, max 10. |
Filter | No | Array of LogClass values; returns entries of those classes and overrides the ids. | Array, Text, max 50 each. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/logs?Filter[]=System%20Event
X-Api-Key: c9c42981ebf50a4749c2
Response
A SystemLogs array.
| Attribute | Description | Example |
|---|---|---|
SystemLogs[].LogDescription | Display name of the log type. | Configuration change |
SystemLogs[].LogType | Log type code. | 4 |
SystemLogs[].LogAuthor | Who or what wrote the entry. | alovelace |
SystemLogs[].Logdate / Logtime | Entry date and time, UTC. Note the lower-case d and t. | 2026-08-18 / 14:22:07 |
SystemLogs[].guid | Entry GUID. Pass it to ModifyLogEntry and DeleteLogEntry. | b13f... |
SystemLogs[].Severity | Severity. | Information |
SystemLogs[].EntityName | Name of the entity the entry concerns. | Payroll |
SystemLogs[].ObjectPrincipal | Principal associated with the object. | alovelace@contoso.com |
SystemLogs[].LogClass, SystemID, ServerID | Present only when neither SystemID nor ServerID was sent. The ids are numbers, 0 when not applicable. | System Event, 12, 0 |
SystemLogs[].ItemClass | Item classification. | Admin |
SystemLogs[].Description | The entry text. | Environment changed to Production |
Example response
{"SystemLogs":[
{"LogDescription":"Configuration change","LogType":4,"LogAuthor":"alovelace",
"Logdate":"2026-08-18","Logtime":"14:22:07","guid":"b13f...","Severity":"Information",
"EntityName":"Payroll","ObjectPrincipal":"alovelace@contoso.com","LogClass":"System Event",
"SystemID":12,"ServerID":0,"ItemClass":"Admin","Description":"Environment changed to Production"}
]}
{"SystemLogs":["No logs were found for this system."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Organisation ID invalid or empty. | CGuid was missing or malformed. |
Filter definitions are malformed. | Filter was not an array. |
You have selected too many LogClass entries for this query. | Filter had too many values. |
Logdate and Logtime are UTC, LogDescription, LogAuthor and the other text fields are plain text, and the ids are numbered across organizations. Read permission on the organization is required; earlier versions did not check it.AddLogEntry
Writes a user log entry for a system or an asset. The entry's date and time are taken from LogEpoch.
v1 alias: POST https://api.moleant.com/discover/AddLogEntry/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. The system. At least one of SystemID and ServerID is required; send both and two entries are written, one for each. | Digits, max 10. |
ServerID | Yes | Path segment. The asset. | Digits, max 10. |
LogType | Yes | Log type code from ListSystemLogTypes. | Digits, max 3. |
LogDescription | Yes | The entry text. | Text, max 255. |
LogAuthor | Yes | Author shown on the entry. | Text, max 255. |
LogEpoch | Yes | When it happened, as a Unix timestamp in seconds. | Digits, max 30. |
Logdate, Logtime | No | Read, never used. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/logs
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"SystemID":"12","LogType":"4","LogDescription":"Patched to 2.4.1","LogAuthor":"alovelace","LogEpoch":"1786976527"}
Response
A status message. On success the subcode is Successfully added the log entry..
guid for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Logtype invalid or empty. | LogType was missing or not numeric. |
LogDescription invalid or empty. | LogDescription was missing. |
LogAuthor invalid or empty. | LogAuthor was missing. |
LogEpoch invalid or empty. | LogEpoch was missing or not numeric. |
User does not have permission to add log data for this customer. | The caller lacks Write. |
Failed to add entry. SystemID and ServerID both missing. | Neither id was sent. |
System does not exist and logs cannot be added. | No system has that id. |
Server does not exist and logs cannot be added. | No asset has that id. |
ModifyLogEntry
Rewrites a log entry. All fields are required.
v1 alias: POST https://api.moleant.com/discover/ModifyLogEntry/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
guid | Yes | Path segment. Entry GUID. | Hex, max 40. |
SystemID | Conditional | The system. One of SystemID and ServerID is required. | Digits, max 10. |
ServerID | Conditional | The asset. | Digits, max 10. |
LogType | Yes | Log type code. | Digits, max 3. |
LogDescription | Yes | The entry text. | Text, max 255. |
LogAuthor | Yes | Author. | Text, max 255. |
Logdate | Yes | Date, YYYY-MM-DD. Together with Logtime it must parse as a moment in time (UTC). | Date, max 30. |
Logtime | Yes | Time, HH:MM:SS. | Text, max 30. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/logs/b13f...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"SystemID":"12","LogType":"4","LogDescription":"Patched to 2.4.2","LogAuthor":"alovelace","Logdate":"2026-08-18","Logtime":"14:22:07"}
Response
A status message. On success the subcode is Successfully modified the log entry..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Logtype invalid or empty. | LogType was missing. |
LogDescription invalid or empty. | LogDescription was missing. |
LogAuthor invalid or empty. | LogAuthor was missing. |
Logdate invalid or empty. | Logdate was missing or not a date, or Logdate and Logtime together do not parse as a date and time. |
LogTime invalid or empty. | Logtime was missing. |
Guid invalid or empty. | guid was missing or not hex. |
User does not have permission to modfify log data for this customer. | The caller lacks Write (sic). |
Failed to modify entry. SystemID and ServerID both missing. | Neither id was sent. |
Failed to modify entry. The entry does not exist. | No entry has that GUID. |
Technical problems prevented this operation from succeeding. | The write failed. |
Logdate/Logtime pair that does not parse as a date and time fails with Logdate invalid or empty.; the two values used to be stored as sent. An entry keeps its LogClass (System for system entries); earlier versions set it to Server.DeleteLogEntry
Deletes one log entry.
v1 alias: POST https://api.moleant.com/discover/DeleteLogEntry/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
guid | Yes | Path segment. Entry GUID, SystemLogs[].guid. | Hex, max 250. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/logs/b13f...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully deleted Logentry (no full stop).
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid is missing or invalid. | CGuid was missing or malformed. |
guid is missing or invalid. | guid was missing or not hex. |
User does not have permission to delete system kb for this customer. | The caller lacks Write (sic). |
Failed to delete Logentry. | The delete failed. |
ListSystemLogTypes
Returns the global list of log types used by LogType. The same for every organization.
v1 alias: POST https://api.moleant.com/discover/ListSystemLogTypes/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | No | Ignored. | |
SystemID | No | Ignored. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/logtypes
X-Api-Key: c9c42981ebf50a4749c2
Response
A SystemLogTypes array.
| Attribute | Description | Example |
|---|---|---|
SystemLogTypes[].LogType | Log type code. Send it as LogType. | 4 |
SystemLogTypes[].LogDescription | Display name. | Configuration change |
Example response
{"SystemLogTypes":[{"LogType":4,"LogDescription":"Configuration change"}]}
{"SystemLogTypes":["No logtypes were found for this system."]}.Failures are the common failures only.
Systems
A system groups assets that together deliver a service or application. Active Directory domains and Microsoft 365 tenants are systems too.
ListSystems
Lists the systems of one organization, or of several through a multi-organization query. This handler also serves v2 systems.
v1 alias: POST https://api.moleant.com/discover/ListSystems/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID for a single-organization query. Required with a user token unless Organizations is sent; ignored with a key. | Alphanumeric, max 50. |
Organizations | Conditional | Array of organization objects for a multi-organization query. User token only. | |
IncludeOrgName | No | "TRUE" fills OrganizationName. | Case-sensitive. |
IncludeDetails | No | "TRUE" also fills OrganizationName. | Case-sensitive. |
Skip | No | Rows to skip. Applied only together with Count. | Digits, 0–1000000. |
Count | No | Rows to return. Applied only together with Skip. | Digits, 0–1000000. |
ServerID | No | Array of asset ids: return only systems containing one of them. | Digits, max 10 each. |
SystemID | No | Array of system ids to return. Must be an array. | Digits, max 10 each. |
UserID | No | Array of user ids, as ListUsers returns them for local and primary accounts (the account's row id): return only systems with one of these users on a member asset. | Alphanumeric, max 50 each. |
ComputerSoftware | No | Array of applications (Name or Name-.-Version) installed on a member asset. | Text, max 1024 each. |
issueNo | No | Array of issue numbers found on a member asset. | Digits, max 4 each. |
CVE | No | Array of CVE ids with an open finding on a member asset. | Letters, digits and hyphens, max 20 each. |
Search | No | Substring match on the system name. | Text, max 120. |
Organizations element carries its own filters.Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems?Skip=0&Count=25&IncludeOrgName=TRUE
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An object with a Query header array and a Systems array, ordered by system name.
| Attribute | Description | Example |
|---|---|---|
Query[].ResultCount | Number of rows in Systems. A number. | 7 |
Query[].TotalCount | Total matching rows before paging. A number. | 7 |
Systems[].SystemName | System name. Results are ordered by this field. | Payroll |
Systems[].SystemID | Numeric system id. A number. | 12 |
Systems[].SystemDescription | Full description, plain text. Empty when the system has none. | Payroll and HR processing |
Systems[].SystemDescriptionCut | The description truncated to 40 characters, with a trailing ellipsis when it was cut. | Payroll and HR processing |
Systems[].SystemTypeMask | 32-bit system-type bitmask as a string: 1000… general, 0100… Active Directory, 0010… Microsoft 365. | 10000000000000000000000000000000 |
Systems[].SystemTypeMaskHR | Human-readable form of the mask: General, Active Directory, Microsoft M365 or Unknown. | General |
Systems[].OrganizationName | Customer name when IncludeOrgName or IncludeDetails is "TRUE", otherwise empty. | Contoso AB |
Systems[].CGUID | Organization GUID. | 7a8b26724e508ade |
Systems[].SystemType | The system type, the same value as SystemTypeMaskHR. | General |
Systems[].SystemTypeID | Always the literal string Not implemented. | Not implemented |
Example response
{"Query":[{"ResultCount":1,"TotalCount":1}],"Systems":[
{"SystemName":"Payroll","SystemID":12,"SystemDescription":"Payroll and HR processing",
"SystemDescriptionCut":"Payroll and HR processing","SystemTypeID":"Not implemented",
"SystemType":"General","OrganizationName":"Contoso AB",
"SystemTypeMask":"10000000000000000000000000000000","SystemTypeMaskHR":"General",
"CGUID":"7a8b26724e508ade"}
]}
{"Systems":["No System information was found."]} and no Query object.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | A user-token call sent neither CGuid nor Organizations. |
Invalid count range. | Count was out of range. |
Invalid skip range. | Skip was out of range. |
You have selected too many … for this query. | A filter cap was exceeded; see Multi-organization queries. |
Request is malformed. | SystemID was not an array. |
No organizations specified. | An Organizations element had no OrgName. |
User does not have permission to list systems for this customer. | The caller lacks Read on a requested organization. |
UserID filter value is the local account's row id, as ListUsers now returns it (it used to be the user name followed by the asset's ServerGuid). Filters accept a single value as well as an array, and query-string values are URL-decoded. SystemType carries the system type (as SystemTypeMaskHR); it was always Not implemented. No field is null: a missing description or type mask is an empty string. A new CVE filter narrows the list to what an open vulnerability touches.ListSystemsForReport
A variant of ListSystems for the report pages: multi-organization only, with the same response fields.
v1 alias: POST https://api.moleant.com/discover/ListSystemsForReport/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Organizations | Yes | Array of organization objects; see Multi-organization queries. | |
IncludeOrgName | No | "TRUE" fills OrganizationName. | Case-sensitive. |
IncludeDetails | No | "TRUE" also fills OrganizationName. | Case-sensitive. |
Skip | No | Rows to skip. Applied only together with Count. | Digits, 0–1000000. |
Count | No | Rows to return. Applied only together with Skip. | Digits, 0–1000000. |
Organizations element may carry Search (substring match on the system name) and the filters of ListSystems; ComputerSoftware matches name and version (Name-.-Version, or the name alone for an empty version).Example request
POST https://api.moleant.com/v2/reports/systems
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Organizations":[{"OrgName":"7a8b26724e508ade","ServerID":["38"]},{"OrgName":"4f0e9b2ac1d37e55"}]}
Response
An object with a Query header array and a Systems array.
| Attribute | Description | Example |
|---|---|---|
Query[].ResultCount | Number of rows in Systems. A number. | 7 |
Query[].TotalCount | Total matching rows before paging. A number. | 7 |
Systems[].SystemName | System name. Results are ordered by this field. | Payroll |
Systems[].SystemID | Numeric system id. A number. | 12 |
Systems[].SystemDescription | Full description, plain text. Empty when the system has none. | Payroll and HR processing |
Systems[].SystemDescriptionCut | The description truncated to 40 characters, with a trailing ellipsis when it was cut. | Payroll and HR processing |
Systems[].SystemTypeMask | 32-bit system-type bitmask as a string; see ListSystems. | 10000000000000000000000000000000 |
Systems[].SystemTypeMaskHR | Human-readable form of the mask: General, Active Directory, Microsoft M365 or Unknown. | General |
Systems[].SystemType | The system type, the same value as SystemTypeMaskHR. | General |
Systems[].OrganizationName | Customer name when requested, otherwise empty. | Contoso AB |
Systems[].CGUID | Organization GUID. | 7a8b26724e508ade |
Systems[].SystemTypeID | Always Not implemented. | Not implemented |
Example response
{"Query":[{"ResultCount":1,"TotalCount":1}],"Systems":[
{"SystemName":"Payroll","SystemID":12,"SystemDescription":"Payroll and HR processing",
"SystemDescriptionCut":"Payroll and HR processing","SystemTypeID":"Not implemented",
"SystemType":"General","OrganizationName":"",
"SystemTypeMask":"10000000000000000000000000000000","SystemTypeMaskHR":"General",
"CGUID":"7a8b26724e508ade"}
]}
{"Systems":["No System information was found."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Invalid count range. | Count was out of range. |
Invalid skip range. | Skip was out of range. |
You have selected too many … for this query. | A filter cap was exceeded. |
Request is malformed. | SystemID was not an array. |
User does not have permission to list one or more systems specified for this call. | The caller lacks Read on a requested organization. |
No organizations specified. | Organizations was missing, or an element had no OrgName. |
SystemDescriptionCut, SystemTypeMask and SystemTypeMaskHR were added, and SystemType carries the system type instead of Not implemented. OrganizationName is "" rather than null when the name is not requested. No field is null: a missing description or type mask is an empty string. A new CVE filter narrows the list to what an open vulnerability touches.ListSystemDetails
Returns the descriptive fields of one system.
v1 alias: POST https://api.moleant.com/discover/ListSystemDetails/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Ignored with a key. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12
X-Api-Key: c9c42981ebf50a4749c2
Response
A SystemDetails array with one element.
| Attribute | Description | Example |
|---|---|---|
SystemDetails[].status | OK on success. Check it: the empty result uses the same array. | OK |
SystemDetails[].systemname | System name. | Payroll |
SystemDetails[].systemdescription | Description, plain text. | Payroll and HR processing |
SystemDetails[].systemPermissionSetting | Free-text permission notes. | |
SystemDetails[].systemVerification | Free-text verification notes. | |
SystemDetails[].systemBackupRestore | Free-text backup and restore notes. | |
SystemDetails[].systemother | Other notes; set with Other in ModifySystemDetails. | |
SystemDetails[].SystemTypeMask | System-type bitmask; see ListSystems. | 01000000000000000000000000000000 |
SystemDetails[].DomainDNSRoot | AD domain of an Active Directory system, otherwise empty. | corp.example.com |
SystemDetails[].DomainObjectGUID | Object GUID of that domain. | 5b1e... |
Example response
{"SystemDetails":[
{"status":"OK","systemname":"Payroll","systemdescription":"Payroll and HR processing",
"systemPermissionSetting":"","systemVerification":"","systemBackupRestore":"",
"systemother":"","SystemTypeMask":"10000000000000000000000000000000",
"DomainDNSRoot":"","DomainObjectGUID":""}
]}
{"SystemDetails":[{"status":"No SystemDetails was found for this system."}]} — an object, not a string, so tell the two apart by status. This is also the answer for a system id that does not exist.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
System ID missing or invalid. | SystemID was missing or not numeric. |
User does not have permission to get system details. | The caller lacks Read. |
AddSystem
Creates an empty system and logs the event.
v1 alias: POST https://api.moleant.com/discover/AddSystem/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemName | Yes | Name of the new system. | Text, max 255. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"SystemName":"Payroll"}
Response
A status message. On success the subcode is Successfully add the system. (sic). The new SystemID is returned in the status message.
SystemID for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
SystemName invalid. | SystemName was missing or too long. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to change the system data for this customer. | The caller lacks Write. |
Cannot add empty system. | The name was blank. |
System could not be created. | The write failed. |
ModifySystemDetails
Updates a system's name, description and other notes. Only the fields you send are changed.
v1 alias: POST https://api.moleant.com/discover/ModifySystemDetails/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Hostname | No | The new system name — despite the field name. | Text, max 255. Must not be blank. |
Description | No | New description. | Text, max 4096. |
Other | No | New other notes (systemother). | Text, max 4096. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Hostname":"Payroll 2","Description":"Payroll and HR processing"}
Response
A status message. On success the subcode is Successfully modified data to the system..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
SystemID invalid. | SystemID was missing or not numeric. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to change the system data for this customer. | The caller lacks Write. |
System does not exist and cannot be modified. | No system has that id. |
SystemName cannot be empty. | Hostname was blank. |
Failed to modify the system. | The write failed. |
DeleteSystem
Deletes a system together with its attachments, licences and log entries other than those classed as System Event. For a Microsoft 365 system it also removes the stored tenant and licence data, and for an Active Directory system the stored directory data of its domain. Member assets are not deleted.
v1 alias: POST https://api.moleant.com/discover/DeleteSystem/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully deleted the system..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
SystemID missing or invalid. | SystemID was missing or too long. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to change the system data for this customer. | The caller lacks Write. |
System does not exist. | No system has that id. |
System could not be deleted. | The delete failed. |
ListServersInSystem
Lists the assets that are members of a system, the assets that are not, or all assets.
v1 alias: POST https://api.moleant.com/discover/ListServersInSystem/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
ServerList | Yes | Members, Nonmembers or Both (all assets, regardless of membership). | Case-sensitive. |
SystemID | Yes | Path segment. Numeric system id. Required unless ServerList is Both. | Digits, max 10. |
ServerID | No | Ignored, except that it satisfies the presence check when SystemID is missing. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/assets
X-Api-Key: c9c42981ebf50a4749c2
Response
A Servers array. Which fields carry values depends on ServerList.
| Attribute | Description | Example |
|---|---|---|
Servers[].ServerID | Numeric asset id. A number. | 38 |
Servers[].Description | Asset-card description; empty for Nonmembers. | Primary file server |
Servers[].Environment | Environment id, a number — Members only, otherwise an empty string. | 2 |
Servers[].EnvironmentName | Environment name — Members only. | Production |
Servers[].EnvironmentDescription | Environment description — Members only. | |
Servers[].Hostname | Asset hostname. | SRV-FILE01 |
Example response
{"Servers":[
{"ServerID":38,"Description":"Primary file server","Environment":2,
"EnvironmentName":"Production","EnvironmentDescription":"","Hostname":"SRV-FILE01"}
]}
{"Servers":[]} — an empty array, not a placeholder.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
ServerList is missing or invalid. | ServerList was missing or not one of the three values. |
SystemID and ServerID is invalid or missing.. | Neither id was sent and ServerList is not Both. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to list servers for this system. | The caller lacks Read. |
AddServerToSystem
Adds an asset to a system. AddSystemToServer does the same from the asset's side.
v1 alias: POST https://api.moleant.com/discover/AddServerToSystem/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
ServerID | Yes | Path segment. Numeric asset id. | Digits, max 10. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/assets/38
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully added the server to the system.. If the asset is already a member, the call succeeds with Server already present in system. No change was made.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
ServerID is missing or invalid. | ServerID was missing or not numeric. |
SystemID invalid. | SystemID was missing or not numeric. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to server to the system for this customer. | The caller lacks Write. |
System does not exist. | No system has that id. |
Server does not exist and cannot be added. | No asset has that id. |
Failed to add server to system. | The write failed. |
RemoveServerFromSystem
Removes an asset's membership of a system. RemoveSystemFromServer does the same from the asset's side.
v1 alias: POST https://api.moleant.com/discover/RemoveServerFromSystem/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
ServerID | Yes | Path segment. Numeric asset id. | Digits, max 10. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/assets/38
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully removed the server from the system.. If the asset was not a member, the call succeeds with Server not present in system. No change was made.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
ServerID is missing or invalid. | ServerID was missing or not numeric. |
SystemID invalid. | SystemID was missing or not numeric. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to server to the system for this customer. | The caller lacks Write. |
Server does not exist and cannot be removed. | No asset has that id. |
Failed to remove the server from the system. | The delete failed. |
ListSystemsForServer
Lists the systems an asset is a member of, the systems it is not in, or all systems.
v1 alias: POST https://api.moleant.com/discover/ListSystemsForServer/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
ServerID | Yes | Path segment. Numeric asset id. Required unless ServerList is Both. | Digits, max 10. |
ServerList | Yes | Members, Nonmembers or Both (all systems). | Case-sensitive. |
SystemID | No | Ignored. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/assets/38/systems
X-Api-Key: c9c42981ebf50a4749c2
Response
A Systems array.
| Attribute | Description | Example |
|---|---|---|
Systems[].SystemID | Numeric system id. A number. | 12 |
Systems[].SystemDescription | Description, plain text. | Payroll and HR processing |
Systems[].SystemName | System name. | Payroll |
Example response
{"Systems":[{"SystemID":12,"SystemDescription":"Payroll and HR processing","SystemName":"Payroll"}]}
{"Systems":["No system member information was found for this server."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
ServerList is missing or invalid. | ServerList was missing. |
SystemList is missing or invalid. | ServerList was not one of the three values (sic). |
User does not have permission to list systems for this server. | The caller lacks Read. |
AddSystemToServer
Identical to AddServerToSystem — same fields, same messages — for use from the asset view.
v1 alias: POST https://api.moleant.com/discover/AddSystemToServer/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
ServerID | Yes | Path segment. Numeric asset id. | Digits, max 10. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/assets/38/systems/12
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully added the server to the system., or Server already present in system. No change was made.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
ServerID is missing or invalid. | ServerID was missing or not numeric. |
SystemID invalid. | SystemID was missing or not numeric. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to server to the system for this customer. | The caller lacks Write. |
System does not exist. | No system has that id. |
Server does not exist and cannot be added. | No asset has that id. |
Failed to add server to system. | The write failed. |
RemoveSystemFromServer
Identical to RemoveServerFromSystem, for use from the asset view.
v1 alias: POST https://api.moleant.com/discover/RemoveSystemFromServer/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
ServerID | Yes | Path segment. Numeric asset id. | Digits, max 10. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/assets/38/systems/12
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully removed the server from the system., or Server not present in system. No change was made.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
ServerID is missing or invalid. | ServerID was missing or not numeric. |
SystemID invalid. | SystemID was missing or not numeric. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to server to the system for this customer. | The caller lacks Write. |
Server does not exist and cannot be removed. | No asset has that id. |
Failed to remove the server from the system. | The delete failed. |
System licences
Licence records attached to a system.
ListSystemLicenseTypes
Returns the global list of licence types used by LicModel: a reference list of seven types (Per user, Per device, Per core, Per server, Subscription, Site licence, Other), the same for every organization.
v1 alias: POST https://api.moleant.com/discover/ListSystemLicenseTypes/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | No | Ignored. | |
SystemID | No | Ignored. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/licensetypes
X-Api-Key: c9c42981ebf50a4749c2
Response
A SystemLicenseTypes array.
| Attribute | Description | Example |
|---|---|---|
SystemLicenseTypes[].LicenseType | Licence type id, 1 to 7. Send it as LicModel. | 4 |
SystemLicenseTypes[].LicenseDescription | Display name. | Per server |
Example response
{"SystemLicenseTypes":[{"LicenseType":1,"LicenseDescription":"Per user"},{"LicenseType":2,"LicenseDescription":"Per device"},{"LicenseType":3,"LicenseDescription":"Per core"},{"LicenseType":4,"LicenseDescription":"Per server"},{"LicenseType":5,"LicenseDescription":"Subscription"},{"LicenseType":6,"LicenseDescription":"Site licence"},{"LicenseType":7,"LicenseDescription":"Other"}]}
{"SystemLicenseTypes":["No licensetypes were found for this system."]}.Failures are the common failures only.
ListSystemLicenses
Lists a system's licence records, newest first.
v1 alias: POST https://api.moleant.com/discover/ListSystemLicenses/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/licenses
X-Api-Key: c9c42981ebf50a4749c2
Response
A SystemLicenses array.
| Attribute | Description | Example |
|---|---|---|
SystemLicenses[].LicenseDescription | Display name of the licence type. | Per server |
SystemLicenses[].LicenseModel | Licence model of the type. | Server |
SystemLicenses[].LicName | Licence name. | Payroll Server 2026 |
SystemLicenses[].LicKey | Licence key. | XXXXX-XXXXX |
SystemLicenses[].guid | Licence GUID. | b7f0... |
SystemLicenses[].LicExp | Expiry date. | 2027-01-31 |
Example response
{"SystemLicenses":[
{"LicenseDescription":"Per server","LicenseModel":"Server","LicName":"Payroll Server 2026",
"LicKey":"XXXXX-XXXXX","guid":"b7f0...","LicExp":"2027-01-31"}
]}
{"SystemLicenses":["No licenses were found for this system."]}.Failures are the common failures only.
AddSystemLicense
Adds a licence record to a system.
v1 alias: POST https://api.moleant.com/discover/AddSystemLicense/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
LicModel | Yes | Licence type id, LicenseType from ListSystemLicenseTypes. | Digits, max 3. |
LicName | Yes | Licence name. | Text, max 255. |
LicKey | Yes | Licence key. | Text, max 255. |
LicExp | Yes | Expiry date. | Date, max 60. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/licenses
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"LicModel":"2","LicName":"Payroll Server 2026","LicKey":"XXXXX-XXXXX","LicExp":"2027-01-31"}
Response
A status message. On success the subcode is Successfully added system license entry..
guid for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
LicModel invalid or empty. | LicModel was missing or not numeric. |
LicName invalid or empty. | LicName was missing. |
LicKey invalid or empty. | LicKey was missing. |
LicExp invalid or empty. | LicExp was missing or not a date. |
User does not have permission to add system license data for this customer. | The caller lacks Write. |
SystemID missing or invalid. | SystemID was missing or not numeric. |
System does not exist. | No system of this organization has that id. |
SystemID missing or invalid. and System does not exist. are new failures. Earlier versions stored the licence without looking.ModifySystemLicense
Updates a licence record. Only the fields you send are changed; at least one is required.
v1 alias: POST https://api.moleant.com/discover/ModifySystemLicense/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
guid | Yes | Path segment. Licence GUID. | Alphanumeric, max 50. |
LicModel | No | New licence type id. | Digits, max 3. |
LicName | No | New licence name. | Text, max 255. |
LicKey | No | New licence key. | Text, max 255. |
LicExp | No | New expiry date. | Date, max 60. |
SystemID | Yes | Path segment. Ignored. | Digits, max 10. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/licenses/b7f0...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"LicExp":"2028-01-31"}
Response
A status message. On success the subcode is Successfully modified system license entry..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
User does not have permission to add system license data for this customer. | The caller lacks Write. |
The licensed software does not exist. | No licence has that GUID. |
All necessary fields are empty. Modification failed. | No field to change was sent. |
Failed to modify License. | The write failed. |
DeleteSystemLicense
Deletes a licence record. The call succeeds even when no record has that GUID.
v1 alias: POST https://api.moleant.com/discover/DeleteSystemLicense/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
guid | Yes | Path segment. Licence GUID, SystemLicenses[].guid. | Hex, max 50. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/licenses/b7f0...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully deleted system license entry..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
User does not have permission to deleted system license data for this customer. | The caller lacks Write. |
RACI tasks
Responsibility assignments for a system. Each role names a person in the address book or a vendor.
ListOrganizationRACI
Lists the RACI tasks of every system of the organization with the system each belongs to, in the order of the systems' names. It shows where a person, a vendor or a department/team is named, for example before deleting them.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/raci
X-Api-Key: c9c42981ebf50a4749c2
Response
A RACI array.
| Attribute | Description | Example |
|---|---|---|
RACI[].guid | Task GUID. | a90c... |
RACI[].SystemID / SystemName | The system of the task. SystemID is a number. | 12 / Payroll |
RACI[].task | The task. | Monthly payroll run |
RACI[].Responsible / Accountable / Consulted / Informant | GUIDs of people in the address book, of vendors or of departments/teams, or empty. | e41f... / 3fd1... / / |
RACI[].Notes | Notes. |
Example response
{"RACI":[{"guid":"a90c...","SystemID":12,"SystemName":"Payroll","task":"Monthly payroll run","Responsible":"e41f...",
"Accountable":"3fd1...","Consulted":"","Informant":"","Notes":""}]}
{"RACI":["No RACI information was found for this organization."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to list RACI for this customer. | The caller lacks Read. |
ListRACITasks
Lists the RACI tasks of a system.
v1 alias: POST https://api.moleant.com/discover/ListRACITasks/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/raci
X-Api-Key: c9c42981ebf50a4749c2
Response
A RACI array.
| Attribute | Description | Example |
|---|---|---|
RACI[].guid | Task GUID. | a90c... |
RACI[].task | The task. | Monthly payroll run |
RACI[].Responsible / Accountable / Consulted / Informant | GUIDs of people in the address book, of vendors or of departments/teams, or empty. | e41f... / 77b2... / / |
RACI[].Notes | Notes. |
Example response
{"RACI":[{"guid":"a90c...","Responsible":"e41f...","Accountable":"77b2...","Consulted":"",
"task":"Monthly payroll run","Informant":"","Notes":""}]}
{"RACI":["No RACI information was found for this system."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
SystemID invalid. | SystemID was missing or not numeric. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to list RACI for this customer. | The caller lacks Read. |
AddRACITask
Adds a task to a system's RACI matrix and returns its GUID. At least one of R, A, C and I is required; a role that is left out or empty is stored empty.
v1 alias: POST https://api.moleant.com/discover/AddRACITask/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Task | Yes | The task. | Text, max 250. |
R | No | Responsible: the Guid of a person, a vendor or a department/team of the organization. | Text, max 250. Must exist when sent. |
A | No | Accountable. | As R. |
C | No | Consulted. | As R. |
I | No | Informed. | As R. |
N | No | Notes. | Text, max 2500. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/raci
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Task":"Monthly payroll run","R":"e41f...","A":"77b2..."}
Response
A status message. On success it carries the new task's GUID as an extra field:
guid for the new record.{ "message": "Success", "subcode": "RACI task was added.", "submessage": "None", "guid": "a90c..." }
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Task not specified or invalid. | Task was missing. |
SystemID invalid. | SystemID was missing or not numeric. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to add RACI to this customer. | The caller lacks Write. |
The system selected for RACI does not exist | No system has that id. |
You most specify one of the following: r,a,c,i. | None of R, A, C, I was sent (sic). |
The user selected for responsible does not exist | R names no person, vendor or department of the organization. The same message exists for accountable (A), consulted (C) and informant (I). |
Failed to add RACI. | The write failed. |
You most specify one of the following: r,a,c,i.; it used to be stored with nobody in it.ModifyRACITask
Rewrites a RACI task, and can move it to another system. Every field is replaced, including Task and N: send the complete task. At least one of R, A, C and I is required.
v1 alias: POST https://api.moleant.com/discover/ModifyRACITask/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. The system the task belongs to afterwards. | Digits, max 10. |
guid | Yes | Path segment. Task GUID. | Hex, max 250. |
Task | No | The task. | Text, max 250. |
R | No | Responsible: the Guid of a person, a vendor or a department/team of the organization. | Text, max 250. Must exist when sent. |
A | No | Accountable. | As R. |
C | No | Consulted. | As R. |
I | No | Informed. | As R. |
N | No | Notes. | Text, max 2500. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/raci/a90c...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Task":"Monthly payroll run","R":"e41f...","A":"77b2...","I":"3d5e..."}
Response
A status message. On success the subcode is RACI task was modified..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You most specify one of the following: r,a,c,i. | None of R, A, C, I was sent (sic). |
SystemID invalid. | SystemID was missing or not numeric. |
Customer guid is missing or invalid. | CGuid was missing or malformed. |
guid is missing or invalid. | guid was missing or not hex. |
User does not have permission to modify RACI to this customer. | The caller lacks Write. |
This RACI-task does not exist. | No task has that GUID. |
The system selected for RACI does not exist | SystemID is not a system of this organization. |
The user selected for responsible does not exist | R names no person, vendor or department of the organization. The same message exists for accountable (A), consulted (C) and informant (I). |
Failed to modify RACI. | The write failed. |
SystemID of another organization fails with The system selected for RACI does not exist instead of moving the task to a system nobody can read. A role can name a department or team, and every role sent must exist in the organization; roles used to be stored without looking, so a role left over from a deleted person must be changed or left out for the task to save.DeleteRACITask
Deletes a task from a system's RACI matrix.
v1 alias: POST https://api.moleant.com/discover/DeleteRACITask/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
guid | Yes | Path segment. Task GUID. | Hex, max 250. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/raci/a90c...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is RACI task was deleted..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
SystemID invalid. | SystemID was missing or not numeric. |
Customer guid is missing or invalid. | CGuid was missing or malformed. |
guid is missing or invalid. | guid was missing or not hex. |
User does not have permission to delete RACI for this customer. | The caller lacks Write. |
This RACI-task does not exist. | No task has that GUID. |
Failed to delete RACI. | The delete failed. |
Assets
Assets (servers, workstations) are what Moleant Engine reports. The engine writes them; the API reads, edits the descriptive card, and deletes.
ListComputers
Lists the assets of one organization, with filters and paging. This handler also serves v2 assets, and the response is documented in detail there.
v1 alias: POST https://api.moleant.com/discover/ListComputers/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Ignored with a key. | Alphanumeric, max 50. |
IncludeDetails | No | "TRUE" adds the asset card: Description, DescriptionCut, Environment, EnvironmentName and OrganizationName. | Case-sensitive. |
CreateTotalCount | No | "1" computes TotalCount. | Digits, max 2. |
Search | No | Substring match on hostname. | Plain text, max 30. |
ServerID, SystemID, UserID, ComputerSoftware, issueNo | No | Filter arrays, as in a multi-organization query but at the top level. UserID values are the row ids ListUsers returns for local and primary accounts (Digits, max 10). | Arrays. |
Skip | No | Rows to skip. Applied only together with Count. | Digits, 0–1000000. |
Count | No | Rows to return. Applied only together with Skip. | Digits, 0–1000000. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/assets?IncludeDetails=TRUE&CreateTotalCount=1&Skip=0&Count=50
X-Api-Key: c9c42981ebf50a4749c2
Response
An object with a Query header array and a Computers array.
| Attribute | Description | Example |
|---|---|---|
Query[].ResultCount | Number of rows returned. A number. | 1 |
Query[].TotalCount | Unpaged total, or -1 when not computed. A number. | -1 |
Computers[].Hostname | Asset hostname. | SRV-FILE01 |
Computers[].ServerID | Numeric asset id. A number. | 38 |
Computers[].OperatingSystem | Reported operating system. | Windows Server 2022 Standard |
Computers[].DateRebooted | Last recorded reboot. | 2026-07-14 03:12:08 |
Computers[].DateCreated | When the asset record was created. | 2025-02-02 09:41:11 |
Computers[].Updated | When the asset last checked in. | 2026-08-18 22:05:53 |
Computers[].Description | Asset-card description. Empty unless IncludeDetails is "TRUE". | Primary file server |
Computers[].DescriptionCut | The description truncated to 40 characters. | Primary file server |
Computers[].Environment | Environment id from the asset card, as stored (a numeric string). Empty without details. | 2 |
Computers[].EnvironmentName | Environment name. Empty without details. | Production |
Computers[].OrganizationName | Customer name. Empty unless requested with IncludeDetails. | Contoso AB |
Computers[].CGUID | Organization GUID. | 7a8b26724e508ade |
Computers[].UserLoginName, Computers[].UserID | Placeholders, regenerated at random on every request. |
Example response
{"Query":[{"ResultCount":1,"TotalCount":42}],"Computers":[
{"Hostname":"SRV-FILE01","ServerID":38,"OperatingSystem":"Windows Server 2022 Standard",
"UserLoginName":"3f0c...","UserID":"a71b...","DateRebooted":"2026-07-14 03:12:08",
"DateCreated":"2025-02-02 09:41:11","Updated":"2026-08-18 22:05:53",
"Description":"Primary file server","DescriptionCut":"Primary file server","Environment":"2",
"EnvironmentName":"Production","OrganizationName":"Contoso AB","CGUID":"7a8b26724e508ade"}
]}
{"Computers":["No computer information was found."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to list computers for this customer. | The caller lacks Read. |
Invalid count range. | Count was out of range. |
Invalid skip range. | Skip was out of range. |
You have selected too many … for this query. | A filter cap was exceeded; see Multi-organization queries. |
UserID filter value is the local account's row id, as ListUsers now returns it (it used to be the user name followed by the asset's ServerGuid). ServerID values are numbered across organizations, and DateRebooted, DateCreated and Updated are UTC. Filters accept a single value as well as an array, and query-string values are URL-decoded. Query parameters of the v2 routes reach the API again: the rewrite rule had dropped them, so IncludeDetails, filters, paging and ?Key= were ignored on the server. With IncludeDetails, an asset whose card has no description still reports its Environment and EnvironmentName.ListServerDetails
Returns the inventory sections you ask for, for one asset. v2 assetdetails returns the same sections for every asset at once.
v1 alias: POST https://api.moleant.com/discover/ListServerDetails/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
ServerID | Yes | Path segment. Numeric asset id. | Digits, max 10. |
ServerDetailBasic, ServerDetailCertificates, ServerDetailRoles, ServerDetailCard, ServerDetailHardware, ServerDetailStorage, ServerDetailNetwork, ServerDetailCPU, ServerDetailMemory, ServerDetailShares, ServerDetailSoftware, ServerDetailServices, ServerDetailListeningPorts, ServerDetailLogins, ServerDetailGroups | At least one | Send "1" for each section to include. | Digits, max 2 each. |
ServerDetailPrimaryUser | No | "1" resolves the primary user inside ServerDetailBasic. | Digits, max 2. |
ServerDetailApplications | No | Accepted but produces no section; installed software is ServerDetailSoftware. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/assets/38?ServerDetailBasic=1&ServerDetailPrimaryUser=1&ServerDetailCard=1&ServerDetailStorage=1
X-Api-Key: c9c42981ebf50a4749c2
Response
An object with one array per requested section. A section with no data is []. Text reported by the agent is plain UTF-8, so a backslash arrives as \\ in the JSON, not as an entity. ServerDetailSoftware lists the applications the engine currently reports; an application that has disappeared from the reports is kept in the history but not listed.
| Attribute | Description | Example |
|---|---|---|
ServerDetailBasic | Identity and lifecycle: HostName, IPAddress, whenCardCreated (ISO 8601 in UTC, YYYY-MM-DDTHH:MM:SS+00:00), id (number), Memory (bytes, as a numeric string), operatingsystem, servicePrincipalName, operatingSystemServicePack, Vendor, SerialNumber, Updated, DateCreated, DateRebooted, PrimaryUserResolvedUser, PrimaryUser, PossibleDomains, guid. The primary-user fields are filled only when ServerDetailPrimaryUser is also "1"; PossibleDomains is then [["corp.example.com",…]] (nested), otherwise []. | |
ServerDetailCertificates | DNSNames, FriendlyNames, Oid, HasPrivateKey, NotAfter, NotBefore (Unix timestamps), SerialNumber, ThumbPrint, Subject, SubjectName. | |
ServerRoles | Installed roles: Name, InstallState, DisplayName. Requested with ServerDetailRoles. | |
ServerDetailCard | Description, EnvironmentDescription, AssetState (number), Environment (number). | |
ServerEnvironments | Sent with ServerDetailCard: the organization's environments, {EnvironmentID (number), EnvironmentName}. | |
AssetStates | Sent with ServerDetailCard: the asset states, {ID (number), State}. | |
ServerDetailHardware | Always an empty array. | |
ServerDetailStorage | MountPoint, FreeBytes, TotalBytes (numbers), FreePCT (number, one decimal). | |
ServerDetailNetwork | Name, MAC, IPAdresses (array of {IPaddress, Subnetmask}; note the spelling), DNS (array of {DNS}), Gateway. | |
ServerDetailCPU | Model, Speed, Cores (number). | |
ServerDetailMemory | PhysicalMemory, the same value as Memory. | |
ServerDetailShares | Share, Path. | |
ServerDetailSoftware | ApplicationName, Version, Publisher, InstallDate. | |
ServerDetailServices | Name, Displayname, StartType, Context. | |
ServerDetailListeningPorts | TCP only: LocalAddress, ListeningPort (number), PortType, IPVersion. | |
ServerDetailLogins | User — local accounts. | |
LastLoggedin | Sent with ServerDetailLogins: Name, Timestamp (Unix timestamp), newest first. | |
ServerDetailGroups | LocalGroupName. |
Example response
{"ServerDetailBasic":[{"HostName":"SRV-FILE01","IPAddress":"10.0.4.21",
"whenCardCreated":"2025-02-02T08:41:11+00:00","id":38,"Memory":"34359738368",
"operatingsystem":"Windows Server 2022 Standard","servicePrincipalName":"",
"operatingSystemServicePack":"","Vendor":"Dell Inc.","SerialNumber":"7XK2QP3",
"Updated":"2026-08-18 22:05:53","DateCreated":"2025-02-02 09:41:11",
"DateRebooted":"2026-07-14 03:12:08","PrimaryUserResolvedUser":"Ada Lovelace (alovelace)",
"PrimaryUser":"alovelace","PossibleDomains":[["corp.example.com"]],"guid":"b13f7d0e5a2c"}],
"ServerDetailCard":[{"Description":"Primary file server","EnvironmentDescription":"Production",
"AssetState":1,"Environment":2}],
"ServerEnvironments":[{"EnvironmentID":1,"EnvironmentName":"Test"},{"EnvironmentID":2,"EnvironmentName":"Production"}],
"AssetStates":[{"ID":1,"State":"In use"}],
"ServerDetailStorage":[{"MountPoint":"C:","FreeBytes":48318382080,"TotalBytes":137438953472,"FreePCT":35.2}]}
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
Server ID missing or invalid. | ServerID was missing or not numeric. |
No server details were specified. | No section flag was sent. |
No server details were enabled. | No section flag was "1". |
User does not have permission to get server details. | The caller lacks Read. |
Server does not exist. | No asset of this organization has that id. |
whenCardCreated is UTC (+00:00), as are Updated, DateCreated and DateRebooted. The asset card is part of the asset, so Server details does not exist. can no longer occur; Execution failed. cannot either. Text reported by the agent is plain, not entity-encoded, and a missing text value is "". ServerDetailSoftware leaves out applications the engine no longer reports.AllServerDetails
Returns the full inventory record — hardware, storage, network, software, services, certificates, logins and more — for every asset in the organization, in one response. For one asset use ListServerDetails.
?Key=)Request
Authentication: User token or API key. No parameters.
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/assetdetails
X-Api-Key: c9c42981ebf50a4749c2
Response
A bare JSON array — not an object — with one element per asset. Each element carries the sections below. Every section is an array, and a section with no data is an empty array []. An organization without assets returns [].
| Section | Contents |
|---|---|
ServerDetailBasic | Identity and lifecycle: HostName, IPAddress, whenCardCreated (ISO 8601), id (number), Memory (bytes, as a numeric string), operatingsystem, servicePrincipalName, operatingSystemServicePack, Vendor, SerialNumber, Updated, DateCreated, DateRebooted, PrimaryUserResolvedUser (GivenName SurName (Name)), PrimaryUser (SamAccountName), PossibleDomains, guid. |
ServerDetailCertificates | DNSNames, FriendlyNames, Oid, HasPrivateKey, NotAfter, NotBefore (both Unix timestamps), SerialNumber, ThumbPrint, Subject, SubjectName. |
ServerRoles | Installed roles only: Name, InstallState, DisplayName. |
ServerDetailCard | The editable card fields: Description, EnvironmentDescription, AssetState (number), Environment (number). These are what Modify Asset writes. |
ServerDetailHardware | Always an empty array — the section is queried but no fields are written to the response. Read hardware identity from ServerDetailBasic instead. |
ServerDetailStorage | One entry per volume: MountPoint, FreeBytes, TotalBytes (numbers), FreePCT (a number with one decimal). Ordered by mount point. |
ServerDetailNetwork | One entry per adapter: Name, MAC, IPAdresses (array of {IPaddress, Subnetmask}), DNS (array of {DNS}), Gateway. Note the spelling of IPAdresses. |
ServerDetailCPU | Model, Speed, Cores (number). |
ServerDetailMemory | PhysicalMemory — the same value as Memory in ServerDetailBasic. |
ServerDetailShares | Share, Path. |
ServerDetailSoftware | Installed applications: ApplicationName, Version, Publisher, InstallDate. |
ServerDetailServices | Name, Displayname, StartType, Context. |
ServerDetailListeningPorts | TCP ports only: LocalAddress, ListeningPort (number), PortType, IPVersion. |
ServerDetailLogins | User — local user accounts on the asset. |
LastLoggedin | Name, Timestamp (Unix timestamp). Newest first. |
ServerDetailGroups | LocalGroupName. |
PossibleDomains is a nested array: the list of AD domain names is itself wrapped in an outer array, so the value looks like [["corp.example.com","lab.example.com"]]. It is an empty array when the asset has no resolved primary user. There is no ServerDetailApplications section despite the flag of that name existing internally — installed software is under ServerDetailSoftware. Paths and other text reported by the agent are entity-encoded as described in Conventions, so a backslash arrives as \.Example response
[
{
"ServerDetailBasic":[{"HostName":"SRV-FILE01","IPAddress":"10.0.4.21",
"whenCardCreated":"2025-02-02T09:41:11+01:00","id":38,"Memory":"34359738368",
"operatingsystem":"Windows Server 2022 Standard","servicePrincipalName":"",
"operatingSystemServicePack":"","Vendor":"Dell Inc.","SerialNumber":"7XK2QP3",
"Updated":"2026-08-18 22:05:53","DateCreated":"2025-02-02 09:41:11",
"DateRebooted":"2026-07-14 03:12:08","PrimaryUserResolvedUser":"Ada Lovelace (alovelace)",
"PrimaryUser":"alovelace","PossibleDomains":[["corp.example.com"]],"guid":"b13f..."}],
"ServerDetailCertificates":[],
"ServerRoles":[{"Name":"FS-FileServer","InstallState":"Installed","DisplayName":"File Server"}],
"ServerDetailCard":[{"Description":"Primary file server","EnvironmentDescription":"Production",
"AssetState":1,"Environment":2}],
"ServerDetailHardware":[],
"ServerDetailStorage":[{"MountPoint":"C:","FreeBytes":48318382080,
"TotalBytes":137438953472,"FreePCT":35.2}],
"ServerDetailNetwork":[{"Name":"Ethernet0","MAC":"00:50:56:9A:11:22",
"IPAdresses":[{"IPaddress":"10.0.4.21","Subnetmask":"255.255.255.0"}],
"DNS":[{"DNS":"10.0.1.10"}],"Gateway":"10.0.4.1"}],
"ServerDetailCPU":[{"Model":"Intel Xeon Silver 4310","Speed":"2100","Cores":12}],
"ServerDetailMemory":[{"PhysicalMemory":"34359738368"}],
"ServerDetailShares":[{"Share":"Finance","Path":"D:\Shares\Finance"}],
"ServerDetailSoftware":[{"ApplicationName":"7-Zip","Version":"23.01",
"Publisher":"Igor Pavlov","InstallDate":"20250310"}],
"ServerDetailServices":[{"Name":"LanmanServer","Displayname":"Server",
"StartType":"Automatic","Context":"LocalSystem"}],
"ServerDetailListeningPorts":[{"LocalAddress":"0.0.0.0","ListeningPort":445,
"PortType":"TCP","IPVersion":"IPv4"}],
"ServerDetailLogins":[{"User":"Administrator"}],
"LastLoggedin":[{"Name":"alovelace","Timestamp":1786954442}],
"ServerDetailGroups":[{"LocalGroupName":"Administrators"}]
}
]
ModifyServerDetails
Updates the editable fields on an asset card: description, environment, asset state and primary user. Only the fields you send are touched. This handler also serves v2 PUT assets/<ServerID>.
v1 alias: POST https://api.moleant.com/discover/ModifyServerDetails/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Ignored with a key. | Alphanumeric, max 50. |
ServerID | Yes | Path segment. Numeric asset id. | Digits, max 10. |
Description | No | Free-text description. Creates the card row if it does not exist yet. | Text, max 4096. |
Environment | No | Environment id, from ServerEnvironments in ListServerDetails. | Digits, max 2. |
AssetState | No | Asset-state id, from AssetStates in ListServerDetails. Must be one of the listed states. | Digits, max 2. |
PrimaryUser | No | SamAccountName of the primary user. The user must exist in the organization's Active Directory data for Domain. | SamAccountName, max 250. Requires Domain. |
Domain | Conditional | Root DNS domain of PrimaryUser. Mandatory whenever PrimaryUser is sent. | DNS name, max 255. |
PrimaryUser replaces the asset's existing primary-user record and links the AD user to the asset. An empty PrimaryUser is a no-op, not a way to clear the assignment.Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/assets/38
X-Api-Key: c9c42981ebf50a4749c2
Content-Type: application/json
{"Environment":"2","AssetState":"1","PrimaryUser":"alovelace","Domain":"corp.example.com"}
Response
A status message. On success the subcode is Successfully modified the server details..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
ServerID invalid. | ServerID was missing or not numeric. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to delete the server data for this customer. | The caller lacks Write (sic: the message says delete). |
Asset does not exist and cannot be modified. | No asset has that id. |
When primary user is specified, the Domain must be included as well. | PrimaryUser was sent without Domain. |
The user does not exist in the specified Active Directory. | No AD user matches that SamAccountName in that domain. |
Failed to modify the server. | The write failed. |
A database error occurred while processing this request. | AssetState is not one of the asset states (the state is checked by the database). |
AssetState fails with a database error instead of being stored; the card is part of the asset now, so every asset has one and setting Environment or Description never creates an orphan row.DeleteServer
Permanently removes an asset and everything collected about it. This handler also serves v2 DELETE assets/<ServerID>.
System Event.v1 alias: POST https://api.moleant.com/discover/DeleteServer/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Ignored with a key. | Alphanumeric, max 50. |
ServerID | Yes | Path segment. Numeric asset id. | Digits, max 10. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/assets/38
X-Api-Key: c9c42981ebf50a4749c2
Response
A status message. On success the subcode is Successfully deleted the server..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
ServerID invalid. | ServerID was missing or not numeric. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to delete the server data for this customer. | The caller lacks Write. |
Server does not exist and cannot be modified. | No asset of this organization has that id. Also the answer when an API key of another organization names an asset it may not reach. |
Server could not be deleted. | The delete failed. |
Server does not exist and cannot be modified., as it always should have been; with per-organization ids the call used to be a silent no-op. Server KB links are deleted only within the caller's organization (an API key of another organization could delete them before). The deletion also removes the asset's system memberships, listening ports, issues, attribute values, entitlement links and stored files, and the asset card is looked up by asset id (it was looked up by the wrong column).Knowledge articles (files)
Files attached to an organization, a system or an asset. The file is kept in blob storage; the API stores its name, description and a download reference.
ListOrganizationKBs
Lists the files in the organization's knowledge base.
v1 alias: POST https://api.moleant.com/discover/ListOrganizationKBs/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/kbs
X-Api-Key: c9c42981ebf50a4749c2
Response
A Files array.
| Attribute | Description | Example |
|---|---|---|
Files[].FileName | Original file name. | network-diagram.pdf |
Files[].Icon | Icon name for the file type; kb.svg when none is known. | pdf.svg |
Files[].Description | Description, plain text. An empty string, never null, when the file has none. | Rack layout |
Files[].RandomNo | Storage id of the file. Pass it to downloadkb. | 3c1f9e0a7b... |
Files[].guid | Attachment GUID. Pass it to the matching Modify and Delete calls. | 9d2e41ab... |
Files[].FileLength | Size in bytes. A number. | 48213 |
Example response
{"Files":[
{"FileName":"network-diagram.pdf","Icon":"pdf.svg","Description":"Rack layout",
"RandomNo":"3c1f9e0a7b...","guid":"9d2e41ab...","FileLength":48213}
]}
{"Files":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to see the organization KBs. | The caller lacks Read. |
AddOrganizationKBs
Uploads a file to the organization's knowledge base. The file is stored in blob storage and listed by ListOrganizationKBs.
v1 alias: POST https://api.moleant.com/discover/AddOrganizationKBs/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Filename | Yes | File name, used for display and to pick the file type. | File name, max 241. The extension must be an allowed upload type. |
Description | No | Description of the file. May be empty or left out. | Text, max 4096. |
FileData | Yes | The file content, Base64-encoded. | Base64, max 16,777,216 characters. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/kbs
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Filename":"network-diagram.pdf","Description":"Rack layout","FileData":"JVBERi0xLjcK..."}
Response
A status message. On success the subcode is Upload was successful..
guid, RandomNo for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Filename missing or invalid. | Filename was missing or contained a forbidden character. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
Submitted file is too large, invalid or missing. | FileData was missing, too long or not Base64. |
Extension is not allowed for upload. | The file type is not on the allowed list. |
User does not have permission to upload to this organization. | The caller lacks Write. |
Failed to upload file. | Blob storage or the database write failed. |
Description is optional, as it always was for uploadkb.ModifyOrganizationKBs
Replaces the description of a file in the organization's knowledge base.
v1 alias: POST https://api.moleant.com/discover/ModifyOrganizationKBs/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
guid | Yes | Path segment. Attachment GUID, Files[].guid. | Hex, max 250. |
Description | Yes | New description. | Text, max 250. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/kbs/9d2e41ab...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Description":"Rack layout, 2026"}
Response
A status message. On success the subcode is Successful modified KB..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid is missing or invalid. | CGuid was missing or malformed. |
guid is missing or invalid. | guid was missing or not hex. |
User does not have permission to modify KBs for this customer. | The caller lacks Write. |
Failed to modify KB. | The write failed. |
DeleteOrganizationKBs
Deletes a file from the organization's knowledge base, including the stored blob.
v1 alias: POST https://api.moleant.com/discover/DeleteOrganizationKBs/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
guid | Yes | Path segment. Attachment GUID, Files[].guid from ListOrganizationKBs. | Hex, max 250. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/kbs/9d2e41ab...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully deleted the organization KB..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid is missing or invalid. | CGuid was missing or malformed. |
guid is missing or invalid. | guid was missing or not hex. |
User does not have permission to delete system kb for this organization. | The caller lacks Write. |
Failed to delete Organization KB. | The attachment row could not be removed. |
Failed to delete System KBs | The stored file could not be removed. |
ListSystemKBs
Lists the files in a system's knowledge base, including SBOM and VEX files stored by the uploads.
v1 alias: POST https://api.moleant.com/discover/ListSystemKBs/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/kbs
X-Api-Key: c9c42981ebf50a4749c2
Response
A Files array.
| Attribute | Description | Example |
|---|---|---|
Files[].FileName | Original file name. | network-diagram.pdf |
Files[].Icon | Icon name for the file type; kb.svg when none is known. | pdf.svg |
Files[].Description | Description, plain text. An empty string, never null, when the file has none. | Rack layout |
Files[].RandomNo | Storage id of the file. Pass it to downloadkb. | 3c1f9e0a7b... |
Files[].guid | Attachment GUID. Pass it to the matching Modify and Delete calls. | 9d2e41ab... |
Files[].FileLength | Size in bytes. A number. | 48213 |
Example response
{"Files":[
{"FileName":"runbook.docx","Icon":"docx.svg","Description":"Restore procedure",
"RandomNo":"3c1f9e0a7b...","guid":"9d2e41ab...","FileLength":184320}
]}
{"Files":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
System ID missing or invalid. | SystemID was missing or not numeric. |
User does not have permission to download the kb-list. | The caller lacks Read. |
AddSystemKBs
Uploads a file to a system's knowledge base.
v1 alias: POST https://api.moleant.com/discover/AddSystemKBs/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Filename | Yes | File name, used for display and to pick the file type. | File name, max 241. The extension must be an allowed upload type. |
Description | No | Description of the file. May be empty or left out. | Text, max 4096. |
FileData | Yes | The file content, Base64-encoded. | Base64, max 16,777,216 characters. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/kbs
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Filename":"runbook.docx","Description":"Restore procedure","FileData":"UEsDBBQABgAIAAAAIQ..."}
Response
A status message. On success the subcode is Upload was successful..
guid, RandomNo for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Filename missing or invalid. | Filename was missing or contained a forbidden character. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
Submitted file is too large, invalid or missing. | FileData was missing, too long or not Base64. |
Submitted SystemID is too large, invalid or missing. | SystemID was missing or not numeric, or is not a system of this organization. |
Extension is not allowed for upload. | The file type is not on the allowed list. |
User does not have permission to upload to this customer. | The caller lacks Write. |
Failed to upload file. | Blob storage or the database write failed. |
SystemID that is not one of the organization's systems fails with Submitted SystemID is too large, invalid or missing. instead of storing an orphan file link. Description is optional, as it always was for uploadkb.ModifySystemKBs
Replaces the description of a file in a system's knowledge base.
v1 alias: POST https://api.moleant.com/discover/ModifySystemKBs/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
guid | Yes | Path segment. Attachment GUID, Files[].guid. | Hex, max 250. |
Description | Yes | New description. | Text, max 250. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/kbs/9d2e41ab...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Description":"Restore procedure, v2"}
Response
A status message. On success the subcode is Successful modified KB..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
SystemID invalid. | SystemID was missing or not numeric. |
Customer guid is missing or invalid. | CGuid was missing or malformed. |
guid is missing or invalid. | guid was missing or not hex. |
User does not have permission to modify KBs for this customer. | The caller lacks Write. |
Failed to modify KB. | The write failed. |
DeleteSystemKBs
Deletes a file from a system's knowledge base, including the stored blob.
v1 alias: POST https://api.moleant.com/discover/DeleteSystemKBs/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
guid | Yes | Path segment. Attachment GUID, Files[].guid from ListSystemKBs. | Hex, max 250. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/kbs/9d2e41ab...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully deleted the system KB..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
SystemID invalid. | SystemID was missing or not numeric. |
Customer guid is missing or invalid. | CGuid was missing or malformed. |
guid is missing or invalid. | guid was missing or not hex. |
User does not have permission to delete system kb for this customer. | The caller lacks Write. |
Failed to delete System KB. | The attachment row could not be removed. |
Failed to remove data from table | A related row could not be removed. |
Failed to delete System KBs | The stored file could not be removed. |
listkbs
Lists the files attached to an asset.
v1 alias: POST https://api.moleant.com/discover/listkbs/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
ServerID | Yes | Path segment. Numeric asset id. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/assets/38/kbs
X-Api-Key: c9c42981ebf50a4749c2
Response
A Files array.
| Attribute | Description | Example |
|---|---|---|
Files[].FileName | Original file name. | network-diagram.pdf |
Files[].Icon | Icon name for the file type. | pdf.svg |
Files[].Description | Description, plain text. An empty string, never null, when the file has none. | Rack layout |
Files[].RandomNo | Storage id of the file. Pass it to downloadkb. | 3c1f9e0a7b... |
Files[].guid | Attachment GUID. Pass it to the matching Modify and Delete calls. | 9d2e41ab... |
Files[].FileLength | Size in bytes. A number. | 48213 |
Example response
{"Files":[
{"FileName":"warranty.pdf","Icon":"pdf.svg","Description":"Warranty certificate",
"RandomNo":"3c1f9e0a7b...","guid":"9d2e41ab...","FileLength":48213}
]}
{"Files":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
Server ID missing or invalid. | ServerID was missing or not numeric. |
User does not have permission to download the kb-list. | The caller lacks Read. |
uploadkb
Uploads a file and attaches it to an asset.
v1 alias: POST https://api.moleant.com/discover/uploadkb/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
ServerID | Yes | Path segment. Numeric asset id. | Digits, max 10. |
Filename | Yes | File name, used for display and to pick the file type. | File name, max 241. The extension must be an allowed upload type. |
Description | No | Description of the file. | Text, max 4096. |
FileData | Yes | The file content, Base64-encoded. | Base64, max 16,777,216 characters. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/assets/38/kbs
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Filename":"warranty.pdf","Description":"Warranty certificate","FileData":"JVBERi0xLjcK..."}
Response
A status message. On success the subcode is Upload was successful..
guid, RandomNo for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Filename missing or invalid. | Filename was missing or contained a forbidden character. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
Submitted file is too large, invalid or missing. | FileData was missing, too long or not Base64. |
Submitted serverid is too large, invalid or missing. | ServerID was missing or not numeric, or is not an asset of this organization. |
Extension is not allowed for upload. | The file type is not on the allowed list. |
User does not have permission to upload to this customer. | The caller lacks Write. |
Failed to upload file. | Blob storage or the file record failed. |
2Failed to upload file. | The file could not be linked to the asset (sic). |
ServerID that is not one of the organization's assets fails with Submitted serverid is too large, invalid or missing. instead of storing an orphan file link.ModifyServerKBs
Replaces the description of a file attached to an asset.
v1 alias: POST https://api.moleant.com/discover/ModifyServerKBs/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
ServerID | Yes | Path segment. Numeric asset id. | Digits, max 10. |
guid | Yes | Path segment. Attachment GUID, Files[].guid. | Hex, max 250. |
Description | Yes | New description. | Text, max 250. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/assets/38/kbs/9d2e41ab...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Description":"Warranty certificate"}
Response
A status message. On success the subcode is Successful modified KB..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
ServerID invalid. | ServerID was missing or not numeric. |
Customer guid is missing or invalid. | CGuid was missing or malformed. |
guid is missing or invalid. | guid was missing or not hex. |
User does not have permission to modify KBs for this customer. | The caller lacks Write. |
Failed to modify KB. | The write failed. |
DeleteServerKBs
Deletes a file attached to an asset, including the stored blob.
v1 alias: POST https://api.moleant.com/discover/DeleteServerKBs/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
ServerID | Yes | Path segment. Numeric asset id. | Digits, max 10. |
guid | Yes | Path segment. Attachment GUID, Files[].guid from listkbs. | Hex, max 250. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/assets/38/kbs/9d2e41ab...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully deleted the server KB..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
ServerID invalid. | ServerID was missing or not numeric. |
Customer guid is missing or invalid. | CGuid was missing or malformed. |
guid is missing or invalid. | guid was missing or not hex. |
User does not have permission to delete system kb for this customer. | The caller lacks Write. |
Failed to delete Server KB. | The attachment row could not be removed. |
Failed to delete System KBs | The stored file could not be removed. |
downloadkb
Streams an attached file — of an organization, a system or an asset — from blob storage.
v1 alias: POST https://api.moleant.com/discover/downloadkb/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
RandomNo | Yes | Path segment. Storage id of the file, Files[].RandomNo from a listing. | Hex, max 40. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/files/3c1f9e0a7b...
X-Api-Key: c9c42981ebf50a4749c2
Response
On success the body is the file's raw bytes, not JSON. The response still declares Content-Type: application/json and carries no file name, so save the body under the FileName from the listing. Failures are status messages.
RandomNo is not detected: the body is then blob storage's XML error document, at HTTP 200.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
File identifier is missing or invalid. | RandomNo was missing or not hex. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to download from this customer. | The caller lacks Read. |
Transport error contacting blob storage. | Blob storage could not be reached; submessage has the transport error. |
Content-Disposition file name.PopulateKBCarousel
Returns up to five of the most recently uploaded images (.jpg, .jpeg, .png, .gif) attached to a system, an asset or the organization, with their content inline.
v1 alias: POST https://api.moleant.com/discover/PopulateKBCarousel/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Return the system's images. Takes precedence over ServerID. | Digits, max 10. |
ServerID | Yes | Path segment. Return the asset's images. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/kbs/images?ServerID=38
X-Api-Key: c9c42981ebf50a4749c2
Response
A Files array, newest first.
| Attribute | Description | Example |
|---|---|---|
Files[].FileName | Original file name. | rack-front.jpg |
Files[].Description | Description, plain text. An empty string, never null, when the file has none. | Front of rack A |
Files[].RandomNo | Storage id of the file. | 3c1f9e0a7b... |
Files[].FileData | The image, Base64-encoded. | /9j/4AAQSkZJRgABAQ... |
Files[].FileLength | Size in bytes. A number. | 284113 |
Example response
{"Files":[{"FileName":"rack-front.jpg","Description":"Front of rack A","RandomNo":"3c1f9e0a7b...",
"FileData":"/9j/4AAQSkZJRgABAQ...","FileLength":284113}]}
{"Files":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
User does not have permission to get imagedata from this customer. | The caller lacks Read. |
Reports
Queries across one or more organizations with filters and paging; see Multi-organization queries. The per-organization GET forms take the same filters as query parameters.
ListAssets
Lists assets across one or more organizations through a multi-organization query. ListComputers is the single-organization equivalent.
v1 alias: POST https://api.moleant.com/discover/ListAssets/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Organizations | Yes | Array of organization objects. Search matches the hostname. A UserID filter value is the row id ListUsers returns for a local or primary account. | |
IncludeDetails | No | "TRUE" adds the organization name, like IncludeOrgName. The asset card fields are always returned. | Case-sensitive. |
IncludeOrgName | No | "TRUE" adds the organization name. | Case-sensitive. |
Skip | No | Rows to skip. Applied only together with Count. | Digits, 0–1000000. |
Count | No | Rows to return. Applied only together with Skip. | Digits, 0–1000000. |
Example request
POST https://api.moleant.com/v2/reports/assets
X-Api-Key: c9c42981ebf50a4749c2
Content-Type: application/json
{"Organizations":[{"OrgName":"7a8b26724e508ade","ComputerSoftware":["7-Zip-.-23.01"]}],"IncludeOrgName":"TRUE"}
Response
An object with a Query header array and an Assets array.
| Attribute | Description | Example |
|---|---|---|
Query[].ResultCount | Number of rows returned. A number. | 1 |
Query[].TotalCount | Unpaged total, or -1 when not computed. A number. | -1 |
Assets[].Hostname | Asset hostname. | SRV-FILE01 |
Assets[].ServerID | Numeric asset id. A number. | 38 |
Assets[].OperatingSystem | Reported operating system. | Windows Server 2022 Standard |
Assets[].DateRebooted | Last recorded reboot. Empty when none is recorded. | 2026-07-14 03:12:08 |
Assets[].DateCreated | When the asset record was created. Empty when the agent did not report it. | 2025-02-02 09:41:11 |
Assets[].Updated | When the asset last checked in. Empty when it never has. | 2026-08-18 22:05:53 |
Assets[].Description | Asset-card description. Empty when the card has none. | Primary file server |
Assets[].DescriptionCut | The description truncated to 40 characters. | Primary file server |
Assets[].Environment | Environment id from the asset card, as stored (a numeric string). Empty when the asset has no card. | 2 |
Assets[].EnvironmentName | Environment name. Empty when the asset has no card. | Production |
Assets[].OrganizationName | Customer name. Empty unless requested with IncludeOrgName or IncludeDetails. | Contoso AB |
Assets[].CGUID | Organization GUID. | 7a8b26724e508ade |
Assets[].UserLoginName, Assets[].UserID | Placeholders, regenerated at random on every request. |
Example response
{"Query":[{"ResultCount":1,"TotalCount":1}],"Assets":[
{"Hostname":"SRV-FILE01","ServerID":38,"OperatingSystem":"Windows Server 2022 Standard",
"UserLoginName":"3f0c...","UserID":"a71b...","DateRebooted":"2026-07-14 03:12:08",
"DateCreated":"2025-02-02 09:41:11","Updated":"2026-08-18 22:05:53","Description":"Primary file server",
"DescriptionCut":"Primary file server","Environment":"1","EnvironmentName":"Production",
"OrganizationName":"Contoso AB","CGUID":"7a8b26724e508ade"}
]}
{"Assets":["No asset information was found."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Invalid count range. | Count was out of range. |
Invalid skip range. | Skip was out of range. |
You have selected too many … for this query. | A filter cap was exceeded; see Multi-organization queries. |
No organizations specified. | Organizations was missing, or an element had no OrgName. |
UserID filter value is the local account's row id, as ListUsers now returns it (it used to be the user name followed by the asset's ServerGuid). ServerID values are numbered across organizations, and DateRebooted, DateCreated and Updated are UTC. Every asset carries the fields of ListComputers with IncludeDetails: DescriptionCut, Environment and EnvironmentName were added, and the asset card (Description included) is filled whether or not IncludeDetails is sent; IncludeDetails now only adds the organization name. No field is null: a value that is missing (no reboot or check-in recorded, no asset card) is an empty string. The response keeps its own Assets array. A new CVE filter narrows the list to what an open vulnerability touches.ListSoftware
Lists installed applications with their installation counts, across one or more organizations, most installed first. An application counts as installed on an asset while the engine keeps reporting it; one that has disappeared from the asset's reports is left out.
v1 alias: POST https://api.moleant.com/discover/ListSoftware/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Organizations | Yes | Array of organization objects. Search matches the application name or publisher. A UserID filter value is the row id ListUsers returns for a local or primary account. | |
StackSoftware | No | "1" groups by application and publisher, ignoring versions. "0" (default) groups by application and version. | Digits, max 2. |
CreateTotalCount | No | "1" computes TotalCount. | Digits, max 2. |
Skip | No | Rows to skip. Applied only together with Count. | Digits, 0–1000000. |
Count | No | Rows to return. Applied only together with Skip. | Digits, 0–1000000. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/software?StackSoftware=1&Skip=0&Count=100
X-Api-Key: c9c42981ebf50a4749c2
Response
An object with a Query header array and a Software array.
| Attribute | Description | Example |
|---|---|---|
Query[].ResultCount / TotalCount | Rows returned, and the unpaged total or -1. Numbers. | 1 / -1 |
Software[].Name | Application name. | 7-Zip |
Software[].Vendor | Publisher. | Igor Pavlov |
Software[].StackSoftware | The grouping used, 0 or 1. A number. | 1 |
Software[].Version | Version; - when grouped by publisher. | - |
Software[].NumberOfInstalls | Installations found. A number. | 14 |
Software[].CGUID | Organization GUID. | 7a8b26724e508ade |
Example response
{"Query":[{"ResultCount":1,"TotalCount":-1}],"Software":[
{"Name":"7-Zip","Vendor":"Igor Pavlov","StackSoftware":1,"Version":"-","NumberOfInstalls":14,
"CGUID":"7a8b26724e508ade"}
]}
{"Software":["No Software information was found."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Invalid count range. | Count was out of range. |
Invalid skip range. | Skip was out of range. |
You have selected too many … for this query. | A filter cap was exceeded; see Multi-organization queries. |
No organizations specified. | Organizations was missing, or an element had no OrgName. |
UserID filter value is the local account's row id, as ListUsers now returns it. Name and Vendor are plain text. Applications with the same install count are listed by name and version. A new CVE filter narrows the list to what an open vulnerability touches.ListIssues
Lists the issues Moleant Discover has found on assets, across one or more organizations.
v1 alias: POST https://api.moleant.com/discover/ListIssues/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Organizations | Yes | Array of organization objects. Search matches the issue text. A UserID filter value is the row id ListUsers returns for a local or primary account. | |
Skip | No | Rows to skip. Applied only together with Count. | Digits, 0–1000000. |
Count | No | Rows to return. Applied only together with Skip. | Digits, 0–1000000. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/issues
X-Api-Key: c9c42981ebf50a4749c2
Response
An object with a Query header array and an Issues array.
| Attribute | Description | Example |
|---|---|---|
Query[].ResultCount / TotalCount | Rows returned, and the unpaged total. Numbers. | 1 / 1 |
Issues[].IssueNo | Issue number. A number. | 17 |
Issues[].IssueText | Description of the issue. | Disk C: has less than 10% free space |
Issues[].issueSeverity | Severity code. | 2 |
Issues[].SystemID | System concerned, or 0. A number. | 0 |
Issues[].ServerID | Asset concerned, or 0. A number. | 38 |
Issues[].CGUID | Organization GUID. | 7a8b26724e508ade |
Example response
{"Query":[{"ResultCount":1,"TotalCount":1}],"Issues":[
{"IssueNo":17,"IssueText":"Disk C: has less than 10% free space","issueSeverity":2,
"SystemID":0,"ServerID":38,"CGUID":"7a8b26724e508ade"}
]}
{"Issues":["No issue information was found."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
No organizations are set. | Organizations was missing. |
Invalid count range. | Count was out of range. |
Invalid skip range. | Skip was out of range. |
You have selected too many … for this query. | A filter cap was exceeded; see Multi-organization queries. |
User does not have permission to list computers for this customer. | The caller lacks Read on a requested organization. |
No organizations specified. | An element had no OrgName. |
UserID filter value is the local account's row id, as ListUsers now returns it (it used to be the user name followed by the asset's ServerGuid). SystemID and ServerID are numbered across organizations. A new CVE filter narrows the list to what an open vulnerability touches.ListUsers
Lists the local user accounts found on assets, plus the organization's Active Directory users when no filter is set, across one or more organizations.
v1 alias: POST https://api.moleant.com/discover/ListUsers/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Organizations | Yes | Array of organization objects; see Multi-organization queries. Search matches the account name. | |
Skip | No | Rows to skip. Applied only together with Count. | Digits, 0–1000000. |
Count | No | Rows to return. Applied only together with Skip. | Digits, 0–1000000. |
UserType | No | Read, never used. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/users
X-Api-Key: c9c42981ebf50a4749c2
Response
An object with a Query header array and a Users array, ordered by host name.
| Attribute | Description | Example |
|---|---|---|
Query[].ResultCount / TotalCount | Rows returned, and the unpaged total. Numbers. | 1 / 1 |
Users[].UserGivenName | Given name; the account name for a local account. | Ada |
Users[].UserSurName | Surname. Empty when not known. | Lovelace |
Users[].UserLoginName | Account name. | alovelace |
Users[].UserID | User id: for a local or primary account the integer row id of the account, as text ("7"); for an AD user SamAccountName:domain. The local-account ids are what the UserID filters take. | alovelace:corp.example.com |
Users[].UserDomain | The asset's host name for a local account, the domain for an AD user. | corp.example.com |
Users[].UserEmail | E-mail address. Empty when not known. | ada@contoso.com |
Users[].AccountType | Local user, Domain user or Primary user. | Domain user |
Users[].CGUID | Organization GUID. | 7a8b26724e508ade |
Users[].UserAddress, UserDepartment, UserLastLogin | Placeholders: the account name with the field name appended. | alovelaceUserAddress |
Users[].ServerID | Placeholder: repeats UserID (as text), not an asset id. |
Example response
{"Query":[{"ResultCount":2,"TotalCount":2}],"Users":[
{"UserGivenName":"Administrator","UserSurName":"","UserLoginName":"Administrator",
"UserID":"7","UserDomain":"SRV-FILE01",
"UserAddress":"AdministratorUserAddress","UserEmail":"",
"UserDepartment":"AdministratorUserDepartment","UserLastLogin":"AdministratorUserLastLogon",
"AccountType":"Local user","ServerID":"7","CGUID":"7a8b26724e508ade"},
{"UserGivenName":"Ada","UserSurName":"Lovelace","UserLoginName":"alovelace",
"UserID":"alovelace:corp.example.com","UserDomain":"corp.example.com",
"UserAddress":"alovelaceUserAddress","UserEmail":"ada@contoso.com",
"UserDepartment":"alovelaceUserDepartment","UserLastLogin":"alovelaceUserLastLogon",
"AccountType":"Domain user","ServerID":"alovelace:corp.example.com","CGUID":"7a8b26724e508ade"}
]}
{"Users":["No user information was found."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Invalid count range. | Count was out of range. |
Invalid skip range. | Skip was out of range. |
You have selected too many … for this query. | A filter cap was exceeded. |
User does not have permission for this organization. | The caller lacks Read on a requested organization. |
No organizations specified. | Organizations was missing, or an element had no OrgName. |
UserID of a local or primary account is the integer row id of the account, returned as text ("7"); it used to be the user name followed by the asset's ServerGuid. The UserID filters of ListComputers, ListSystems, ListAssets, ListSoftware, ListIssues and this operation take that id. Active Directory users keep SamAccountName:domain. Users on the same host are listed by login name. No field is null: a missing name, e-mail address or domain is an empty string. A new CVE filter narrows the list to what an open vulnerability touches.ListVulnerabilitiesForReport
Lists the open vulnerabilities across one or more organizations through a multi-organization query, one row for each CVE in each organization with the number of assets that have it and the applications it is in. The highest rating comes first, in the order of ListVulnerabilities (the severity, then the score), and among equal ratings the most affected assets. The organizations are sorted together, where the other reports list one after the other. A finding that has been reviewed or resolved does not count. ListVulnerabilities lists the individual findings of one organization.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Organizations | No | Array of organization objects, needed with a user token. Search matches the CVE id, the application name and the description. With an API key the report covers the key's organization, and the filters are fields of the body. | |
Skip | No | Rows to skip. Applied only together with Count. | Digits, 0–1000000. |
Count | No | Rows to return. Applied only together with Skip. | Digits, 0–1000000. |
Example request
POST https://api.moleant.com/v2/reports/vulnerabilities
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Organizations":[{"OrgName":"7a8b26724e508ade"},{"OrgName":"b31c55e0a97d4f12"}],"Skip":"0","Count":"100"}
Response
An object with a Query header array and a Vulnerabilities array.
| Attribute | Description | Example |
|---|---|---|
Query[].ResultCount / TotalCount | Rows returned, and the unpaged total. Numbers. | 1 / 128 |
Vulnerabilities[].CVE | The CVE id. | CVE-2025-0411 |
Vulnerabilities[].Severity | CRITICAL, HIGH, MEDIUM, LOW or NONE, or empty while the CVE has no score. | HIGH |
Vulnerabilities[].Score | The CVSS base score, or null while the CVE has none. A number. | 7.8 |
Vulnerabilities[].Kev | Whether the CVE is in the CISA catalog of known exploited vulnerabilities. A boolean. | true |
Vulnerabilities[].Description | The first 300 characters of the CVE's description. | 7-Zip Mark-of-the-Web bypass |
Vulnerabilities[].AffectedAssets | The number of assets with an open finding of the CVE, among those the filters leave. An asset counts once, however many of its applications have the CVE. A number. | 12 |
Vulnerabilities[].Applications[].ApplicationName / Version | The applications that have the CVE, among those the filters leave, in order of name. An application of the same version on several assets is listed once. | 7-Zip / 24.08 |
Vulnerabilities[].Published | The day the CVE was published, or empty. | 2025-01-15 |
Vulnerabilities[].OrganizationName | Organization name. | Contoso AB |
Vulnerabilities[].CGUID | Organization GUID. | 7a8b26724e508ade |
Example response
{"Query":[{"ResultCount":1,"TotalCount":128}],"Vulnerabilities":[
{"CVE":"CVE-2025-0411","Severity":"HIGH","Score":7.8,"Kev":true,"Description":"7-Zip Mark-of-the-Web bypass",
"Published":"2025-01-15","AffectedAssets":12,"Applications":[{"ApplicationName":"7-Zip","Version":"24.08"}],
"OrganizationName":"Contoso AB","CGUID":"7a8b26724e508ade"}
]}
{"Vulnerabilities":["No vulnerability information was found."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
No organizations specified. | A user token sent no Organizations, or an element had no OrgName. |
Invalid count range. | Count was out of range. |
Invalid skip range. | Skip was out of range. |
You have selected too many … for this query. | A filter cap was exceeded; see Multi-organization queries. |
User does not have permission to list vulnerabilities. | The caller lacks Read on a requested organization. |
SBOM and VEX
Software bills of materials (CycloneDX XML) and vulnerability exploitability documents (CycloneDX JSON or OpenVEX) attached to a system.
ListSbom
Returns the SBOM documents recorded for a system and the components they declare. This handler also serves v2 sbom.
v1 alias: POST https://api.moleant.com/discover/ListSbom/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Required with a user token; ignored with a key. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Filename, Description | No | Read, never used. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/sbom
X-Api-Key: c9c42981ebf50a4749c2
Response
Two arrays.
| Attribute | Description | Example |
|---|---|---|
SBOM[].Name | Name of the SBOM document. | Acme Product |
SBOM[].Version | Document version. Capitalised V. | 2.4.0 |
SBOMFiles[].Name | Component name. | openssl |
SBOMFiles[].version | Component version. Lower-case v. | 3.0.13 |
SBOMFiles[].Purl | Package URL of the component. | pkg:generic/openssl@3.0.13 |
Example response
{"SBOM":[{"Version":"2.4.0","Name":"Acme Product"}],
"SBOMFiles":[{"version":"3.0.13","Name":"openssl","Purl":"pkg:generic/openssl@3.0.13"}]}
A system without an SBOM answers HTTP 200 with the placeholder {"SBOM":["This system does not have any SBOM data uploaded."],"SBOMFiles":[]}.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
User's CGud is invalid or empty. | CGuid was missing or malformed (user token only). |
User does not have permission to list SBOM for this customer. | The caller lacks Read. |
UploadSBOM
Uploads a CycloneDX SBOM in XML. The system's component list is replaced by the file's components, the document is added to its SBOM list, and the file is stored as a system attachment.
v1 alias: POST https://api.moleant.com/discover/UploadSBOM/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Filename | Yes | File name; the extension must be an allowed upload type. | File name, max 241. |
Description | No | Description of the attachment. | Text, max 4096. |
FileData | Yes | The XML document, Base64-encoded. | Base64, max 16,777,216 characters. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/sbom
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Filename":"acme-sbom.xml","FileData":"PD94bWwgdmVyc2lvbj0iMS4wIj8+..."}
Response
A status message. On success the subcode is Upload was successful..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Filename missing or invalid. | Filename was missing or contained a forbidden character. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
Submitted file is too large, invalid or missing. | FileData was missing, too long or not Base64. |
Submitted SystemID is too large, invalid or missing. | SystemID was missing or not numeric, or is not a system of this organization. |
Extension is not allowed for upload. | The file type is not on the allowed list. |
User does not have permission to upload to this customer. | The caller lacks Write. |
The uploaded SBOM file is not valid XML. | The decoded file did not parse as XML. |
Failed to upload file. | Blob storage or the database write failed. |
An unexpected error occurred while processing this request. | Any other error. |
SystemID that is not one of the organization's systems fails with Submitted SystemID is too large, invalid or missing.; the old API wrote the SBOM against a system nobody could read, or failed with a database error.ListVex
Returns the system's VEX data as a CycloneDX-style document. This handler also serves v2 vex, where every field is described; DownloadVex returns the same document as a file.
v1 alias: POST https://api.moleant.com/discover/ListVex/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Required with a user token; ignored with a key. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Filename, Description | No | Read, never used. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/vex
X-Api-Key: c9c42981ebf50a4749c2
Response
The document. version and ratings[].score are numbers; a missing score or justification is null.
| Attribute | Description | Example |
|---|---|---|
bomFormat, specVersion, version | Document header. | CycloneDX, 1.4, 1 |
metadata.timestamp, metadata.component.{name, version, type, bom-ref} | The subject component. | Acme Product |
vulnerabilities[] | id, source{name, url}, comments[]{cve, comment, created_at}, ratings[]{source, score, severity, method, vector}, analysis{state, justification, response[], detail}, affects[]{ref}. |
Example response
{
"bomFormat":"CycloneDX","specVersion":"1.4","version":1,
"metadata":{"timestamp":"2026-01-13T00:00:00Z",
"component":{"name":"Acme Product","version":"2.4.0","type":"application","bom-ref":"acme-product"}},
"vulnerabilities":[
{"id":"CVE-2025-12345",
"source":{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12345"},
"comments":[{"cve":"CVE-2025-12345","comment":"Reviewed 2026-02-01","created_at":"2026-02-01 10:02:11"}],
"ratings":[{"source":{"name":"NVD","url":"https://nvd.nist.gov/"},"score":7.5,"severity":"high",
"method":"CVSSv31","vector":"AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}],
"analysis":{"state":"not_affected","justification":"code_not_reachable",
"response":["will_not_fix"],"detail":"Component ships disabled."},
"affects":[{"ref":"acme-product"}]}
]
}
A system without VEX data answers HTTP 200 with the placeholder {"vulnerabilities":["This system does not have any VEX data uploaded."]}: check the type of the first element, as with every list.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
User's CGud is invalid or empty. | CGuid was missing or malformed (user token only). |
User does not have permission to list SBOM for this customer. | The caller lacks Read. |
UploadVEX
Uploads a VEX document in JSON, either CycloneDX (bomFormat CycloneDX, spec 1.4 or later) or OpenVEX (an @context on openvex.dev). Its metadata, vulnerabilities, ratings, responses and affected components become the system's VEX data, and the file is stored as a system attachment.
v1 alias: POST https://api.moleant.com/discover/UploadVEX/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Filename | Yes | File name; the extension must be an allowed upload type. | File name, max 241. |
Description | No | Description of the attachment. | Text, max 4096. |
FileData | Yes | The JSON document, Base64-encoded. | Base64, max 16,777,216 characters. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/vex
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Filename":"acme-vex.json","FileData":"eyJib21Gb3JtYXQiOiJDeWNsb25lRFgiLC..."}
Response
A status message. On success the subcode is Upload was successful..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Filename missing or invalid. | Filename was missing or contained a forbidden character. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
Submitted file is too large, invalid or missing. | FileData was missing, too long or not Base64. |
Submitted SystemID is too large, invalid or missing. | SystemID was missing or not numeric, or is not a system of this organization. |
Extension is not allowed for upload. | The file type is not on the allowed list. |
User does not have permission to upload to this customer. | The caller lacks Write. |
The uploaded VEX/SBOM file is not valid JSON. | The decoded file did not parse as JSON. |
The uploaded VEX/SBOM file is invalid: reason | The document failed validation, e.g. Missing required CycloneDX field: specVersion. |
Failed to remove data from table | The previous VEX data could not be deleted. |
Failed to upload file. | Blob storage or the database write failed. |
An unexpected error occurred while processing this request. | Any other error. |
SystemID that is not one of the organization's systems fails with Submitted SystemID is too large, invalid or missing.; the old API wrote the VEX data against a system nobody could read, or failed with a database error.ModifyVex
Updates the analysis of one vulnerability in a system's VEX data, and can add an analyst comment. Only the fields you send are changed.
v1 alias: POST https://api.moleant.com/discover/ModifyVex/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Ignored with a key. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
id | Yes | Path segment. The vulnerability id, e.g. a CVE. | Text, max 20. |
State | No | New analysis state. | Text, max 30. |
Justification | No | New justification. Also accepted as justification. | Text, max 30. |
Response | No | A response or an array of responses; replaces all existing responses. Also accepted as responses. | Text, max 30 each. |
Detail | No | New analysis detail. Also accepted as detail. | Text, max 4096. |
Comment | No | A comment to append to the vulnerability's comments. Also accepted as comments. | Text, max 4096. |
Filename, Description | No | Read, never used. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/vex/CVE-2025-12345
X-Api-Key: c9c42981ebf50a4749c2
Content-Type: application/json
{"State":"not_affected","Justification":"code_not_reachable","Response":["will_not_fix"],"Comment":"Reviewed by the platform team"}
Response
A status message. On success the subcode is VEX entry updated successfully..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
User's CGud is invalid or empty. | CGuid was missing or malformed (user token only). |
User does not have permission to modify VEX for this customer. | The caller lacks Write. |
Vulnerability ID is invalid or empty. | id was missing. |
Submitted SystemID is too large, invalid or missing. | SystemID was missing or not numeric. |
No matching vulnerability found for this system. | The system has no vulnerability with that id. |
justification, responses, detail and comments are accepted as aliases. A comment that repeats the vulnerability's latest comment word for word is not added again.DownloadVex
Returns the same document as ListVex, as a file download.
v1 alias: POST https://api.moleant.com/discover/DownloadVex/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. Numeric system id. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/12/vex/download
X-Api-Key: c9c42981ebf50a4749c2
Response
On success the body is the VEX document, exactly as ListVex returns it, with these headers:
Content-Type: application/json
Content-Disposition: attachment; filename="vex_data_<CGuid>_<SystemID>_<YYYY-MM-DD_HH-MM-SS>.json"
Cache-Control: no-cache, must-revalidate
Failures are status messages.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to download from this customer. | The caller lacks Read. |
This system does not have any VEX data uploaded. | No VEX data for the system. Answered with HTTP 404. |
Microsoft 365
A Microsoft 365 system is bound to an app registration in the customer's tenant; licence data is read from Microsoft Graph on demand.
AddM365App
Checks the app registration by requesting a Graph token with it, then creates a Microsoft 365 system named after the tenant, stores the app's settings and logs the event.
v1 alias: POST https://api.moleant.com/discover/AddM365App/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Hex, max 100. |
TenantName | Yes | Name for the tenant; becomes the system name. | Plain text, max 450. |
TenantID | Yes | Directory (tenant) id. | GUID, max 300. |
AppID | Yes | Application (client) id of the app registration. | GUID, max 100. |
ClientSecret | Yes | Client secret of the app registration. | Tolerant text, max 300. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/m365
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"TenantName":"Contoso Tenant","TenantID":"72f988bf-86f1-41af-91ab-2d7cd011db47","AppID":"0f3c8a2d-5b6e-4c1f-9a7d-8e2b1c4d5f60","ClientSecret":"Vn8Q~..."}
Response
A status message. On success the subcode is Successfully created the Microsoft 365 system..
SystemID for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
User does not have permission to add appss for this organization. | The caller lacks Write (sic). |
Either of ClientSecret, AppID, TenantID or TenantName are missing. | A field was missing. submessage: AddM365App failure. |
CGuid missing | CGuid was missing. submessage: AddM365App failure. |
CGuid incorrect | CGuid was malformed. submessage: AddM365App failure. |
ClientSecret wrong. | Microsoft refused the credentials. |
System could not be created. | The write failed. |
SystemID is returned.ListM365Licenses
Returns the stored tenant summary, licence subscriptions and a sample of user licences of a Microsoft 365 system, as last fetched by Populatem365Licenses.
v1 alias: POST https://api.moleant.com/discover/ListM365Licenses/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SystemID | Yes | Path segment. The Microsoft 365 system. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/19/m365
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An object with three arrays.
| Attribute | Description | Example |
|---|---|---|
AzureGeneralStats[].NumberOfUsers | Users in the tenant. A number. | 287 |
AzureGeneralStats[].TenantName | Tenant name. | Contoso Tenant |
AzureGeneralStats[].NumberOfGAs | Always 0 today. A number. | 0 |
AzureGeneralStats[].LastSync | Unix time of the last fetch. | 1786954442 |
AzureGeneralStats[].LastSyncHR | The same time as Y-m-d h:i:s in UTC (a 12-hour clock without AM/PM). | 2026-08-18 08:14:02 |
AzureGeneralStats[].AcceptedMailDomains | Comma-separated verified domains. | contoso.com,contoso.se |
AzureTenantLicenses[] | One per enabled subscription: capabilityStatus, consumedUnits, enabled, suspended, warning (numbers), id, skuId, skuPartNumber, appliesTo. | |
AzureUserLicenses[] | The first ten user-licence assignments: CGuid, UserGuid, LicenseGuid, LicensName (sic), UserName. |
Example response
{"AzureGeneralStats":[{"NumberOfUsers":287,"TenantName":"Contoso Tenant","NumberOfGAs":0,
"LastSync":"1786954442","LastSyncHR":"2026-08-18 08:14:02","AcceptedMailDomains":"contoso.com,contoso.se"}],
"AzureTenantLicenses":[{"capabilityStatus":"Enabled","consumedUnits":287,"id":"72f9..._05e9...",
"enabled":300,"suspended":0,"warning":0,"skuId":"05e9a617-0261-4cee-bb44-138d3ef5d965",
"skuPartNumber":"SPE_E3","appliesTo":"User"}],
"AzureUserLicenses":[{"CGuid":"7a8b26724e508ade","UserGuid":"2c7d...","LicenseGuid":"05e9...",
"LicensName":"SPE_E3","UserName":"ada@contoso.com"}]}
{"AzureGeneralStats":["No Azure licensing informationwas found for this system."]} when there is no tenant summary, or {"AzureTenantLicenses":["No Azure licensing informationwas found for this system."]} when there are no enabled subscriptions. Note the missing space in informationwas.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
SystemID missing or invalid. | SystemID was missing or not numeric. |
User does not have permission to list the M365 licenses for this organization. | The caller lacks Read. |
LastSyncHR is UTC; LastSync keeps its meaning as a Unix epoch. A missing text value is "".Populatem365Licenses
Fetches the tenant's users, domains and subscriptions from Microsoft Graph and replaces the stored data of the Microsoft 365 system. The request is authorised by the app registration's client secret: it must obtain a Graph token together with the settings stored by AddM365App.
v1 alias: POST https://api.moleant.com/discover/Populatem365Licenses/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Hex, max 100. |
SystemID | Yes | Path segment. The Microsoft 365 system. | Digits, max 10. |
ClientSecret | Yes | Client secret of the app registration. | Tolerant text, max 200. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/systems/19/m365/sync
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"ClientSecret":"Vn8Q~..."}
Response
A status message. On success the subcode is Population was successful..
Failures:
subcode | Cause |
|---|---|
CGuid is missing. | CGuid was missing or not hex. |
SystemID is missing. | SystemID was missing. |
ClientSecret is missing. | ClientSecret was missing. |
SystemID does not exist. | The system is not a connected Microsoft 365 system. |
ClientSecret wrong. | Microsoft refused the credentials. |
Could not retrieve data from Microsoft Graph. | A Graph request failed; submessage has the transport error. |
A database error occurred while processing this request. | A database statement failed. |
$count query, and licence names come from the tenant's subscribed SKUs where known.Entitlements
Licences the organization holds, compared with the installations the engines found.
ListEntitlements
Lists the organization's entitlements with their links, installation counts and compliance verdict, followed by its Microsoft 365 licence pools. This handler also serves v2 entitlements, where every field and verdict is described.
v1 alias: POST https://api.moleant.com/Entitlements/ListEntitlements/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Ignored with a key. | Alphanumeric, max 120. |
SystemID | Yes | Path segment. Only asset entitlements that reach this system; also drops the Microsoft 365 pools. | Digits, max 10. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/entitlements
X-Api-Key: c9c42981ebf50a4749c2
Response
An Entitlements array; see v2 entitlements for every field.
| Attribute | Description | Example |
|---|---|---|
Entitlements[].Guid, EntitlementName, SerialKey, ExpiryDate, LogDate, LogTime, Type, Comments | The entitlement's own fields. ExpiryDate is a Unix timestamp in a string; LogDate/LogTime are the same moment split. | |
Entitlements[].Licenses, TotalInstalls, HighestWinningNumber | Numbers. | 25, 2, 2 |
Entitlements[].EntitlementAssets / EntitlementSoftware | Links: {ServerID} or {ApplicationName, Version, Installs}. | |
Entitlements[].HasFile, FileName | HasFile is the string "true" or "false". | true |
Entitlements[].Alert | Compliance verdict. | Over-licensed (178%) |
Example response
{"Entitlements":[
{"Guid":"c30a...","EntitlementName":"Adobe Acrobat Pro","SerialKey":"XXXXX-XXXXX-XXXXX",
"ExpiryDate":"1801353600","LogDate":"2027-01-31","LogTime":"00:00:00","Type":"Assets",
"Licenses":25,"Comments":"Renewed via reseller","EntitlementAssets":[{"ServerID":38},{"ServerID":41}],
"HasFile":"true","FileName":"acrobat-licence.pdf","TotalInstalls":2,"HighestWinningNumber":2,
"Alert":"Over-licensed (1250%)"}
]}
{"Entitlements":["No Entitlements were found."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
User does not have permission to list computers for this customer. | The caller lacks Read (sic). |
SystemID, an Assets entitlement is listed when one of its assets is a member of that system; Software entitlements are not system-bound and are left out, as before.AddEntitlement
Creates an entitlement, links it to assets or applications, and stores an optional licence document.
v1 alias: POST https://api.moleant.com/Entitlements/AddEntitlement/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Type | No | Assets or Software. Decides how ListEntitlements filters by system. | Text, max 20. |
EntitlementName | Yes | Name of the entitlement. | Text, max 255. |
Licenses | Yes | Number of licences owned. Must be at least 1. | Digits. |
EntitlementAssets | Conditional | For an asset entitlement: array of {"ServerID": "<id>"}. Every asset must exist. | Digits, max 10 each. |
EntitlementFiles | Conditional | For a software entitlement: array of {"ApplicationName": "…", "Version": "…"}; leave Version empty to match every version. Every application must be installed somewhere. Used only when EntitlementAssets is absent. | Text, max 450 each. |
SerialKey | No | Serial or licence key. | Text, max 300. |
ExpiryDate | No | Expiry as a Unix timestamp in seconds. | Digits. |
trackVersion | No | Whether the entitlement is bound to exact versions. | Text, max 255. |
Notes | No | Comments; returned as Comments. | Text, max 4096. |
FileName | No | Name of a licence document to attach. | The extension must be an allowed upload type. |
FileData | No | The document, Base64-encoded. One document per entitlement. | Base64. |
Subject | No | Read, never used. |
Example request
POST https://api.moleant.com/v2/organizations/7a8b26724e508ade/entitlements
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"EntitlementName":"Adobe Acrobat Pro","Type":"Assets","Licenses":"25","EntitlementAssets":[{"ServerID":"38"},{"ServerID":"41"}],"SerialKey":"XXXXX-XXXXX-XXXXX","ExpiryDate":"1801353600"}
Response
A status message. On success the subcode is Entitlement uploaded successfully..
Guid for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
User does not have permission to add entitlement. | The caller lacks Write. |
EntitlementName and Licenses must be specified. | A required field was missing, or Licenses was 0. |
Too many assets specified. | EntitlementAssets exceeded the cap. |
One or more assets specified were empty. | An element had no ServerID. |
One of the assets specified does not exist. | No asset has that id. |
Too many files specified. | EntitlementFiles exceeded the cap. |
One or more files specified were empty. | An element had no ApplicationName. |
One of the softwares specified does not exist. | No asset has that application (and version) installed. |
Filename missing or invalid. | FileName was invalid. |
Extension is not allowed for upload. | The document type is not on the allowed list. |
Failed to upload file. | The document could not be stored. |
Guid is returned.ModifyEntitlement
Rewrites an entitlement. It is a full replacement: the name, licences, serial key, expiry and comments are all overwritten, and every asset and application link is removed and rebuilt from the request. The type cannot be changed.
v1 alias: POST https://api.moleant.com/Entitlements/ModifyEntitlement/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Guid | Yes | Path segment. The entitlement. | Hex, max 150. |
EntitlementName | Yes | Name of the entitlement. | Text, max 255. |
Licenses | Yes | Number of licences owned. Must be at least 1. | Digits. |
EntitlementAssets | Conditional | For an asset entitlement: array of {"ServerID": "<id>"}. Every asset must exist. | Digits, max 10 each. |
EntitlementFiles | Conditional | For a software entitlement: array of {"ApplicationName": "…", "Version": "…"}; leave Version empty to match every version. Every application must be installed somewhere. Used only when EntitlementAssets is absent. | Text, max 450 each. |
SerialKey | No | Serial or licence key. | Text, max 300. |
ExpiryDate | No | Expiry as a Unix timestamp in seconds. | Digits. |
trackVersion | No | Whether the entitlement is bound to exact versions. | Text, max 255. |
Notes | No | Comments; returned as Comments. | Text, max 4096. |
FileName | No | Name of a licence document to attach. | The extension must be an allowed upload type. |
FileData | No | The document, Base64-encoded. One document per entitlement. | Base64. |
Subject | No | Read, never used. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/entitlements/c30a...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"EntitlementName":"Adobe Acrobat Pro","Licenses":"30","EntitlementAssets":[{"ServerID":"38"},{"ServerID":"41"},{"ServerID":"52"}],"SerialKey":"XXXXX-XXXXX-XXXXX","ExpiryDate":"1801353600"}
Response
A status message. On success the subcode is Entitlement modified successfully..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Guid must be specified. | Guid was missing. |
User does not have permission to modify entitlement. | The caller lacks Write. |
This entitlement does not exist. | No entitlement has that GUID. |
User does not have permission to upload to this organization. | The caller may not store the document. |
EntitlementName and Licenses must be specified. | A required field was missing, or Licenses was 0. |
Too many assets specified. | EntitlementAssets exceeded the cap. |
One or more assets specified were empty. | An element had no ServerID. |
One of the assets specified does not exist. | No asset has that id. |
Too many files specified. | EntitlementFiles exceeded the cap. |
One or more files specified were empty. | An element had no ApplicationName. |
One of the softwares specified does not exist. | No asset has that application (and version) installed. |
Filename missing or invalid. | FileName was invalid. |
Extension is not allowed for upload. | The document type is not on the allowed list. |
Failed to upload file. | The document could not be stored. |
DeleteEntitlement
Deletes an entitlement with its links and document. Unlike the other entitlement writes, this needs Account admin.
v1 alias: POST https://api.moleant.com/Entitlements/DeleteEntitlement/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Guid | Yes | Path segment. The entitlement. | Hex, max 150. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/entitlements/c30a...
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Entitlement successfully deleted..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
This Guid does not exist. | Guid was missing or not hex. |
User does not have permission to delete entitlement. | The caller lacks Account admin. |
This entitlement does not exist. | No entitlement has that GUID. |
Software vulnerabilities
The Software vulnerabilities module matches the software Moleant Engine reports against the CVEs of the National Vulnerability Database. Every installed software row is resolved to a CPE 2.3 name (cpe:2.3:a:7-zip:7-zip:23.01:*:*:*:*:*:*:*) by overrides, product evidence and rules; the resolved names are matched against the CVE criteria of a synchronised copy of the NVD, and each match is a finding on one asset. Packages installed from a Linux distribution's package manager (dpkg, rpm, apk) are judged differently: by the distribution's own security advisories (through OSV.dev), keyed on the source package and the full version with the distribution's revision, so backported fixes count; such findings carry Source osv, the advisory id and the version that fixes it. Findings are reviewed by people: a finding can be accepted, marked a false positive or fixed, and software the resolver could not decide waits in a review queue until someone sets an override that maps the product to a CPE name, or ignores it, for the whole organization. Overrides take effect at once; the matching itself runs hourly. The operations under an organization take a user token (Read for the GET operations, Write for the changes) or the organization's API key; a change made with a key is attributed to the key (API key <name>) in StateBy, CreatedBy and the audit log. CveDetails takes any user token. Timestamps in this section are ISO 8601 in UTC with a Z suffix.
For one list across organizations, sorted by rating and by the number of affected assets, see ListVulnerabilitiesForReport; the reports take a CVE filter to show what a vulnerability touches.
ListVulnerabilities
Lists the findings of an organization, or of one asset: each row is one CVE matched to one installed software row on one asset, with the CVE's severity, score and CISA KEV status, the software and the CPE name it was resolved to, the criteria that matched, and the review state. Rows are ordered by severity (critical first, CVEs without a score last), then score, CVE id and host name. By default only open findings that still apply are listed.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Ignored with a key. | Alphanumeric, max 50. |
ServerID | No | Only this asset's findings. On the asset route it is the path segment; on the organization route it may be sent as a query parameter. | Digits, max 10. |
State | No | One of open, accepted, false_positive, fixed or all. open when not sent. | Text, max 20. Case-insensitive. |
IncludeResolved | No | Send TRUE or 1 to include findings that no longer apply (the software is gone or the CVE no longer matches; ResolvedAt is set). Left out, only current findings are listed. | Case-sensitive. |
Severity | No | One of CRITICAL, HIGH, MEDIUM, LOW or NONE. | Alphanumeric, max 10. Case-insensitive. |
CVE | No | Only this CVE, for example CVE-2025-0411. | Letters, digits and hyphens, max 20. Case-insensitive. |
KevOnly | No | Send TRUE or 1 to list only CVEs on the CISA Known Exploited Vulnerabilities catalogue. | Case-sensitive. |
Search | No | Substring match on the CVE id, the application name, the host name or the CVE description. | Tolerant text, max 100. |
Source | No | Only findings of one source: nvd or osv (see Vulnerabilities[].Source). | Alphanumeric, max 8. Case-insensitive. |
Confidence | No | Only findings of one confidence: high, medium or low (see Vulnerabilities[].Confidence). | Alphanumeric, max 10. Case-insensitive. |
Fix | No | Only findings with a given fix status: available (the advisory names a fixed version), none (the distribution lists the CVE as open without a fix) or unknown (an nvd finding: NVD does not say). See Vulnerabilities[].FixedVersion. | Alphanumeric, max 10. Case-insensitive. |
VendorPriority | No | Only findings the distribution gave this priority: critical, high, medium, low, negligible or untriaged, or none for findings without one (see Vulnerabilities[].VendorPriority). | Alphanumeric, max 20. Case-insensitive. |
Skip | No | Rows to skip. 0 when not sent. | Digits, 0–1000000. |
Count | No | Rows to return. 100 when not sent; at most 1000 per call. | Digits, 0–1000000. |
State is open: to see everything, including reviewed findings, send State=all.Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/vulnerabilities?Severity=HIGH&Count=1
X-Api-Key: c9c42981ebf50a4749c2
Response
An object with a Query header array and a Vulnerabilities array.
| Attribute | Description | Example |
|---|---|---|
Query[].ResultCount / TotalCount | Rows returned, and the unpaged total. Numbers. | 1 / 4 |
Vulnerabilities[].VulnerabilityID | Id of the finding. Send it to ModifyVulnerability. A number. | 1 |
Vulnerabilities[].CVE | The CVE id. CveDetails has the full record. | CVE-2025-0411 |
Vulnerabilities[].Severity | CVSS severity: CRITICAL, HIGH, MEDIUM, LOW, NONE, or empty when the NVD has not scored the CVE. | HIGH |
Vulnerabilities[].Score | CVSS base score. A number; null when the CVE has no score. | 7.8 |
Vulnerabilities[].CvssVersion | CVSS version of the score. | 3.1 |
Vulnerabilities[].Vector | CVSS vector string. | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Vulnerabilities[].Published | Date the CVE was published, YYYY-MM-DD. | 2025-01-25 |
Vulnerabilities[].Kev | Whether the CVE is on the CISA Known Exploited Vulnerabilities catalogue. A boolean. | true |
Vulnerabilities[].KevDueDate | The catalogue's remediation due date, YYYY-MM-DD; empty when not on the catalogue. | 2025-02-27 |
Vulnerabilities[].Description | The CVE description, cut to 300 characters. | 7-Zip Mark-of-the-Web Bypass Vulnerability. This vulnerability allows... |
Vulnerabilities[].ServerID | The asset. A number. | 1 |
Vulnerabilities[].Hostname | Its host name. | SRV-FILE01 |
Vulnerabilities[].SoftwareID | Id of the installed software row. A number. | 1 |
Vulnerabilities[].ApplicationName / Version / Publisher | The installed software as reported by the engine. | 7-Zip / 23.01 / Igor Pavlov |
Vulnerabilities[].Cpe | The CPE 2.3 name the software was resolved to. | cpe:2.3:a:7-zip:7-zip:23.01:*:*:*:*:*:*:* |
Vulnerabilities[].Criteria | The CVE criterion that matched it, as NVD writes it; NVD keeps the version range next to the criterion, not in it, so chrome:* here does not mean "any Chrome": Versions has the range. For an osv finding the ecosystem and source package (Ubuntu:24.04:LTS expat). | cpe:2.3:a:7-zip:7-zip:*:*:*:*:*:*:*:* |
Vulnerabilities[].Versions | The versions the matched criterion covers, for display next to Criteria: < 156.0.8078.73, >= 2.0.0, < 2.4.2, = 23.01, all versions (a criterion with neither version nor range), no version (-); for an osv finding < <fixed version> or all versions (no fix published). Empty on findings made before this field existed until the next matching run. | < 24.09 |
Vulnerabilities[].Source | nvd: matched by CPE against the NVD; osv: reported by the distribution's security advisory (Ubuntu, Debian, Alpine, Rocky Linux, AlmaLinux, Mageia) for a package-manager package at its exact installed version. An osv finding is one per CVE per source package on an asset: the binary packages built from one source (libc6, libc-bin and locales from glibc; the image, modules and headers of one kernel) share the advisory, so the finding is listed once, under one of them (the binary named like the source, else the shortest name), and the Note names the source package. Packages on distributions OSV does not cover, and packages installed from a vendor's repository rather than the distribution's (the engine reports the repository origin since agent 2.2: Zabbix, MariaDB, NodeSource, a PPA), are matched by CPE at their upstream version instead; the Note says so. | nvd |
Vulnerabilities[].Advisory | The distribution's advisory id (USN-7000-1, DSA-5700-1) of an osv finding; empty otherwise. | |
Vulnerabilities[].FixedVersion | The package version that carries the fix according to the advisory (2.6.1-2ubuntu0.1); empty when the advisory names none (the distribution lists the CVE as open and unfixed) or the finding is not from an advisory. | |
Vulnerabilities[].VendorPriority | The distribution's own priority for the CVE, as its advisory data states it (Ubuntu: critical, high, medium, low, negligible, untriaged); empty for nvd findings and for distributions that publish none. The triage signal for the many CVEs a distribution lists as open without a fix, most of which NVD has not scored. | |
Vulnerabilities[].Confidence | How sure the matcher is that the finding applies: high when the criterion names the installed version or a range that contains it, or the installed Office build was released before the day the CVE's fix shipped; medium when the criterion names no version (NVD lists Microsoft 365 Apps and the perpetual Office releases without a build) and the installed build's date is an estimate within 45 days before the fix, or the inventory holds no build to compare, or the range says affected while the CVE's own text names a fix version the installed version is at or beyond (the Note quotes both); low when the criterion names no version and the build cannot be dated (MSI Office). A version-less criterion is not reported at all when the installed Office build was released on or after the day the fix shipped, which is taken from Microsoft's Office security release notes, else the Patch Tuesday before the CVE's publication (Microsoft publishes some Office CVEs days after the fixed builds, so the publication date alone would report patched builds), and a criterion that names every version without bounds (firefox:*, no range) is not reported when the CVE is more than two years old (analysed NVD records carry a range; such a criterion is legacy data). A younger unbounded criterion is medium. | high |
Vulnerabilities[].Note | One sentence explaining a medium or low verdict (build and publication dates); empty for high nvd findings decided by the version. An osv finding always has one: the advisory, the fixed version or that none is published, the distribution's priority, the installed version and the source package. A finding on a kernel package that is not the running kernel (an older kernel still installed) is low and its Note starts with Not the running kernel (6.8.0-45-generic). An advisory finding that names no fix, on a package whose upstream version lies outside every version range NVD gives for the CVE (the distribution's tracker lists the CVE as open against a package it has not triaged), is low and its Note starts with NVD's affected versions (...) do not include the installed upstream version ... | |
Vulnerabilities[].FirstSeen / LastSeen | When the finding was first and last produced by a matching run. | 2026-10-24T19:15:16Z / 2026-10-24T19:15:16Z |
Vulnerabilities[].ResolvedAt | When the finding stopped applying; empty while it does. Only present with IncludeResolved. | |
Vulnerabilities[].State | Review state: open, accepted, false_positive or fixed. | open |
Vulnerabilities[].StateNote / StateBy / StateAt | The reviewer's note, identity (e-mail address, or API key <name> when a key made the change) and time from ModifyVulnerability; empty for an unreviewed finding. |
Example response
{
"Query": [
{
"ResultCount": 1,
"TotalCount": 4
}
],
"Vulnerabilities": [
{
"VulnerabilityID": 1,
"CVE": "CVE-2025-0411",
"Severity": "HIGH",
"Score": 7.8,
"CvssVersion": "3.1",
"Vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"Published": "2025-01-25",
"Kev": true,
"KevDueDate": "2025-02-27",
"Description": "7-Zip Mark-of-the-Web Bypass Vulnerability. This vulnerability allows remote attackers to bypass the Mark-of-the-Web...",
"ServerID": 1,
"Hostname": "SRV-FILE01",
"SoftwareID": 1,
"ApplicationName": "7-Zip",
"Version": "23.01",
"Publisher": "Igor Pavlov",
"Cpe": "cpe:2.3:a:7-zip:7-zip:23.01:*:*:*:*:*:*:*",
"Criteria": "cpe:2.3:a:7-zip:7-zip:*:*:*:*:*:*:*:*",
"Versions": "< 24.09",
"Source": "nvd",
"Advisory": "",
"FixedVersion": "",
"VendorPriority": "",
"Confidence": "high",
"Note": "",
"FirstSeen": "2026-10-24T19:15:16Z",
"LastSeen": "2026-10-24T19:15:16Z",
"ResolvedAt": "",
"State": "open",
"StateNote": "",
"StateBy": "",
"StateAt": ""
}
]
}
{"Query":[{"ResultCount":0,"TotalCount":0}],"Vulnerabilities":["No vulnerability information was found."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to list vulnerabilities. | The caller lacks Read. |
State is invalid. | State was none of the five values; submessage is Use open, accepted, false_positive, fixed or all. |
Severity is invalid. | Severity was none of the five values; submessage is Use CRITICAL, HIGH, MEDIUM, LOW or NONE. |
Source is invalid. | Source was neither nvd nor osv; submessage is Use nvd or osv. |
Confidence is invalid. | Confidence was none of the three values; submessage is Use high, medium or low. |
Fix is invalid. | Fix was none of the three values; submessage is Use available, none or unknown. |
VendorPriority is invalid. | VendorPriority was none of the seven values; submessage is Use critical, high, medium, low, negligible, untriaged or none. |
Invalid count range. | Count was out of range. |
Invalid skip range. | Skip was out of range. |
VulnerabilitySummary
Counts for an organization's dashboard: the open findings by severity and KEV status, the assets and software rows they touch, how many findings have been reviewed, how the organization's installed software stands in the resolution (how many rows wait for review), the state of the NVD copy, and the ten CVEs that affect the most assets.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Ignored with a key. | Alphanumeric, max 50. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/vulnerabilities/summary
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A VulnerabilitySummary array with one element. Every count is a number. The open counts cover current findings in state open; the reviewed counts cover current findings in the other states.
| Attribute | Description | Example |
|---|---|---|
VulnerabilitySummary[].Open | Open findings. A number. | 4 |
VulnerabilitySummary[].Critical / High / Medium / Low / Unknown | Open findings by CVSS severity; Unknown is a CVE without a severity. | 0 / 4 / 0 / 0 / 0 |
VulnerabilitySummary[].Kev | Open findings whose CVE is on the CISA KEV catalogue. A number. | 2 |
VulnerabilitySummary[].AffectedAssets / AffectedSoftware | Distinct assets and installed software rows with open findings. | 2 / 2 |
VulnerabilitySummary[].Sources.Nvd / Osv | Open findings by source: matched by CPE against the NVD, or reported by a distribution's advisory. Numbers. | 2 / 0 |
VulnerabilitySummary[].Confidence.High / Medium / Low | Open findings by the matcher's confidence (see ListVulnerabilities). Numbers. | 2 / 0 / 0 |
VulnerabilitySummary[].Fix.Available / None / Unknown | Open findings by fix status: the advisory names a fixed version; the distribution lists the CVE as open without a fix; an nvd finding, where NVD does not say. Numbers. A view of what can be acted on today is Fix.Available. | 0 / 0 / 2 |
VulnerabilitySummary[].VendorPriority.Critical / High / Medium / Low / Negligible / None | Open findings by the distribution's own priority (see Vulnerabilities[].VendorPriority); None counts findings without one, nvd findings included. Numbers. | 0 / 0 / 0 / 0 / 0 / 2 |
VulnerabilitySummary[].Accepted / FalsePositive / Fixed | Current findings in each reviewed state. | 0 / 0 / 0 |
VulnerabilitySummary[].LastMatched | When a matching run last touched a finding of the organization; empty when none has. | 2026-10-24T19:15:16Z |
VulnerabilitySummary[].SoftwareResolution.Resolved / Review / Unmapped / Ignored / Collapsed / Error / Pending | The organization's installed software rows by resolution status (see ListSoftwareCpe). Pending rows have not been resolved since they were reported. | 5 / 3 / 0 / 0 / 0 / 0 / 0 |
VulnerabilitySummary[].Nvd.Cves | CVEs in the synchronised copy of the NVD. A number. | 312884 |
VulnerabilitySummary[].Nvd.LastSync / DataModifiedThrough / Status | When the copy was last synchronised, the NVD modification time it is complete through, and the last run's status; empty before the first synchronisation. | 2026-10-24T18:17:40Z / 2026-10-24T18:05:12Z / ok |
VulnerabilitySummary[].TopCves[].CVE / Severity / Score / Kev / Assets | Up to ten CVEs with open findings, most affected assets first: the id, its severity, score (a number), KEV flag (a boolean) and the number of affected assets (a number). | CVE-2025-0411 / HIGH / 7.8 / true / 2 |
Example response
{
"VulnerabilitySummary": [
{
"Open": 4,
"Critical": 0,
"High": 4,
"Medium": 0,
"Low": 0,
"Unknown": 0,
"Kev": 2,
"AffectedAssets": 2,
"AffectedSoftware": 2,
"Confidence": {
"High": 2,
"Medium": 0,
"Low": 0
},
"Sources": {
"Nvd": 2,
"Osv": 0
},
"Fix": {
"Available": 0,
"None": 0,
"Unknown": 2
},
"VendorPriority": {
"Critical": 0,
"High": 0,
"Medium": 0,
"Low": 0,
"Negligible": 0,
"None": 2
},
"Accepted": 0,
"FalsePositive": 0,
"Fixed": 0,
"LastMatched": "2026-10-24T19:15:16Z",
"SoftwareResolution": {
"Resolved": 5,
"Review": 3,
"Unmapped": 0,
"Ignored": 0,
"Collapsed": 0,
"Error": 0,
"Pending": 0
},
"Nvd": {
"Cves": 312884,
"LastSync": "2026-10-24T18:17:40Z",
"DataModifiedThrough": "2026-10-24T18:05:12Z",
"Status": "ok"
},
"TopCves": [
{
"CVE": "CVE-2025-0411",
"Severity": "HIGH",
"Score": 7.8,
"Kev": true,
"Assets": 2
},
{
"CVE": "CVE-2025-53816",
"Severity": "HIGH",
"Score": 7.5,
"Kev": false,
"Assets": 2
}
]
}
]
}
0, an empty TopCves array and an empty LastMatched; there is no placeholder string.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to list vulnerabilities. | The caller lacks Read. |
ModifyVulnerability
Sets the review state of one finding, with an optional note. The state, the note, the caller (the user's e-mail address, or API key <name> for a key) and the time are returned by ListVulnerabilities as State, StateNote, StateBy and StateAt, and the change is logged as a System Event on the asset (Vulnerability CVE-2025-0411 on SRV-FILE01 set to accepted.). A finding set to fixed or accepted stays in that state while the match persists; the matching runs do not reopen it.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
VulnerabilityID | Yes | Path segment. The finding, VulnerabilityID from ListVulnerabilities. | Digits, max 10. |
State | Yes | One of open, accepted, false_positive or fixed. | Text, max 20. Case-insensitive. |
Note | No | Why. Replaces the stored note; an empty or missing value clears it. | Free text, max 2000. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/vulnerabilities/1
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"State": "accepted", "Note": "Mark-of-the-Web is enforced by policy here"}
Response
A status message. On success the subcode is Vulnerability was updated..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to modify vulnerabilities. | A user token without Write. (An API key has Write in its organization.) |
VulnerabilityID missing or invalid. | VulnerabilityID was missing or not numeric. |
State is invalid. | State was missing or none of the four values; submessage is Use open, accepted, false_positive or fixed. |
Vulnerability does not exist. | No finding of this organization has that id. |
CveDetails
Returns one CVE from the synchronised copy of the NVD: its dates and status, CVSS score and vector, description, weakness, CISA KEV dates, and every CPE match criterion of its configurations with the version range, which is what the matching applies to the resolved software. The record is global, not an organization's, so any user token may read it.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CVE | Yes | Path segment. The CVE id, CVE-, the year and a sequence number of at least four digits. | Letters, digits and hyphens, max 20. Case-insensitive. |
Example request
GET https://api.moleant.com/v2/cve/CVE-2025-0411
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A CVE array with one element.
| Attribute | Description | Example |
|---|---|---|
CVE[].CVE | The CVE id. | CVE-2025-0411 |
CVE[].Published / Modified | When the NVD published and last modified the record. | 2025-01-25T05:15:09Z / 2026-06-17T08:26:25Z |
CVE[].Status | The NVD vulnerability status (Analyzed, Modified, Awaiting Analysis, ...). | Modified |
CVE[].Severity | CVSS severity, or empty when not scored. | HIGH |
CVE[].Score | CVSS base score. A number; null when not scored. | 7.8 |
CVE[].CvssVersion | CVSS version of the score. | 3.1 |
CVE[].Vector | CVSS vector string. | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
CVE[].Description | The English description, in full. | 7-Zip Mark-of-the-Web Bypass Vulnerability. This vulnerability allows... |
CVE[].Cwe | The weakness id; empty when none is given. | CWE-693 |
CVE[].Kev | Whether the CVE is on the CISA KEV catalogue. A boolean. | true |
CVE[].KevAddedDate / KevDueDate | The catalogue's addition and remediation due dates, YYYY-MM-DD; empty when not on the catalogue. | 2025-02-06 / 2025-02-27 |
CVE[].NvdUrl | The record at nvd.nist.gov. | https://nvd.nist.gov/vuln/detail/CVE-2025-0411 |
CVE[].Criteria[].Criteria | A CPE match criterion of the CVE's configurations. | cpe:2.3:a:7-zip:7-zip:*:*:*:*:*:*:*:* |
CVE[].Criteria[].Vulnerable | Whether products matching the criterion are vulnerable (the NVD also lists non-vulnerable platform conditions). A boolean. | true |
CVE[].Criteria[].VersionStartIncluding / VersionStartExcluding / VersionEndIncluding / VersionEndExcluding | The version range bounds of the criterion; empty when unbounded. | / / / 24.09 |
Example response
{
"CVE": [
{
"CVE": "CVE-2025-0411",
"Published": "2025-01-25T05:15:09Z",
"Modified": "2026-06-17T08:26:25Z",
"Status": "Modified",
"Severity": "HIGH",
"Score": 7.8,
"CvssVersion": "3.1",
"Vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"Description": "7-Zip Mark-of-the-Web Bypass Vulnerability. This vulnerability allows remote attackers to bypass the Mark-of-the-Web protection mechanism on affected installations of 7-Zip. User interaction is required to exploit thi...",
"Cwe": "CWE-693",
"Kev": true,
"KevAddedDate": "2025-02-06",
"KevDueDate": "2025-02-27",
"NvdUrl": "https://nvd.nist.gov/vuln/detail/CVE-2025-0411",
"Criteria": [
{
"Criteria": "cpe:2.3:a:7-zip:7-zip:*:*:*:*:*:*:*:*",
"Vulnerable": true,
"VersionStartIncluding": "",
"VersionStartExcluding": "",
"VersionEndIncluding": "",
"VersionEndExcluding": "24.09"
}
]
}
]
}
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
CVE id missing or invalid. | CVE was missing or not of the form CVE-YYYY-NNNN. |
CVE not found. | The CVE is not in the synchronised NVD data. HTTP 404; submessage is The CVE is not in the synchronised NVD data. |
ListSoftwareCpe
Shows how the organization's installed software was resolved to CPE names: one row per distinct resolution (the same product, version, publisher and verdict on several assets is one row, with the asset count), with the method and rule that decided it, the candidates the resolver suggests for a row it could not decide, and the override that applies. By default it is the review queue: the rows in status review or unmapped, which someone with product knowledge should settle through SetSoftwareCpeOverride. Rows the engine no longer reports are left out.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Ignored with a key. | Alphanumeric, max 50. |
Status | No | One of review, resolved, unmapped, ignored, collapsed, error, pending or all. review when not sent, which lists both review and unmapped rows. | Alphanumeric, max 10. Case-insensitive. |
Search | No | Substring match on the application name, the publisher or the CPE name. | Tolerant text, max 100. |
ServerID | No | Only the software of this asset. | Digits, max 10. |
Skip | No | Rows to skip. 0 when not sent. | Digits, 0–1000000. |
Count | No | Rows to return. 100 when not sent; at most 1000 per call. | Digits, 0–1000000. |
Resolution statuses: resolved (a CPE name was found; findings are matched for the row), review (the resolver could not decide; candidates may be offered), unmapped (nothing known about the product), ignored (not a product: an update entry, a KB number, or ignored by an override), collapsed (a component covered by another row, such as an Office component), error (a rule or override failed, see Note) and pending (reported since the last resolution run). Rows are ordered review, unmapped, error, resolved, collapsed, ignored, pending, then by asset count, name and version.
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/software/cpe
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An object with a Query header array and a Software array.
| Attribute | Description | Example |
|---|---|---|
Query[].ResultCount / TotalCount | Rows returned, and the unpaged total. Numbers. | 2 / 2 |
Software[].SoftwareCpeID | Id of the resolution record, shared by every organization with the same input. Send it to SetSoftwareCpeOverride. A number; 0 for a pending row. | 1 |
Software[].ApplicationName / Version / Publisher / Source | The installed software as reported (Source is the engine's source: registry, msi, dpkg, ..., or legacy for contract 1 reports). | Adobe Acrobat / 24.2 / Adobe / legacy |
Software[].Status | Resolution status; see above. | review |
Software[].Confidence | Confidence of the mapping: high, medium, low, or empty. | low |
Software[].Method | How it was decided: override, rule, an office: evidence method, suggest (fuzzy candidates), generic:parent (a collapsed child entry), or empty when pending. | rule |
Software[].RuleID | The rule id, or the OverrideID for method override; empty otherwise. | adobe-acrobat |
Software[].Cpe | The CPE 2.3 name the row was resolved to; empty when not resolved. | |
Software[].Aliases | Further CPE names the row is also matched under (the NVD has encoded some products several ways). An array of strings. | [] |
Software[].Candidates | For a review row: suggested CPE names with a score from 0 to 1, as cpe (score). An array of strings. Never applied automatically; approve one with an override. | [] |
Software[].TargetHw | The target_hw attribute used in matching, * when any. | * |
Software[].Eol | End-of-support date of the product version when a rule knows it, YYYY-MM-DD; otherwise empty. | |
Software[].Note | The resolver's note: why the row needs review, what a rule assumed, or an override's note. | Adobe uses several CPE products and tracks for Acrobat/Reader; map per installed track via overrides |
Software[].NameKey / PublisherKey | The keys an override is matched by: the name without version, locale, parentheses and punctuation, and the publisher without legal suffixes, both in lower case. | adobe acrobat / adobe |
Software[].Assets / Rows | Distinct assets, and installed software rows, behind this row. Numbers. | 2 / 2 |
Software[].OpenVulnerabilities | Open findings on the rows resolved the same way. A number. | 0 |
Software[].OverrideID | The override that applies to the product (the organization's own, else a global one); 0 when none. A number. | 0 |
Example response
{
"Query": [
{
"ResultCount": 2,
"TotalCount": 2
}
],
"Software": [
{
"SoftwareCpeID": 1,
"ApplicationName": "Adobe Acrobat",
"Version": "24.2",
"Publisher": "Adobe",
"Source": "legacy",
"Status": "review",
"Confidence": "low",
"Method": "rule",
"RuleID": "adobe-acrobat",
"Cpe": "",
"Aliases": [],
"Candidates": [],
"TargetHw": "*",
"Eol": "",
"Note": "Adobe uses several CPE products and tracks for Acrobat/Reader; map per installed track via overrides",
"NameKey": "adobe acrobat",
"PublisherKey": "adobe",
"Assets": 2,
"Rows": 2,
"OpenVulnerabilities": 0,
"OverrideID": 0
},
{
"SoftwareCpeID": 2,
"ApplicationName": "Microsoft Office",
"Version": "2021",
"Publisher": "Microsoft",
"Source": "legacy",
"Status": "review",
"Confidence": "low",
"Method": "suggest",
"RuleID": "",
"Cpe": "",
"Aliases": [],
"Candidates": [
"cpe:2.3:a:microsoft:office:2021:*:*:*:*:*:*:* (1.00)"
],
"TargetHw": "*",
"Eol": "",
"Note": "fuzzy candidates, approve through an override",
"NameKey": "microsoft office",
"PublisherKey": "microsoft",
"Assets": 1,
"Rows": 1,
"OpenVulnerabilities": 0,
"OverrideID": 0
}
]
}
{"Query":[{"ResultCount":0,"TotalCount":0}],"Software":["No software information was found."]}; with the default Status that means the review queue is empty.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to list software. | The caller lacks Read. |
Status is invalid. | Status was none of the eight values; submessage is Use review, resolved, unmapped, ignored, collapsed, error, pending or all. |
Invalid count range. | Count was out of range. |
Invalid skip range. | Skip was out of range. |
ListSoftwareCpeOverrides
Lists the overrides that apply to the organization: its own, and the global ones Moleant maintains for every organization. An override maps a product (by name key and, optionally, publisher key) to one or more CPE names, or ignores it; the organization's own override wins over a global one for the same product.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. Ignored with a key. | Alphanumeric, max 50. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/software/cpe/overrides
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An Overrides array, the organization's overrides first, then the global ones, each by name key.
| Attribute | Description | Example |
|---|---|---|
Overrides[].OverrideID | Id of the override. Send it to DeleteSoftwareCpeOverride. A number. | 1 |
Overrides[].Scope | organization for the organization's own override, global for one that applies to every organization. | organization |
Overrides[].NameKey / PublisherKey | The product keys the override matches; an empty PublisherKey matches any publisher. | adobe acrobat / adobe |
Overrides[].Action | map or ignore. | map |
Overrides[].Cpe | The CPE name or names (whitespace-separated, templates as given) for map; empty for ignore. | cpe:2.3:a:adobe:acrobat:{DisplayVersion}:*:*:*:*:*:*:* |
Overrides[].Note | The note given when it was set; empty when none. | Acrobat DC continuous track |
Overrides[].CreatedBy / Created | Who set it last (an e-mail address, or API key <name> when a key set it), and when. | erik@example.com / 2026-10-24T19:15:17Z |
Example response
{
"Overrides": [
{
"OverrideID": 1,
"Scope": "organization",
"NameKey": "adobe acrobat",
"PublisherKey": "adobe",
"Action": "map",
"Cpe": "cpe:2.3:a:adobe:acrobat:{DisplayVersion}:*:*:*:*:*:*:*",
"Note": "Acrobat DC continuous track",
"CreatedBy": "erik@example.com",
"Created": "2026-10-24T19:15:17Z"
},
{
"OverrideID": 2,
"Scope": "organization",
"NameKey": "microsoft office",
"PublisherKey": "",
"Action": "ignore",
"Cpe": "",
"Note": "legacy row without a key name",
"CreatedBy": "erik@example.com",
"Created": "2026-10-24T19:15:17Z"
}
]
}
{"Overrides":["No override information was found."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to list software. | The caller lacks Read. |
SetSoftwareCpeOverride
Creates or replaces the organization's override for one product: maps it to a CPE name, or ignores it. The product is named by its NameKey and PublisherKey, or by the SoftwareCpeID of a row in ListSoftwareCpe, whose keys are then used. One override per name key and publisher key: sending the same pair again replaces the action, CPE and note and keeps the OverrideID. The organization's installed software rows with that name key are re-resolved and re-matched at once, so ListSoftwareCpe and ListVulnerabilities reflect the override in the response to the next call. The change is logged as a System Event.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SoftwareCpeID | One of them | A resolution record of the organization's software, from ListSoftwareCpe; its name key and publisher key are used. | Digits, max 10. |
NameKey | One of them | The product name. It is reduced to its key (lower case, without version, locale, parentheses and punctuation), so Notepad++ (64-bit x64) and notepad++ name the same product. Used when SoftwareCpeID is not sent. | Text, max 255. |
PublisherKey | No | The publisher, reduced to its key (lower case, legal suffixes such as Inc. or AB removed). Empty or missing matches any publisher. With SoftwareCpeID it replaces the record's publisher key when sent. | Free text, max 255. |
Action | No | One of map or ignore. map when not sent. | Alphanumeric, max 10. Case-insensitive. |
Cpe | For map | One or more CPE 2.3 names, separated by whitespace; the first is the primary name, the others aliases. The version field may hold a template: {DisplayVersion} (the version as reported), {UpstreamVersion} (the version without a Linux package release suffix) or *; the target_hw field may hold {arch} (the reported architecture). Ignored for ignore. | Free text, max 1024. |
Note | No | Why, for the people who read the review queue and the overrides list. | Free text, max 2000. |
Example request
PUT https://api.moleant.com/v2/organizations/7a8b26724e508ade/software/cpe/overrides
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"NameKey": "Adobe Acrobat", "PublisherKey": "Adobe", "Cpe": "cpe:2.3:a:adobe:acrobat:{DisplayVersion}:*:*:*:*:*:*:*", "Note": "Acrobat DC continuous track"}
Response
A status message. On success the subcode is Software mapping was saved., and the message carries OverrideID, the id of the override (a number; the existing id when the pair was already overridden), and RowsResolved, the number of the organization's installed software rows that were re-resolved (a number).
{"message": "Success", "subcode": "Software mapping was saved.", "submessage": "None", "OverrideID": 1, "RowsResolved": 2}
OverrideID, RowsResolved for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to modify software mappings. | A user token without Write. (An API key has Write in its organization.) |
SoftwareCpeID does not exist. | SoftwareCpeID is not a resolution record of this organization's software. |
NameKey missing or invalid. | Neither SoftwareCpeID nor a NameKey with letters or digits was sent; submessage is Give SoftwareCpeID or NameKey (the product name without version, locale and architecture). |
Action is invalid. | Action was neither map nor ignore; submessage is Use map or ignore. |
Cpe missing or invalid. | Action is map and Cpe was missing or empty. |
Cpe is not a valid CPE 2.3 name. | One of the names is not a well-formed CPE 2.3 formatted string; submessage names it and the problems, for example not-a-cpe: does not start with 'cpe:2.3:'. |
DeleteSoftwareCpeOverride
Removes one of the organization's overrides. The product's installed software rows are re-resolved and re-matched at once, so they fall back to a global override, the product evidence or the rules, or return to the review queue. Global overrides are listed by ListSoftwareCpeOverrides but cannot be removed through the API. The change is logged as a System Event.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token or API key. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
OverrideID | Yes | Path segment. The override, OverrideID from ListSoftwareCpeOverrides. | Digits, max 10. |
Example request
DELETE https://api.moleant.com/v2/organizations/7a8b26724e508ade/software/cpe/overrides/2
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Software mapping was removed..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Customer guid missing or invalid. | CGuid was missing or malformed. |
User does not have permission to modify software mappings. | A user token without Write. (An API key has Write in its organization.) |
OverrideID missing or invalid. | OverrideID was missing or not numeric. |
Override does not exist. | No override of this organization has that id. |
Global mappings cannot be removed by an organization. | The id names a global override. |
Active Directory
Domain data read by the web app, and the update protocol Moleant Engine follows. Several engines may see the same domain, so one of them is elected the designated update server.
ADListDomainData
Returns the stored domain, forest, statistics and domain-controller data for one domain.
v1 alias: POST https://api.moleant.com/discover/ADListDomainData/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 255. |
DomainDNSRoot | Yes | The domain. | DNS name, max 255. |
DomainObjectGUID | Yes | Path segment. Object GUID of the domain. | GUID, max 255. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/ad/domains/5b1e0c6e-8f7a-4c7d-9e1a-2f3b4c5d6e7f?DomainDNSRoot=corp.example.com
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An object with four one-element arrays. When a part is missing the call instead answers with a verdict: a Success status with subcode FALSE and submessage Domain does not exist., Forest does not exist. (also used when the statistics are missing), Domain controllers do not exist. or Unknown error occurred.
| Attribute | Description | Example |
|---|---|---|
Domain[] | DomainDNSRoot, DomainObjectGUID, DomainSID, PDCEmulator, RIDMaster, ParentDomain, NetBIOSName, DomainMode, ForestRootDomain, ForestObjectGUID, UserUpdateSession, LastUpdated, PrimaryUpdateServer, CGUID. | |
Forest[] | ForestRootDomain, ForestObjectGUID, GlobalCatalogs, DomainNamingMaster, SchemaMaster, ForestMode, Sites, SPNSuffixes, UPNSuffixes, PrimaryUpdateServer, LastUpdated, ApplicationPartitions, CrossForestReferences. | |
DomainStats[] | DomainDNSRoot, ForestDNSRoot, DomainObjectGUID, ForestObjectGUID, the counts Users, Computers, Groups, InactiveUsers, DisabledUsers, LockedOutUsers, ExpiredUsers, PasswordExpiredUsers, Workstations, Servers, DisabledComputers (numbers), LastUpdated, PrimaryUpdateServer. | |
DomainControllers[] | ComputerObjectDN, DefaultPartition, Domain, Enabled, Forest, HostName, InvocationId, IPv4Address, IPv6Address, IsGlobalCatalog, LdapPort (number), Name, NTDSSettingsObjectDN, OperatingSystem, OperatingSystemHotfix, OperatingSystemServicePack, OperatingSystemVersion, OperationMasterRoles, isSchemaMaster, isPDC, isDNM, isRID, isInfra ("0" or "1"), Partitions, ServerObjectDN, ServerObjectGuid, Site, SslPort (number). |
Example response
{"Domain":[{"DomainDNSRoot":"corp.example.com","DomainObjectGUID":"5b1e...","DomainSID":"S-1-5-21-...",
"PDCEmulator":"DC01.corp.example.com","RIDMaster":"DC01.corp.example.com","ParentDomain":"",
"NetBIOSName":"","DomainMode":"Windows2016Domain","ForestRootDomain":"corp.example.com",
"ForestObjectGUID":"0a1b...","UserUpdateSession":"9f8e...","LastUpdated":"1786954442",
"PrimaryUpdateServer":"b13f7d0e5a2c","CGUID":"7a8b26724e508ade"}],
"Forest":[{"ForestRootDomain":"corp.example.com","...":"..."}],
"DomainStats":[{"DomainDNSRoot":"corp.example.com","Users":412,"Computers":96,"...":"..."}],
"DomainControllers":[{"HostName":"DC01.corp.example.com","LdapPort":389,"SslPort":636,"isPDC":"1","...":"..."}]}
Forest, DomainStats and DomainControllers objects with "..."; the real ones carry every field listed above.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
FALSE | With submessage Domain identifiers missing. or Organization data missing. |
User does not have permission to list domain data. | The caller lacks Read. |
Domain does not exist., Forest does not exist., Domain statistics do not exist., Domain controllers do not exist.) instead of a bare FALSE body. All domain controllers are listed; earlier versions listed only the last one.ADSearchUser
Finds Active Directory users whose SamAccountName contains the search text, across all of the organization's domains.
v1 alias: POST https://api.moleant.com/discover/ADSearchUser/ with the same fields, and the credential, in a JSON body.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 255. |
Search | Yes | Text to look for in the SamAccountName. | Text, max 255. |
Domain | No | Validated but not used to narrow the search. | DNS name, max 255. |
Example request
GET https://api.moleant.com/v2/organizations/7a8b26724e508ade/ad/users?Search=love
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An ADUsers array.
| Attribute | Description | Example |
|---|---|---|
ADUsers[].DistinguishedName | Distinguished name. | CN=Ada Lovelace,OU=Staff,DC=corp,DC=example,DC=com |
ADUsers[].SamAccountName | Account name. Send it as PrimaryUser to ModifyServerDetails. | alovelace |
ADUsers[].Enabled | Whether the account is enabled, as reported. | True |
ADUsers[].GivenName / Name / Surname | Name fields. | Ada / Ada Lovelace / Lovelace |
ADUsers[].DomainRootDomain | The user's domain. Send it as Domain. | corp.example.com |
ADUsers[].CGUID | Organization GUID. | 7a8b26724e508ade |
Example response
{"ADUsers":[{"DistinguishedName":"CN=Ada Lovelace,OU=Staff,DC=corp,DC=example,DC=com",
"SamAccountName":"alovelace","Enabled":"True","GivenName":"Ada","Name":"Ada Lovelace",
"Surname":"Lovelace","DomainRootDomain":"corp.example.com","CGUID":"7a8b26724e508ade"}]}
{"ADUsers":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
FALSE | With submessage Organization data missing. or You need to specify user to search for. |
User does not have permission to list domain data. | The caller lacks Read. |
ADCheckUpdateAllowed
Decides whether the calling agent may push data for a domain, registering the domain and assigning the designated-server role as needed.
v1 alias: POST https://api.moleant.com/discover/ADCheckUpdateAllowed/ with the same fields, and the credential, in a JSON body.
Request
Authentication: Engine token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
The credential is a device token issued by Enroll, or the organization's enrollment token while the organization still allows it (see Engine credentials); a device token must belong to the asset named in ServerGuid.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
ServerGuid | Yes | The calling agent's id. | Alphanumeric, max 100. |
DomainDNSRoot | Yes | The domain. | DNS name, max 255. |
DomainObjectGUID | Yes | Object GUID of the domain. | GUID, max 100. |
ForestDNSRoot | Yes | The forest root domain. | DNS name, max 255. |
ForestObjectGUID | Yes | Object GUID of the forest. | GUID, max 100. |
CGuid | No | Ignored; the token decides the organization. |
Example request
POST https://api.moleant.com/v2/engine/ad/check
Authorization: Bearer 2f0c…9a1b
Content-Type: application/json
{"ServerGuid":"b13f7d0e5a2c","DomainDNSRoot":"corp.example.com","DomainObjectGUID":"5b1e0c6e-8f7a-4c7d-9e1a-2f3b4c5d6e7f","ForestDNSRoot":"example.com","ForestObjectGUID":"0a1b2c3d-4e5f-6071-8293-a4b5c6d7e8f9"}
Response
An agent verdict:
subcode | submessage |
|---|---|
TRUE | Domain does not exist. It was created. Please proceed. |
TRUE | Domain exists, but no designated update server exists. You have been assigned this role. Please proceed. |
TRUE | You are already the designated update server. You may proceed. |
TRUE | Last update field was missing. It has been replaced, please proceed. |
TRUE | The last update was so old the update server has been replaced. It is you now. Please proceed. — the previous server had not updated for longer than the configured takeover period. |
FALSE | You may not update this server. It belongs to another update server. |
Failures:
subcode | Cause |
|---|---|
FALSE | With submessage Missing or corrupt token. or Domain and/or forest identifiers missing. |
FALSE | With submessage The device token belongs to another asset.: the device token was issued for another ServerGuid. HTTP 403, and message is Failure. |
A database error occurred while processing this request. | A database statement failed. |
ADUpdateForestData
Updates the stored properties of the forest. The fields mirror PowerShell's Get-ADForest.
v1 alias: POST https://api.moleant.com/discover/ADUpdateForestData/ with the same fields, and the credential, in a JSON body.
Request
Authentication: Engine token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
The credential is a device token issued by Enroll, or the organization's enrollment token while the organization still allows it (see Engine credentials); a device token must belong to the asset named in ServerGuid.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
ServerGuid | Yes | The calling agent's id. Must be the designated update server. | Alphanumeric, max 100. |
ForestDNSRoot | Yes | The forest root domain. | DNS name, max 255. |
ApplicationPartitions, CrossForestReferences, DomainNamingMaster, Domains, ForestMode, GlobalCatalogs, Name, PartitionsContainer, SchemaMaster, Sites, SPNSuffixes, UPNSuffixes | No | Forest properties. | Text, max 1024 each. |
CGuid | No | Ignored. |
Example request
PUT https://api.moleant.com/v2/engine/ad/forest
Authorization: Bearer 2f0c…9a1b
Content-Type: application/json
{"ServerGuid":"b13f7d0e5a2c","ForestDNSRoot":"corp.example.com","ForestMode":"Windows2016Forest","SchemaMaster":"DC01.corp.example.com","DomainNamingMaster":"DC01.corp.example.com","GlobalCatalogs":"DC01.corp.example.com","Sites":"Stockholm","UPNSuffixes":"contoso.com"}
Response
An agent verdict: TRUE / Cats are nice. (sic) on success, or FALSE with Domain does not exist. Please call ADCheckUpdateAllowed first., Domain exists, but no designated update server exists. Please call ADCheckUpdateAllowed first. or You are not the designated update server.
Failures:
subcode | Cause |
|---|---|
FALSE | With submessage Missing or corrupt token. or Domain and/or forest identifiers missing. |
FALSE | With submessage The device token belongs to another asset.: the device token was issued for another ServerGuid. HTTP 403, and message is Failure. |
A database error occurred while processing this request. | A database statement failed. |
ADUpdateDomainData
Updates the stored properties of a domain. The fields mirror PowerShell's Get-ADDomain; only some are stored.
v1 alias: POST https://api.moleant.com/discover/ADUpdateDomainData/ with the same fields, and the credential, in a JSON body.
Request
Authentication: Engine token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
The credential is a device token issued by Enroll, or the organization's enrollment token while the organization still allows it (see Engine credentials); a device token must belong to the asset named in ServerGuid.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
ServerGuid | Yes | The calling agent's id. Must be the designated update server. | Alphanumeric, max 100. |
DomainObjectGUID | Yes | Object GUID of the domain. | Text, max 1024. |
DNSRoot | Yes | The domain's DNS name. | Text, max 1024. |
DomainSID, Forest, DistinguishedName, DomainMode, InfrastructureMaster, PDCEmulator, RIDMaster, ParentDomain | No | Stored. | Text, max 1024 each. |
ForestObjectGUID | No | Stored. | GUID, max 100. |
AllowedDNSSuffixes, ChildDomains, ComputersContainer, DeletedObjectsContainer, DomainControllersContainer, ForeignSecurityPrincipalsContainer, LastLogonReplicationInterval, LinkedGroupPolicyObjects, LostAndFoundContainer, ManagedBy, NetBIOSName, ObjectClass, PublicKeyRequiredPasswordRolling, QuotasContainer, ReadOnlyReplicaDirectoryServers, ReplicaDirectoryServers, SubordinateReferences, SystemsContainer, UsersContainer | No | Accepted but not stored. | |
CGuid | No | Ignored. |
Example request
PUT https://api.moleant.com/v2/engine/ad/domain
Authorization: Bearer 2f0c…9a1b
Content-Type: application/json
{"ServerGuid":"b13f7d0e5a2c","DomainObjectGUID":"5b1e0c6e-8f7a-4c7d-9e1a-2f3b4c5d6e7f","DNSRoot":"corp.example.com","DomainSID":"S-1-5-21-1004336348-1177238915-682003330","DomainMode":"Windows2016Domain","PDCEmulator":"DC01.corp.example.com","RIDMaster":"DC01.corp.example.com","InfrastructureMaster":"DC01.corp.example.com"}
Response
An agent verdict: TRUE / Domain updated. on success, or FALSE with Domain does not exist. Please call ADCheckUpdateAllowed first., Domain exists, but no designated update server exists. Please call ADCheckUpdateAllowed first. or You are not the designated update server.
Failures:
subcode | Cause |
|---|---|
FALSE | With submessage Missing or corrupt token. or Domain and/or server identifiers missing. |
FALSE | With submessage The device token belongs to another asset.: the device token was issued for another ServerGuid. HTTP 403, and message is Failure. |
A database error occurred while processing this request. | A database statement failed. |
NetBIOSName and ForestObjectGUID are stored; the previous endpoint dropped them.ADUpdateDomainStatistics
Replaces the stored object counts of a domain.
v1 alias: POST https://api.moleant.com/discover/ADUpdateDomainStatistics/ with the same fields, and the credential, in a JSON body.
Request
Authentication: Engine token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
The credential is a device token issued by Enroll, or the organization's enrollment token while the organization still allows it (see Engine credentials); a device token must belong to the asset named in ServerGuid.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
ServerGuid | Yes | The calling agent's id. Must be the designated update server. | Hex, max 100. |
DomainDNSRoot | Yes | The domain. | DNS name, max 255. |
DomainObjectGUID | Yes | Object GUID of the domain. | GUID, max 255. |
ForestDNSRoot | No | The forest root domain. | DNS name, max 255. |
ForestObjectGUID | No | Object GUID of the forest. | GUID, max 100. |
Users, Groups, InactiveUsers, DisabledUsers, LockedOutUsers, ExpiredUsers, PasswordExpiredUsers, Workstations, Servers, DisabledComputers | No | Object counts. | Digits. |
Computers | No | Computer count. | Digits, max 10. |
PrimaryUpdateServer | No | Stored as sent. | Text, max 1024. |
LastUpdated | No | Ignored; the server's clock is used. |
Example request
PUT https://api.moleant.com/v2/engine/ad/statistics
Authorization: Bearer 2f0c…9a1b
Content-Type: application/json
{"ServerGuid":"b13f7d0e5a2c","DomainDNSRoot":"corp.example.com","DomainObjectGUID":"5b1e0c6e-8f7a-4c7d-9e1a-2f3b4c5d6e7f","Users":"412","Computers":"96","Groups":"57","InactiveUsers":"31","DisabledUsers":"12","LockedOutUsers":"0","ExpiredUsers":"2","PasswordExpiredUsers":"5","Workstations":"81","Servers":"15","DisabledComputers":"4"}
Response
An agent verdict: TRUE / Cats are nice. (sic) on success, or FALSE with Domain statistics does not exist. Please call ADCheckUpdateAllowed first., Domain statistics exists, but no designated update server exists. Please call ADCheckUpdateAllowed first. or You are not the designated update server.
Failures:
subcode | Cause |
|---|---|
FALSE | With submessage Missing or corrupt token. or Domain identifiers missing. |
FALSE | With submessage The device token belongs to another asset.: the device token was issued for another ServerGuid. HTTP 403, and message is Failure. |
A database error occurred while processing this request. | A database statement failed. |
ADUpdateDomainUserData
Stores a batch of domain users. Large domains are sent in several calls that share one UserUpdateSession: the first call of a new session deletes the domain's stored users, and later calls of the same session append to them.
v1 alias: POST https://api.moleant.com/discover/ADUpdateDomainUserData/ with the same fields, and the credential, in a JSON body.
Request
Authentication: Engine token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
The credential is a device token issued by Enroll, or the organization's enrollment token while the organization still allows it (see Engine credentials); a device token must belong to the asset named in ServerGuid.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
ServerGuid | Yes | The calling agent's id. Must be the designated update server. | Alphanumeric, max 100. |
DNSRoot | Yes | The domain. | DNS name, max 250. |
UserUpdateSession | Yes | Id shared by the calls of one full upload. Use a new value for each upload. | Hex, max 120. |
DomainUsers | Yes | Array of user objects with single-letter keys; see below. | |
DomainObjectGUID, CGuid | No | Ignored. |
Keys of each DomainUsers element. The agent sends more letters; these are the ones stored. Values are Text, max 250.
| Key | AD attribute | Notes |
|---|---|---|
I | SamAccountName | |
F | ObjectGUID | |
G | DistinguishedName | Optional. |
B | Enabled | Optional. |
C | GivenName | |
D | Name | |
K | Surname |
Example request
PUT https://api.moleant.com/v2/engine/ad/users
Authorization: Bearer 2f0c…9a1b
Content-Type: application/json
{"ServerGuid":"b13f7d0e5a2c","DNSRoot":"corp.example.com","UserUpdateSession":"9f8e7d6c","DomainUsers":[{"I":"alovelace","F":"2c7d...","G":"CN=Ada Lovelace,OU=Staff,DC=corp,DC=example,DC=com","B":"True","C":"Ada","D":"Ada Lovelace","K":"Lovelace"}]}
Response
An agent verdict: TRUE / Domain users updated on success, or FALSE with Domain does not exist. Please call ADCheckUpdateAllowed first., Domain exists, but no designated update server exists. Please call ADCheckUpdateAllowed first. or You are not the designated update server.
Failures:
subcode | Cause |
|---|---|
FALSE | With submessage Missing or corrupt token., DomainUsers missing or corrupt., UserUpdateSession missing or corrupt. or Domain identifiers missing. |
FALSE | With submessage The device token belongs to another asset.: the device token was issued for another ServerGuid. HTTP 403, and message is Failure. |
A database error occurred while processing this request. | A database statement failed. |
ADUpdateDomainControllers
Stores the domain controllers the agent found. Unlike the other pushes it does not check the designated update server.
DomainObjectGUID; for every domain in the call, the stored controllers are deleted and the call's controllers of that domain are inserted. Send all controllers of a domain in one call.v1 alias: POST https://api.moleant.com/discover/ADUpdateDomainControllers/ with the same fields, and the credential, in a JSON body.
Request
Authentication: Engine token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
The credential is a device token issued by Enroll, or the organization's enrollment token while the organization still allows it (see Engine credentials).
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
DomainControllers | Yes | Array of controller objects; see below. | |
CGuid | No | Ignored; the token decides the organization. |
Keys of each DomainControllers element. Values are validated as Text, max 500, unless noted.
| Key | Description | Notes |
|---|---|---|
DomainObjectGUID | Object GUID of the controller's domain; decides which stored controllers are replaced. | |
HostName, Name, Domain, Forest, Site | Identity and location. | |
ComputerObjectDN, DefaultPartition, NTDSSettingsObjectDN, ServerObjectDN, ServerObjectGuid, InvocationId | Directory references. | |
IPv4Address, IPv6Address | Addresses. | |
Enabled, IsGlobalCatalog | As reported by PowerShell. | Max 10. |
LdapPort, SslPort | Ports. | Digits, max 4 and 5. |
OperatingSystem, OperatingSystemHotfix, OperatingSystemServicePack, OperatingSystemVersion | Operating system. | |
OperationMasterRoles | Space-separated FSMO roles: SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster. | Sets the is… flags. |
Partitions | Array of partition DNs. |
Example request
PUT https://api.moleant.com/v2/engine/ad/domaincontrollers
Authorization: Bearer 2f0c…9a1b
Content-Type: application/json
{"DomainControllers":[{"HostName":"DC01.corp.example.com","Name":"DC01","Domain":"corp.example.com","Forest":"corp.example.com","DomainObjectGUID":"5b1e0c6e-8f7a-4c7d-9e1a-2f3b4c5d6e7f","Enabled":"True","IsGlobalCatalog":"True","LdapPort":"389","SslPort":"636","IPv4Address":"10.0.1.10","OperationMasterRoles":"PDCEmulator RIDMaster InfrastructureMaster","Partitions":["DC=corp,DC=example,DC=com"],"Site":"Stockholm","OperatingSystem":"Windows Server 2022 Standard"}]}
Response
A status message. On success the subcode is Added domain controllers to list. — a plain success, not a verdict.
Failures:
subcode | Cause |
|---|---|
FALSE | With submessage Missing or corrupt token. or DomainControllers missing or corrupt. |
A database error occurred while processing this request. | A database statement failed. |
Engine inventory
How Moleant Engine enrolls and reports an asset. An engine enrolls once with the organization's enrollment token and receives a device token for its asset; it then reports with that device token. See Engine credentials.
Enroll
Issues a device token for one asset, identified by its ServerGuid. With the organization's enrollment token any asset may be enrolled; with a device token only its own asset may be enrolled again, which rotates the token. Enrolling a ServerGuid revokes every earlier device token of that asset, so a reinstalled engine takes over and a lost token dies with the next enrollment. The asset itself is created by the first createserver report, not by enrollment. The event is logged as Engine device enrolled.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: Engine token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
The credential is the organization's enrollment token (orgid in ListOrganizationDetails), or the device token of the asset named in ServerGuid. The enrollment token is accepted here even after the organization has stopped accepting it for reports.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
ServerGuid | Yes | The engine's stable id for the machine, the same value it will report in createserver. Compared without regard to case. | Text, max 120. |
Hostname | No | Host name, kept as the device's name until the first report. | Text, max 63. |
Engine.Name | No | Name of the engine, for example MoleantWindowsEngine. | Text, max 40. |
Engine.Version | No | Version of the engine. | Text, max 40. |
Example request
POST https://api.moleant.com/v2/engine/enroll
Authorization: Bearer 5e0c9a41f7d2b8e36a0c4d19
Content-Type: application/json
{"ServerGuid":"b13f7d0e5a2c","Hostname":"SRV-FILE01","Engine":{"Name":"MoleantWindowsEngine","Version":"3.0.0"}}
Response
A status message. On success the subcode is Device enrolled. and the message carries DeviceToken, the new device token (48 hexadecimal characters, shown this once; the API stores a hash), DeviceId, the id of the device record (a number), and ServerGuid, the asset it is bound to. The engine stores the token and presents it as the Bearer credential from then on.
{"message":"Success","subcode":"Device enrolled.","submessage":"None","DeviceToken":"3f9a0c2e7b1d4856a9c0e2f4b6d8a1c3e5f70912b4d6f8a0c2e4f6a8b0d2e4f6","DeviceId":1042,"ServerGuid":"b13f7d0e5a2c"}
DeviceToken, DeviceId, ServerGuid for the new record.Failures:
subcode | Cause |
|---|---|
Invalid token. | The credential was malformed (HTTP 403), or it is unknown or a revoked device token (HTTP 400). |
Invalid token. | With submessage A device token can only re-enroll its own asset.: a device token was presented with another asset's ServerGuid. HTTP 403. |
Mandatory value ServerGuid missing or invalid. | ServerGuid was missing or empty. |
A database error occurred while processing this request. | A database statement failed. |
createserver
Moleant Engine's inventory push. The first report for a ServerGuid creates the asset, with an asset card in environment 1 and asset state 1, and logs Asset was created. Later reports update the asset. Two report contracts are accepted, told apart by ContractVersion: contract 1 is the body the engines sent before October 2026 and contract 2 adds the engine's identity, the collection time, structured operating system and hardware fields, software provenance and free-form facts. Both are stored by the same code, in one transaction, so a report that fails half-way leaves the previous inventory intact. Installed software is kept as a history: an application is created when first reported, stays while the reports keep listing it, and is marked removed by the first report that no longer does (reported again later, it comes back with its original first-seen time). A report whose inventory is unchanged only updates the asset's timestamps.
v1 alias: POST https://api.moleant.com/discover/createserver/ with the same fields, and the credential, in a JSON body.
Request
Authentication: Engine token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
The credential is the device token Enroll issued for this ServerGuid, or the organization's enrollment token while the organization still allows it (see Engine credentials). A device token presented with another asset's ServerGuid is refused with HTTP 403. The values of a report are Text unless noted, and a value longer than its maximum is cut to that length rather than refused.
Report contract 1. No ContractVersion, or ContractVersion: 1. The asset's inventory is replaced by what is sent: every section is replaced, and a section that is missing from the body is emptied, as it always was.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
ServerGuid | Yes | The agent's stable id for the machine. Identifies the asset across calls. | Text, max 120. |
Hostname | Yes | Host name. | Text, max 63. |
SystemType | Yes | Kind of machine, as reported by the agent. Mandatory in contract 1; optional in contract 2, where it defaults to Unknown. | Text, max 30. |
WindowsType | Yes | One of DomainMember, Standalone, AzureAD or Unknown. Mandatory in contract 1; optional in contract 2, but validated when sent. | Case-sensitive. |
SerialNumber | No | Hardware serial number. | Text, max 100. |
Vendor | No | Hardware vendor. | Text, max 120. |
OperatingSystem | No | Operating system name and version. | Text, max 256. |
WindowsMemberShip | No | Domain or workgroup. | DNS name, max 230. |
DomainSuffix | No | DNS suffix. | DNS name, max 190. |
DateRebooted | No | Last reboot, YYYY-MM-DD HH:MM:SS (the engine's local time), ISO 8601 with a zone, or a Unix epoch. | Text, max 20. |
DateCreated | No | Installation date, in the same forms. | Text, max 50. |
Memory | No | Physical memory in bytes. | Digits, max 40. |
NICS, Disks, CPU, … | Yes | The inventory arrays in the next table. | Send every array; use [] when there is nothing to report. |
Inventory arrays of contract 1. Every element is an object with the listed keys; values are validated as Text unless noted.
| Array | Element keys | Notes |
|---|---|---|
NICS | name, MAC, gw, IPAddresses (array of strings), Subnets (array, parallel to IPAddresses), DNS (array of strings). | |
StaticRoutes | Strings, one route each. | Optional. |
ListeningPorts | LocalAddress, ListeningPort (digits), IPVersion, PortType. | Optional. |
Roles | Name, InstallState, DisplayName. | Optional. |
LocalUsers | User. | Replaces local accounts only; primary users linked through ModifyServerDetails are kept. |
LocalGroups | Group, UserMemberShip (array of user names). | |
WindowsServices | Name, Displayname, Path, Status (optional), Context, StartType. | |
InstalledApplications | ApplicationName, Version, Publisher, InstallDate. | Version max 120, Publisher max 255; longer values are cut. |
Disks | MountPoint, VolumeName, Filesystem, Type (these three optional), TotalBytes, UsedBytes, FreeBytes (digits), FreePCT. | |
Certificates | dnsnames, friendlynames, Oid, HasPrivateKey, NotAfter, NotBefore (digits, Unix time), SerialNumber, Thumbprint, Subject, SubjectName. | Optional. |
LastLoggedin | Name, LastLogin (digits, Unix time). | Optional. |
Shares | ShareName, SharePath, Description. | |
CPU | Model, Speed, Cores (digits). |
Report contract 2. ContractVersion: 2. The host fields below replace the flat fields of contract 1 (OperatingSystem, Vendor, SerialNumber, Memory, DateCreated and DateRebooted are still read when the structured field is absent). ServerGuid, Hostname, DomainSuffix, WindowsMemberShip, SystemType and WindowsType are as in contract 1. A section that is absent (or null) is left as it was, because the collector did not run; an empty list clears it.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
ContractVersion | For contract 2 | The report contract, 2. Absent means contract 1. A value outside 1 to 2 is refused. | Digits. |
Engine.Name | No | Name of the engine, for example MoleantWindowsEngine. Stored on the asset and on the device record. | Text, max 40. |
Engine.Version | No | Version of the engine. | Text, max 40. |
Engine.Platform | No | The engine's platform (windows, linux, macos). Accepted but not stored. | |
CollectedAt | No | When the inventory was collected: ISO 8601 with a zone (recommended), YYYY-MM-DD HH:MM:SS or a Unix epoch. Becomes the asset's last report time; the server's clock is used when absent. | |
FQDN | No | Fully qualified host name. | DNS name, max 253. |
IPAddress | No | The asset's primary IP address. | Text, max 45. |
OS.Name | No | Operating system name. | Text, max 256. |
OS.Version | No | Operating system version. | Text, max 64. |
OS.Build | No | Build number. | Text, max 64. |
OS.Architecture | No | Processor architecture of the OS, for example x64 or arm64. | Text, max 8. |
OS.ServicePack | No | Service pack or display version. | Text, max 255. |
Hardware.Vendor | No | Hardware vendor. | Text, max 120. |
Hardware.Model | No | Hardware model. | Text, max 255. |
Hardware.SerialNumber | No | Hardware serial number. | Text, max 100. |
Hardware.MemoryBytes | No | Physical memory in bytes. | Digits, max 40. |
InstalledAt | No | Installation date and time, in the forms of CollectedAt. | |
LastBootAt | No | Last boot, in the forms of CollectedAt. | |
NICS, Software, Facts, … | No | The sections in the next table. Each is optional; absent leaves the stored section alone, [] clears it. |
Sections of contract 2. Every element is an object with the listed keys; values are Text unless noted. Dates and times take the forms of CollectedAt.
| Section | Element keys | Notes |
|---|---|---|
NICS | Name, MAC, Gateway, Addresses (array of {Address, Subnet}), DNS (array of strings). | Name max 192, MAC max 32, addresses max 45. |
StaticRoutes | Strings, one route each. | Max 256 each. |
ListeningPorts | LocalAddress, Port (digits), IPVersion, Protocol. | |
Roles | Name, InstallState, DisplayName. | |
LocalUsers | Name; a plain string per element is accepted too. | Replaces local accounts only; the primary user set through ModifyServerDetails is kept. |
LocalGroups | Name, Members (array of member names). | |
Services | Name, DisplayName, Path, Status, Context, StartType. | Path max 512. |
Software | The keys in the next table. | Upserted into the software history, not replaced. |
Disks | MountPoint, VolumeName, Filesystem, Type, TotalBytes, UsedBytes, FreeBytes (digits), FreePercent (a number, one decimal kept). | |
Certificates | DnsNames, FriendlyNames, Oid, HasPrivateKey (flag), NotAfter, NotBefore (date and time), SerialNumber, Thumbprint, Subject, SubjectName. | One row per serial number. |
Logins | Name, At (date and time). | |
Shares | Name, Path, Description. | |
CPU | Model, SpeedMHz (digits), Cores (digits). | |
Facts | An object, not a list: one key per collector (max 64 characters), each holding an object of free-form facts. | Stored as JSON, one record per collector; a collector's facts are replaced when it is reported again and kept when it is absent. |
Keys of each Software element. A row is identified by Source, Identifier, Name, Version, Publisher, Scope and Architecture together: a report that carries the same combination again keeps the existing row and its first-seen time, a combination that is no longer reported is marked removed, and a new combination (a new version, say) is a new row. Rows with an empty Name are skipped.
| Key | Description | Notes |
|---|---|---|
Name | Application name. | Text, max 256. |
Version | Version. | Text, max 120. |
Publisher | Publisher. | Text, max 255. |
InstalledOn | Installation date: YYYYMMDD, YYYY-MM-DD or a date and time. Stored as a date; the value as sent is kept too. | Text, max 100. |
Source | Where the engine found the application: registry, msi, c2r, appx, dpkg, rpm, pkg and so on. Lower-cased; legacy when absent (the value contract 1 rows get). | Text, max 32. |
Identifier | The source's own id: a product code, an uninstall key, a package name. | Text, max 255. |
Architecture | x64, x86, arm64 and so on. Lower-cased. | Text, max 8. |
Scope | machine or user. Lower-cased. | Text, max 8. |
SystemComponent | Whether the entry is a hidden system component. | Flag: a boolean, 1/0 or true/false. |
ParentIdentifier | Identifier of the product this entry belongs to (an Office component's suite, for example). | Text, max 255. |
InstallLocation | Installation folder. | Text, max 512. |
Evidence | An object of free-form details the engine collected about the entry. Three keys have a meaning to the Software vulnerabilities module on package-manager rows: SourcePackage and SourceVersion (the source package the binary was built from, with the distribution's revision; agent 2.1) key the distribution's advisories, and Origin (the repository the installed version came from: the Release file's Origin for dpkg, the rpm Vendor; agent 2.2) tells the distribution's own packages from a vendor repository's. | Stored as JSON. |
Example request
A contract 2 report, shortened. Only the sections sent are touched; here the roles, services, shares and certificates of the asset stay as they were.
POST https://api.moleant.com/v2/engine/assets
Authorization: Bearer 3f9a0c2e7b1d4856a9c0e2f4b6d8a1c3e5f70912b4d6f8a0c2e4f6a8b0d2e4f6
Content-Type: application/json
{"ContractVersion":2,"Engine":{"Name":"MoleantWindowsEngine","Version":"3.0.0","Platform":"windows"},"CollectedAt":"2026-10-24T10:00:00Z","ServerGuid":"b13f7d0e5a2c","Hostname":"SRV-FILE01","FQDN":"srv-file01.corp.example.com","DomainSuffix":"corp.example.com","SystemType":"Server","WindowsType":"DomainMember","WindowsMemberShip":"corp.example.com","IPAddress":"10.0.4.21","OS":{"Name":"Windows Server 2025 Standard","Version":"10.0.26100","Build":"26100.4061","Architecture":"x64"},"Hardware":{"Vendor":"Dell Inc.","Model":"PowerEdge R760","SerialNumber":"7XK2QP3","MemoryBytes":34359738368},"InstalledAt":"2025-02-02T08:41:11Z","LastBootAt":"2026-10-20T06:30:00Z","NICS":[{"Name":"Ethernet0","MAC":"00:50:56:9A:11:22","Gateway":"10.0.4.1","Addresses":[{"Address":"10.0.4.21","Subnet":"255.255.255.0"}],"DNS":["10.0.1.10","10.0.1.11"]}],"LocalUsers":[{"Name":"Administrator"}],"Software":[{"Name":"7-Zip 24.08 (x64)","Version":"24.08","Publisher":"Igor Pavlov","InstalledOn":"2026-09-01","Source":"registry","Identifier":"7-Zip","Architecture":"x64","Scope":"machine","InstallLocation":"C:\\Program Files\\7-Zip\\"},{"Name":"Microsoft 365 Apps for enterprise - en-us","Version":"16.0.19127.20130","Publisher":"Microsoft Corporation","Source":"c2r","Identifier":"O365ProPlusRetail","Architecture":"x64","Scope":"machine","Evidence":{"ProductReleaseIds":"O365ProPlusRetail","UpdateChannel":"Current"}}],"Disks":[{"MountPoint":"C:","VolumeName":"OS","Filesystem":"NTFS","Type":"Fixed","TotalBytes":274877906944,"UsedBytes":137438953472,"FreeBytes":137438953472,"FreePercent":50}],"Logins":[{"Name":"alovelace","At":"2026-10-23T17:45:00Z"}],"CPU":[{"Model":"Intel Xeon Gold 6438","SpeedMHz":2000,"Cores":32}],"Facts":{"os":{"DisplayVersion":"24H2","UBR":4061}}}
The same asset as a contract 1 report, the body the engines sent before October 2026:
POST https://api.moleant.com/v2/engine/assets
Authorization: Bearer 2f0c…9a1b
Content-Type: application/json
{"ServerGuid":"b13f7d0e5a2c","Hostname":"SRV-FILE01","SystemType":"Server","WindowsType":"DomainMember","OperatingSystem":"Windows Server 2022 Standard","Vendor":"Dell Inc.","SerialNumber":"7XK2QP3","WindowsMemberShip":"corp.example.com","DomainSuffix":"corp.example.com","DateRebooted":"2026-07-14 03:12:08","DateCreated":"2025-02-02 09:41:11","Memory":"34359738368","NICS":[{"name":"Ethernet0","MAC":"00:50:56:9A:11:22","gw":"10.0.4.1","IPAddresses":["10.0.4.21"],"Subnets":["255.255.255.0"],"DNS":["10.0.1.10"]}],"LocalUsers":[{"User":"Administrator"}],"LocalGroups":[{"Group":"Administrators","UserMemberShip":["Administrator"]}],"WindowsServices":[],"InstalledApplications":[{"ApplicationName":"7-Zip","Version":"23.01","Publisher":"Igor Pavlov","InstallDate":"20250310"}],"Disks":[{"MountPoint":"C:","TotalBytes":"137438953472","UsedBytes":"89120571392","FreeBytes":"48318382080","FreePCT":"35.2"}],"Shares":[],"CPU":[{"Model":"Intel Xeon Silver 4310","Speed":"2100","Cores":"12"}]}
Response
A status message. On success the subcode is Server was created., for updates too, and the message carries ServerID, the asset's id (a number): the same value ListComputers and ListServerDetails use.
{"message":"Success","subcode":"Server was created.","submessage":"None","ServerID":38}
ServerID for the asset.Failures:
subcode | Cause |
|---|---|
Invalid token. | The credential was malformed (HTTP 403); or it is unknown, a revoked device token, or the organization's enrollment token after the organization stopped accepting it for reports (HTTP 400). |
Invalid token. | With submessage The device token belongs to another asset.: the device token was issued for another ServerGuid. HTTP 403. |
ContractVersion is not supported. | ContractVersion was not 1 or 2; submessage is This API accepts contract versions 1 to 2. |
Mandatory value hostname missing or invalid. | Hostname was missing or empty. |
Mandatory value SystemType missing or invalid. | SystemType was missing or empty, in a contract 1 report. |
Mandatory value ServerGuid missing or invalid. | ServerGuid was missing or empty. |
Mandatory value WindowsType missing or invalid. | WindowsType was not one of the four values (in contract 2, only when it was sent). |
A database error occurred while processing this request. | A database statement failed. |
ContractVersion: 2 bodies are accepted (see Report contract 2); contract 1 bodies are accepted unchanged, and a ContractVersion outside 1 to 2 fails with ContractVersion is not supported. The response carries ServerID. Installed software is a history: an application is listed while the engine keeps reporting it and marked removed when it disappears, instead of being deleted and re-created with every report. Long values are cut to their column instead of being dropped: a Version longer than the column used to be stored as "" or to fail the whole report (the columns are wider now: Version 120, Publisher 255, Path 512). Unable to create server. and Unable to create server details. can no longer occur. The inventory is replaced in one transaction, so a failure half-way leaves the previous inventory intact; DNS servers of every adapter are kept, CPU models are stored without a leading space, and a duplicate local user or certificate in the report is skipped instead of failing the whole report.Accounts, plans and subscriptions
Moleant accounts, their plans and the products (subscriptions) on them, kept in the shared Moleant database together with the organizations registry: the account.moleant.com branch and the Stripe webhook. An account has one plan; a plan holds one or more subscriptions and one or more organizations; an organization is enabled for one or more of the plan's subscriptions. Every operation here takes an Account token. The account operations work on the token holder's own account. The plan operations work on a plan the token holder owns (the Plan admin of account.moleant.com: the plan's account is theirs) or co-administers (a Co-admin, coadmin_plan_guid in the shared users); handing a plan over is the owner's alone. ListAccountSession tells a website which plan and role a sign-in has.
CreateAccount
Creates an account in Moleant's directory with the given subscriptions and e-mails the sign-in details.
v1 alias: POST https://api.moleant.com/account/CreateAccount/ with the same fields, and the credential, in a JSON body.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Mode | Yes | Create. Invite is accepted but not implemented. | Case-sensitive. |
Email | Yes | E-mail address of the new account. | E-mail, max 255. |
FirstName | Yes | Given name. | Plain text, max 255. |
LastName | Yes | Surname. | Plain text, max 255. |
MiddleName | No | Middle name. | Plain text, max 255. |
PurchasedSubscriptions | Yes | Array of subscription GUIDs. Every one must exist. | Hex, max 120 each. |
Example request
POST https://api.moleant.com/v2/account/users
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Mode":"Create","Email":"ada@contoso.com","FirstName":"Ada","LastName":"Lovelace","PurchasedSubscriptions":["f17f35b502f0d4d965ef594fe1c9fc0c"]}
Response
A status message. On success the subcode is User was successfully created., with the same text in submessage.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
Mode not specified or incorrect. | Mode was not Create or Invite. |
Firstname and Lastname must be specified when creating a new user. | A name was missing. |
Email must be specified. | Email was missing or not an e-mail address. |
FALSE | With submessage Subscription data missing or invalid: PurchasedSubscriptions was missing or not an array. |
User does already exist and cannot be added again. | The address already has an account. |
The Invite function is not implemented at this time. | Mode was Invite. |
The target email is already used for another user. | The address is taken in the directory. |
One of the subscriptions does not exist. | An unknown subscription GUID. submessage: Invalid subscription id. |
Could not authenticate with the Microsoft Graph API. Please contact MoleAnt System Administration.. EC: … | Moleant could not get a Graph token. |
Failed to create user. EC: … | Graph rejected the new account. |
User could not be created. | The account record could not be written. |
An error occurred while creating the user. Please try again later. | The account could not be confirmed. |
General error. Please contact system administration. | Anything else. |
CreateAccount/CREATE purpose lock is accepted.OnBoardAccount
Returns an account, its plan and the state of each subscription, for the website to show while provisioning runs. Calling it also starts provisioning of every subscription that is still in state 1.
v1 alias: POST https://api.moleant.com/account/OnBoardAccount/ with the same fields, and the credential, in a JSON body.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
AccountGuid | Yes | Object id of the account. | GUID, max 255. |
Example request
POST https://api.moleant.com/v2/account/onboarding
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"AccountGuid":"74c78695-356f-4b00-8b62-bc4e166c37b2"}
Response
An object with a User array (one element) and a Subscriptions array. All values are strings.
| Attribute | Description | Example |
|---|---|---|
User[].UserID | The account's e-mail address. | ada@contoso.com |
User[].AccountGuid | Object id of the account. | 74c78695-356f-4b00-8b62-bc4e166c37b2 |
User[].GivenName / MiddleName / SurName | Name. | Ada / / Lovelace |
User[].Plan | Plan GUID. | b0d2... |
Subscriptions[].SubscriptionGuid | Subscription GUID. | f17f35b502f0d4d965ef594fe1c9fc0c |
Subscriptions[].Name / Description | Subscription name and description. | Moleant Discover |
Subscriptions[].StateControl | 1 received, 2 started, 4 in progress, 8 ready, 16 failed. | 8 |
Subscriptions[].StateMessage | Text to show for the state. | This subscription is now ready and can be used. |
Subscriptions[].LandingZone | Where to send the user when it is ready. | https://discover.moleant.com/ |
Example response
{"User":[{"UserID":"ada@contoso.com","AccountGuid":"74c78695-356f-4b00-8b62-bc4e166c37b2",
"GivenName":"Ada","MiddleName":"","SurName":"Lovelace","Plan":"b0d2..."}],
"Subscriptions":[{"SubscriptionGuid":"f17f35b502f0d4d965ef594fe1c9fc0c","Name":"Moleant Discover",
"Description":"Moleant Discover standard subscription","StateControl":"8",
"StateMessage":"This subscription is now ready and can be used.","LandingZone":"https://discover.moleant.com/"}]}
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
AccountGuid missing. | AccountGuid was missing or not a GUID. |
User does not exist. | No account has that id, and no plan names it as owner (the owner of a plan whose account row is missing gets one made from their user row). |
User is not bound to a plan. | The account has no plan. |
User is not bound to a subscription. | The plan has no subscription. |
General error. Please contact system administration. | Anything else. |
AccountGuid must be the caller's own id). Since 2026-11-08 an authorization refusal (the token is valid, its holder may not do this) answers HTTP 403 instead of 400, with the same subcode; the rows marked HTTP 403 above are those refusals.OffBoardAccount
Deprovisions every ready subscription (state 8) of an account, removing the organization it provisioned. A subscription is skipped when the account is linked to more or fewer than one organization, since the right one cannot be told apart.
v1 alias: POST https://api.moleant.com/account/OffBoardAccount/ with the same fields, and the credential, in a JSON body.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
AccountGuid | Yes | Object id of the account. | GUID, max 255. |
Example request
POST https://api.moleant.com/v2/account/offboarding
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"AccountGuid":"74c78695-356f-4b00-8b62-bc4e166c37b2"}
Response
An object listing what happened.
| Attribute | Description | Example |
|---|---|---|
Deprovisioned | Array of subscription GUIDs that were deprovisioned. | ["f17f35b502f0d4d965ef594fe1c9fc0c"] |
Skipped | Array of subscription GUIDs that could not be deprovisioned. Present only when there are any. |
Example response
{"Deprovisioned":["f17f35b502f0d4d965ef594fe1c9fc0c"]}
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
AccountGuid missing. | AccountGuid was missing or not a GUID. |
User does not exist. | No account has that id, and no plan names it as owner (the owner of a plan whose account row is missing gets one made from their user row). |
User is not bound to a plan. | The account has no plan. |
User is not bound to a subscription. | The plan has no subscription. |
No subscriptions could be deprovisioned. | Nothing was deprovisioned. submessage lists the skipped GUIDs, or says No provisioned subscriptions found for this account. |
ListAccountSession
Who the token holder is for Moleant's account website: the plan they own or co-administer, their role on it, and the plan's account. A website calls it once after sign-in to learn which PlanGuid the plan operations take. A pending invitation (a Co-admin invited by e-mail who signs in for the first time) is linked to the signed-in identity here, as SecBuildTicket does for Discover.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are query parameters.
No further parameters.
Example request
GET https://api.moleant.com/v2/account/me
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An object with a Session array (one element), an Account array (the plan's account: one element, or empty when the caller manages no plan. An older plan whose owner has no accounts row gets one made from the owner's user row the first time the session is read, with AccountType 1 for a sign-in address in Moleant's tenant and 2 otherwise, so the element is present from then on) and a Plan array (one element, or empty).
| Attribute | Description | Example |
|---|---|---|
Session[].ObjectID | The caller's object id (the token's id claim). | 74c78695-356f-4b00-8b62-bc4e166c37b2 |
Session[].Email | The caller's sign-in address. | ada.lovelace.4711@moleantusers.com |
Session[].CreationEmail | The address the caller signed up or was invited with, or empty. | ada.lovelace@contoso.com |
Session[].GivenName / SurName | The caller's names, from their account or their user row; empty when unknown. | Ada / Lovelace |
Session[].Role | owner (the Plan admin: the plan's account is the caller's, or they own it in the shared users), coadmin (a Co-admin of the plan) or none (no plan to manage). | owner |
Session[].PlanGuid | The plan the caller manages, or empty. | b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b |
Session[].AccountGuid | The account that owns that plan (the AccountGuid of ListAccountDetails), or empty. | 74c78695-356f-4b00-8b62-bc4e166c37b2 |
Account[].AccountGuid | The plan's account: its object id. | 74c78695-356f-4b00-8b62-bc4e166c37b2 |
Account[].Email / EnrollmentEmail | Its sign-in address and the address it signed up with. | ada.lovelace.4711@moleantusers.com / ada.lovelace@contoso.com |
Account[].GivenName / MiddleName / SurName | Its names. | Ada / Augusta / Lovelace |
Account[].AccountType | 1 created in Moleant's tenant, 2 invited from another tenant, 3 other. | 1 |
Plan[].PlanGuid | The plan's GUID. | b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b |
Plan[].AccountGuid | The account that owns the plan. | 74c78695-356f-4b00-8b62-bc4e166c37b2 |
Plan[].CreationDate / ModificationDate | When the plan was created and last changed, as stored (ISO 8601 text). | 2026-03-01T10:05:12 / 2026-10-31T09:00:00 |
Example response
{"Session":[{"ObjectID":"74c78695-356f-4b00-8b62-bc4e166c37b2","Email":"ada.lovelace.4711@moleantusers.com","CreationEmail":"ada.lovelace@contoso.com",
"GivenName":"Ada","SurName":"Lovelace","Role":"owner","PlanGuid":"b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b","AccountGuid":"74c78695-356f-4b00-8b62-bc4e166c37b2"}],
"Account":[{"AccountGuid":"74c78695-356f-4b00-8b62-bc4e166c37b2","Email":"ada.lovelace.4711@moleantusers.com","EnrollmentEmail":"ada.lovelace@contoso.com",
"GivenName":"Ada","MiddleName":"Augusta","SurName":"Lovelace","AccountType":1}],
"Plan":[{"PlanGuid":"b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b","AccountGuid":"74c78695-356f-4b00-8b62-bc4e166c37b2","CreationDate":"2026-03-01T10:05:12","ModificationDate":"2026-10-31T09:00:00"}]}
Role none, empty PlanGuid and AccountGuid, and empty Account and Plan arrays, with HTTP 200.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
User objectID invalid or empty. | The token carries no usable id. |
ListAccountDetails
Returns an account, its plan and the subscriptions on the plan with their provisioning state, organization quota and organizations. Unlike OnBoardAccount it starts nothing.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
AccountGuid | Yes | Path segment. Object id of the account; must be the token holder's own. | GUID, max 255. |
Example request
GET https://api.moleant.com/v2/account/accounts/74c78695-356f-4b00-8b62-bc4e166c37b2
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An object with an AccountDetails array (one element) and a Subscriptions array. Counts, amounts, states and epochs are numbers.
| Attribute | Description | Example |
|---|---|---|
AccountDetails[].AccountGuid | Object id of the account. | 74c78695-356f-4b00-8b62-bc4e166c37b2 |
AccountDetails[].Email | The sign-in address Moleant gave the account. | Ada.Lovelace.4711@moleantusers.com |
AccountDetails[].EnrollmentEmail | The address the account signed up with; the welcome mail went there. | ada@contoso.com |
AccountDetails[].GivenName / MiddleName / SurName | Name. | Ada / / Lovelace |
AccountDetails[].AccountType | 1 created in Moleant's directory, 2 invited from another tenant, 3 other. | 1 |
AccountDetails[].Plan.PlanGuid | The plan's GUID. | b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b |
AccountDetails[].Plan.AccountGuid | The account that owns the plan. | 74c78695-356f-4b00-8b62-bc4e166c37b2 |
AccountDetails[].Plan.CreationDate / ModificationDate | When the plan was created and last changed, as stored (ISO 8601 text). | 2026-03-01T10:00:00 / 2026-03-01T10:00:00 |
Subscriptions[].SubscriptionGuid | Subscription GUID (the product). | f17f35b502f0d4d965ef594fe1c9fc0c |
Subscriptions[].Name / Description | Subscription name and description from the catalogue. | Moleant Discover / Moleant Discover standard subscription |
Subscriptions[].LandingZone | Where to send the user when the product is ready. | https://discover.moleant.com/ |
Subscriptions[].MonthlyFee | Monthly fee from the catalogue. | 1000 |
Subscriptions[].MaxOrganizations | How many organizations the product allows per plan. | 5 |
Subscriptions[].StateControl | 1 received, 2 started, 4 in progress, 8 ready, 16 failed. | 8 |
Subscriptions[].StateMessage | Text to show for the state. | This subscription is now ready and can be used. |
Subscriptions[].UsedOrganizations | The plan's organization count on this product, as the quota check reads it. | 2 |
Subscriptions[].LastPaid | Epoch of the last payment, 0 when none is recorded. | 1772359200 |
Subscriptions[].Organizations[].CGuid | GUID of an organization of the plan that is enabled for this product. | 7a8b26724e508ade |
Subscriptions[].Organizations[].CustomerName / CustomerShortName | The organization's name and short name. | Contoso AB / Contoso |
Example response
{"AccountDetails":[{"AccountGuid":"74c78695-356f-4b00-8b62-bc4e166c37b2","Email":"Ada.Lovelace.4711@moleantusers.com",
"EnrollmentEmail":"ada@contoso.com","GivenName":"Ada","MiddleName":"","SurName":"Lovelace","AccountType":1,
"Plan":{"PlanGuid":"b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b","AccountGuid":"74c78695-356f-4b00-8b62-bc4e166c37b2",
"CreationDate":"2026-03-01T10:00:00","ModificationDate":"2026-03-01T10:00:00"}}],
"Subscriptions":[{"SubscriptionGuid":"f17f35b502f0d4d965ef594fe1c9fc0c","Name":"Moleant Discover",
"Description":"Moleant Discover standard subscription","LandingZone":"https://discover.moleant.com/",
"MonthlyFee":1000,"MaxOrganizations":5,"StateControl":8,"StateMessage":"This subscription is now ready and can be used.",
"UsedOrganizations":2,"LastPaid":1772359200,
"Organizations":[{"CGuid":"7a8b26724e508ade","CustomerName":"Contoso AB","CustomerShortName":"Contoso"},
{"CGuid":"3f1c9d2e5b7a4c80","CustomerName":"Contoso Norway AS","CustomerShortName":"ContosoNO"}]}]}
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
AccountGuid missing. | AccountGuid was missing or not a GUID. |
You may only manage your own account. | AccountGuid is not the token holder's id. HTTP 403. |
User does not exist. | No account has that id, and no plan names it as owner (the owner of a plan whose account row is missing gets one made from their user row). |
ModifyAccountDetails
Changes an account's name and enrollment address. Only the fields you send are changed; at least one is required. The sign-in address (Email) belongs to the directory account and is not changed here.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
AccountGuid | Yes | Path segment. Object id of the account; must be the token holder's own. | GUID, max 255. |
GivenName | No | New given name. An empty value clears it. | Plain text, max 120. |
MiddleName | No | New middle name. An empty value clears it. | Plain text, max 30. |
SurName | No | New surname. An empty value clears it. | Plain text, max 120. |
EnrollmentEmail | No | New enrollment address. It must not be in use by another account. | E-mail, max 300. |
Example request
PATCH https://api.moleant.com/v2/account/accounts/74c78695-356f-4b00-8b62-bc4e166c37b2
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"GivenName":"Ada","MiddleName":"Augusta","EnrollmentEmail":"ada.lovelace@contoso.com"}
Response
A status message. On success the subcode is Successfully modified the account..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
AccountGuid missing. | AccountGuid was missing or not a GUID. |
You may only manage your own account. | AccountGuid is not the token holder's id. HTTP 403. |
User does not exist. | No account has that id, and no plan names it as owner (the owner of a plan whose account row is missing gets one made from their user row). |
GivenName, MiddleName, SurName or EnrollmentEmail must be specified. | No field was sent. |
GivenName is invalid. | The value is not plain text or is too long; likewise MiddleName is invalid. and SurName is invalid. |
EnrollmentEmail is not an e-mail address. | The value did not pass the e-mail check. |
EnrollmentEmail must not be empty. | An empty enrollment address was sent. |
The e-mail address is already used by another account. | Another account signed up with that address. |
ListPlanDetails
Returns a plan with the subscriptions on it, each with its provisioning state, organization quota and organizations. The plan must belong to the token holder.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
PlanGuid | Yes | Path segment. The plan's GUID (Plan in OnBoardAccount). | GUID, max 120. |
Example request
GET https://api.moleant.com/v2/account/plans/b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An object with a PlanDetails array (one element) and a Subscriptions array with the fields of ListAccountDetails.
| Attribute | Description | Example |
|---|---|---|
PlanDetails[].PlanGuid | The plan's GUID. | b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b |
PlanDetails[].AccountGuid | The account that owns the plan. | 74c78695-356f-4b00-8b62-bc4e166c37b2 |
PlanDetails[].CreationDate / ModificationDate | When the plan was created and last changed, as stored (ISO 8601 text). | 2026-03-01T10:00:00 / 2026-03-01T10:00:00 |
Subscriptions[].SubscriptionGuid | Subscription GUID (the product). | f17f35b502f0d4d965ef594fe1c9fc0c |
Subscriptions[].Name / Description | Subscription name and description from the catalogue. | Moleant Discover / Moleant Discover standard subscription |
Subscriptions[].LandingZone | Where to send the user when the product is ready. | https://discover.moleant.com/ |
Subscriptions[].MonthlyFee | Monthly fee from the catalogue. | 1000 |
Subscriptions[].MaxOrganizations | How many organizations the product allows per plan. | 5 |
Subscriptions[].StateControl | 1 received, 2 started, 4 in progress, 8 ready, 16 failed. | 8 |
Subscriptions[].StateMessage | Text to show for the state. | This subscription is now ready and can be used. |
Subscriptions[].UsedOrganizations | The plan's organization count on this product, as the quota check reads it. | 2 |
Subscriptions[].LastPaid | Epoch of the last payment, 0 when none is recorded. | 1772359200 |
Subscriptions[].Organizations[].CGuid | GUID of an organization of the plan that is enabled for this product. | 7a8b26724e508ade |
Subscriptions[].Organizations[].CustomerName / CustomerShortName | The organization's name and short name. | Contoso AB / Contoso |
Example response
{"PlanDetails":[{"PlanGuid":"b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b","AccountGuid":"74c78695-356f-4b00-8b62-bc4e166c37b2",
"CreationDate":"2026-03-01T10:00:00","ModificationDate":"2026-03-01T10:00:00"}],
"Subscriptions":[{"SubscriptionGuid":"f17f35b502f0d4d965ef594fe1c9fc0c","Name":"Moleant Discover",
"Description":"Moleant Discover standard subscription","LandingZone":"https://discover.moleant.com/",
"MonthlyFee":1000,"MaxOrganizations":5,"StateControl":8,"StateMessage":"This subscription is now ready and can be used.",
"UsedOrganizations":2,"LastPaid":1772359200,
"Organizations":[{"CGuid":"7a8b26724e508ade","CustomerName":"Contoso AB","CustomerShortName":"Contoso"},
{"CGuid":"3f1c9d2e5b7a4c80","CustomerName":"Contoso Norway AS","CustomerShortName":"ContosoNO"}]}]}
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
PlanGuid missing. | PlanGuid was missing or not a GUID (hexadecimal characters and dashes). |
Plan does not exist. | No plan has that GUID. |
You may only manage your own plan. | The caller neither owns nor co-administers the plan. HTTP 403. |
ListPlanOrganizations
Lists every organization of a plan from the shared registry, whatever Moleant product created it, with the subscriptions each one is enabled for. ListOrganizations lists what the caller's Discover roles reach; this lists what the plan owns.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
PlanGuid | Yes | Path segment. The plan's GUID, as ListAccountSession and ListAccountDetails return it (a UUID with dashes for plans made before October 2026, 32 hexadecimal characters for newer ones). | GUID, max 120. |
Subscription | No | Only the organizations enabled for this subscription. | GUID, max 120. |
Example request
GET https://api.moleant.com/v2/account/plans/b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b/organizations?Subscription=f17f35b502f0d4d965ef594fe1c9fc0c
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An Organizations array, in creation order.
| Attribute | Description | Example |
|---|---|---|
Organizations[].CGuid | Organization GUID. | 7a8b26724e508ade |
Organizations[].CustomerName / CustomerShortName | Name and short name. | Contoso AB / Contoso |
Organizations[].CustomerDetails | Free-text details. | Head office and two branches |
Organizations[].Description | Description, plain text. | Nordic manufacturing group |
Organizations[].HQAddress | Head office address, plain text. | Storgatan 1, Stockholm |
Organizations[].Subscriptions[].SubscriptionGuid | A subscription the organization is enabled for. | f17f35b502f0d4d965ef594fe1c9fc0c |
Organizations[].Subscriptions[].Name | Its name from the catalogue. | Moleant Discover |
Organizations[].Created | When the organization was registered (UTC). | 2026-03-01 10:05:12 |
Example response
{"Organizations":[
{"CGuid":"7a8b26724e508ade","CustomerName":"Contoso AB","CustomerShortName":"Contoso",
"CustomerDetails":"Head office and two branches","Description":"Nordic manufacturing group","HQAddress":"Storgatan 1, Stockholm",
"Subscriptions":[{"SubscriptionGuid":"f17f35b502f0d4d965ef594fe1c9fc0c","Name":"Moleant Discover"}],
"Created":"2026-03-01 10:05:12"}
]}
{"Organizations":["No organization information was found for this plan."]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
PlanGuid missing. | PlanGuid was missing or not a GUID (hexadecimal characters and dashes). |
Plan does not exist. | No plan has that GUID. |
You may only manage your own plan. | The caller neither owns nor co-administers the plan. HTTP 403. |
Subscription is invalid. | Subscription was sent but is not a GUID. |
AddPlanOrganization
Creates an organization of the plan in one or more of the plan's products, with one GUID in all of them: the organization is registered once and enabled for every product named. The caller may choose the GUID, so that a website can show it before the organization exists. In Discover the organization is provisioned as AddOrganization does it (its environments and the creator's owner role); a product that keeps no rows in this API gets the registry row, the product link and the creator's role. Each product's organization quota is checked.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
PlanGuid | Yes | Path segment. The plan's GUID, as ListAccountSession and ListAccountDetails return it (a UUID with dashes for plans made before October 2026, 32 hexadecimal characters for newer ones). | GUID, max 120. |
CustomerName | Yes | The organization's name. | Plain text, max 120. |
CustomerShortName | No | Short name. Made from the name when left out. | Plain text, max 40. |
Subscriptions | Yes | Array of subscription GUIDs: the products the organization is created in. Every one must be on the plan and ready (StateControl 8). | GUID, max 120 each. |
CGuid | No | The GUID the organization gets. It must not be in use. Generated (16 hexadecimal characters) when left out. | Alphanumeric, max 50. |
Example request
POST https://api.moleant.com/v2/account/plans/b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b/organizations
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"CustomerName":"Contoso Nordics AB","CustomerShortName":"Nordics","Subscriptions":["f17f35b502f0d4d965ef594fe1c9fc0c"],"CGuid":"3f6a2c1e8b474d0a9c5e1a7d2b9e4f10"}
Response
A status message. On success the subcode is Successfully created organization. and the organization's CGuid is returned in the status message.
CGuid for the new record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
PlanGuid missing. | PlanGuid was missing or not a GUID (hexadecimal characters and dashes). |
Plan does not exist. | No plan has that GUID. |
You may only manage your own plan. | The caller neither owns nor co-administers the plan. HTTP 403. |
CustomerName must be specified. | The name was missing or empty. |
CGuid is invalid. | CGuid was sent but is not 1 to 50 letters or digits. |
An organization with that CGuid already exists. | The chosen GUID is taken. |
Subscriptions must name at least one subscription of the plan. | Subscriptions was missing or empty. |
One of the subscriptions is not on the plan. | A GUID in Subscriptions is not a product of the plan. |
The subscription is not ready on this plan yet. | A product of the plan is still being provisioned, or its provisioning failed; submessage names it. |
You have used up all n organizations you were allowed to create. | A product's organization quota is used up; submessage names it. |
Unknown error. | A product's quota could not be read. |
Sorry, an error occurred. | The organization could not be created. Nothing is left behind; what went wrong is written to the API's error log and mailed to the administrators. |
ModifyPlanOrganization
Changes the name and texts of one of the plan's organizations, in every product at once (they share the row). Only the fields you send are changed; at least one is required. The GUID, the plan and the products stay.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
PlanGuid | Yes | Path segment. The plan's GUID, as ListAccountSession and ListAccountDetails return it (a UUID with dashes for plans made before October 2026, 32 hexadecimal characters for newer ones). | GUID, max 120. |
CGuid | Yes | Path segment. The organization's GUID; it must be one of the plan's. | Alphanumeric, max 50. |
CustomerName | No | New name. | Plain text, max 120. |
CustomerShortName | No | New short name. | Plain text, max 40. |
CustomerDetails | No | New details text. | Plain text, max 120. |
Description | No | New description. | Plain text, max 4,096. |
HQAddress | No | New head office address. | Plain text, max 4,096. |
Example request
PATCH https://api.moleant.com/v2/account/plans/b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b/organizations/3f6a2c1e8b474d0a9c5e1a7d2b9e4f10
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"CustomerName":"Contoso Nordics AB"}
Response
A status message. On success the subcode is Successfully modified information about the organization..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
PlanGuid missing. | PlanGuid was missing or not a GUID (hexadecimal characters and dashes). |
Plan does not exist. | No plan has that GUID. |
You may only manage your own plan. | The caller neither owns nor co-administers the plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or not alphanumeric. |
The organization does not belong to this plan. | No organization of the plan has that GUID. HTTP 403. |
CustomerName, CustomerShortName, CustomerDetails, Description or HQAddress must be specified. | No field was sent, or every field sent was empty. |
DeletePlanOrganization
Removes one of the plan's organizations with all of its data in every product it is in. An organization Discover serves goes through Discover's removal (its stored files, then the registry row, which cascades through every product's tables); one Discover never served is the registry row alone. Removal is all or nothing, as DeleteOrganization.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
PlanGuid | Yes | Path segment. The plan's GUID, as ListAccountSession and ListAccountDetails return it (a UUID with dashes for plans made before October 2026, 32 hexadecimal characters for newer ones). | GUID, max 120. |
CGuid | Yes | Path segment. The organization's GUID; it must be one of the plan's. | Alphanumeric, max 50. |
Example request
DELETE https://api.moleant.com/v2/account/plans/b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b/organizations/3f6a2c1e8b474d0a9c5e1a7d2b9e4f10
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is Successfully deleted organization..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
PlanGuid missing. | PlanGuid was missing or not a GUID (hexadecimal characters and dashes). |
Plan does not exist. | No plan has that GUID. |
You may only manage your own plan. | The caller neither owns nor co-administers the plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or not alphanumeric. |
The organization does not belong to this plan. | No organization of the plan has that GUID. HTTP 403. |
Sorry, an error occurred. | The organization could not be removed. It stays listed so the removal can be repeated; what went wrong is written to the API's error log and mailed to the administrators. |
AddPlanOrganizationSubscription
Enables an organization the plan already has for one more of the plan's products, keeping its GUID: a plan that buys a second product adds its existing organizations to it here. For Discover this writes the product link and Discover's default environments; a product that keeps no rows in this API gets the link alone. The caller is given the owner role in the organization when they have none, so that they can open it in the product. The product's organization quota is checked.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
PlanGuid | Yes | Path segment. The plan's GUID, as ListAccountSession and ListAccountDetails return it (a UUID with dashes for plans made before October 2026, 32 hexadecimal characters for newer ones). | GUID, max 120. |
CGuid | Yes | Path segment. The organization's GUID; it must be one of the plan's. | Alphanumeric, max 50. |
SubscriptionGuid | Yes | Path segment. The product to enable the organization for; it must be on the plan and ready. | GUID, max 120. |
Example request
PUT https://api.moleant.com/v2/account/plans/b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b/organizations/3f6a2c1e8b474d0a9c5e1a7d2b9e4f10/subscriptions/f17f35b502f0d4d965ef594fe1c9fc0c
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is The organization was added to the subscription. and the organization's CGuid is returned in the status message.
CGuid for the record.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
PlanGuid missing. | PlanGuid was missing or not a GUID (hexadecimal characters and dashes). |
Plan does not exist. | No plan has that GUID. |
You may only manage your own plan. | The caller neither owns nor co-administers the plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or not alphanumeric. |
The organization does not belong to this plan. | No organization of the plan has that GUID. HTTP 403. |
SubscriptionGuid missing. | SubscriptionGuid was missing or not a GUID. |
The subscription is not on the plan. | The plan does not hold that product. |
The subscription is not ready on this plan yet. | The product is still being provisioned, or its provisioning failed; submessage names it. |
The organization is already enabled for this subscription. | Nothing to do. |
You have used up all n organizations you were allowed to create. | The product's organization quota is used up; submessage names it. |
Unknown error. | The product's quota could not be read. |
Sorry, an error occurred. | The product could not be enabled. The organization is unchanged; what went wrong is written to the API's error log and mailed to the administrators. |
ListPlanAdmins
Lists who administers the plan: its owner (the Plan admin) first, then its Co-admins, invitations not yet accepted among them.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
PlanGuid | Yes | Path segment. The plan's GUID, as ListAccountSession and ListAccountDetails return it (a UUID with dashes for plans made before October 2026, 32 hexadecimal characters for newer ones). | GUID, max 120. |
Example request
GET https://api.moleant.com/v2/account/plans/b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b/admins
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An Admins array: the owner, then the Co-admins in the order they were added.
| Attribute | Description | Example |
|---|---|---|
Admins[].ObjectID | The administrator's object id; 000000000000 while an invitation is pending. | 74c78695-356f-4b00-8b62-bc4e166c37b2 |
Admins[].Email | Sign-in address (for a pending invitation, the address invited). | ada.lovelace.4711@moleantusers.com |
Admins[].CreationEmail | The address the person signed up or was invited with, or empty. | ada.lovelace@contoso.com |
Admins[].GivenName / SurName | Names, when known; empty otherwise. | Ada / Lovelace |
Admins[].Role | owner (the Plan admin, exactly one) or coadmin. | owner |
Admins[].Pending | "1" while the person's invitation has not been accepted, else "0". Strings. | 0 |
Example response
{"Admins":[
{"ObjectID":"74c78695-356f-4b00-8b62-bc4e166c37b2","Email":"ada.lovelace.4711@moleantusers.com","CreationEmail":"ada.lovelace@contoso.com","GivenName":"Ada","SurName":"Lovelace","Role":"owner","Pending":"0"},
{"ObjectID":"000000000000","Email":"grace@fabrikam.com","CreationEmail":"","GivenName":"","SurName":"","Role":"coadmin","Pending":"1"}
]}
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
PlanGuid missing. | PlanGuid was missing or not a GUID (hexadecimal characters and dashes). |
Plan does not exist. | No plan has that GUID. |
You may only manage your own plan. | The caller neither owns nor co-administers the plan. HTTP 403. |
AddPlanAdmin
Makes a person a Co-admin of the plan: someone who can manage its subscriptions, organizations and billing in Moleant Account. A person who is already a Moleant user is given read access to the plan's organizations they lack and the co-admin role, and told by e-mail. A new person is invited as a guest of Moleant's directory (Mode Invite, for an address at a Microsoft tenant) or created in Moleant's tenant with their sign-in details mailed to them (Mode Create); when Mode is left out, the address's domain decides. The invitation gives them read access to every organization of the plan, and the co-admin role from their first sign-in to Moleant Account.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
PlanGuid | Yes | Path segment. The plan's GUID, as ListAccountSession and ListAccountDetails return it (a UUID with dashes for plans made before October 2026, 32 hexadecimal characters for newer ones). | GUID, max 120. |
Email | Yes | The person's e-mail address. | E-mail, max 255. |
FirstName | No | Given name. Required when a user is created. | Plain text, max 255. |
LastName | No | Surname. Required when a user is created. | Plain text, max 255. |
Mode | No | Invite or Create. Left out, an address whose domain is a Microsoft tenant is invited and any other is created. | Alphanumeric, max 10. Case-sensitive. |
Example request
POST https://api.moleant.com/v2/account/plans/b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b/admins
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Email":"grace@fabrikam.com","FirstName":"Grace","LastName":"Hopper"}
Response
A status message. On success the subcode is The user is now a co-admin of the plan. for an existing user, Invitation sent and user added. for a guest invitation, or User was successfully created. for a created user.
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
PlanGuid missing. | PlanGuid was missing or not a GUID (hexadecimal characters and dashes). |
Plan does not exist. | No plan has that GUID. |
You may only manage your own plan. | The caller neither owns nor co-administers the plan. HTTP 403. |
Email must be specified. | Email was missing or not an e-mail address. |
Mode not specified or incorrect. | Mode was sent but is neither Invite nor Create. |
That person is already an administrator of this plan. | The address is the owner's or an existing Co-admin's. |
Could not handle existing users. Please contact system administration. | Several users carry that sign-in address. |
The user already owns a plan and cannot be a co-admin of another. | The existing user is the Plan admin of another plan. |
The user is already a co-admin of another plan. | The existing user co-administers another plan. |
Could not authenticate with the Microsoft Graph API. Please contact MoleAnt System Administration. | Moleant's directory could not be reached. |
The domain does not appear to be a Microsoft federation. Could not send invite. | Mode Invite for an address whose domain is not a Microsoft tenant. |
Could not send invitation. Please contact MoleAnt System Administration. | The directory refused the guest invitation. |
Firstname and Lastname must be specified when creating a new user. | A user is to be created but a name is missing. |
The target email is already used for another user. | A user was already created for that address. |
Failed to create user. | The directory refused to create the user. |
DeletePlanAdmin
Takes the Co-admin role away from a person. An accepted Co-admin keeps their access to the organizations (a Discover administrator removes that with DeleteUser); an invitation that was never accepted is withdrawn altogether. The owner cannot be removed: hand the plan over first.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
PlanGuid | Yes | Path segment. The plan's GUID, as ListAccountSession and ListAccountDetails return it (a UUID with dashes for plans made before October 2026, 32 hexadecimal characters for newer ones). | GUID, max 120. |
Email | Yes | Path segment. The Co-admin's address, URL-encoded: their sign-in address, or the address they were invited or created with. | E-mail, max 255. |
Example request
DELETE https://api.moleant.com/v2/account/plans/b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b/admins/grace%40fabrikam.com
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is The co-admin was removed from the plan.; for a pending invitation the submessage is The invitation was withdrawn..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
PlanGuid missing. | PlanGuid was missing or not a GUID (hexadecimal characters and dashes). |
Plan does not exist. | No plan has that GUID. |
You may only manage your own plan. | The caller neither owns nor co-administers the plan. HTTP 403. |
Email must be specified. | Email was missing or not an e-mail address. |
User not found. | No user has that address. |
The owner of the plan cannot be removed. Hand the plan over first. | The address is the Plan admin's. |
You cannot remove yourself as a co-admin. | The address is the caller's own. |
That person is not a co-admin of this plan. | The user exists but does not co-administer this plan. |
TransferPlanOwnership
The owner hands the Plan admin role to a Co-admin who has accepted their invitation. There is only ever one owner: the plan's account becomes the new owner (who gets an account row of their own when they have none), the shared users swap the owner and co-admin roles, and the former owner stays on as a Co-admin. The purchase (the Stripe customer) stays with the plan. One transaction; the new owner is told by e-mail.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
PlanGuid | Yes | Path segment. The plan's GUID, as ListAccountSession and ListAccountDetails return it (a UUID with dashes for plans made before October 2026, 32 hexadecimal characters for newer ones). | GUID, max 120. |
Email | Yes | The Co-admin who becomes the owner: their sign-in address, or the address they were created with. | E-mail, max 255. |
Example request
PUT https://api.moleant.com/v2/account/plans/b0d2f6a1c3e94d7e8b5a2c1d0e9f8a7b/owner
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Email":"grace@fabrikam.com"}
Response
A status message. On success the subcode is The plan was handed over..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
PlanGuid missing. | PlanGuid was missing or not a GUID (hexadecimal characters and dashes). |
Plan does not exist. | No plan has that GUID. |
You may only manage your own plan. | The caller neither owns nor co-administers the plan. HTTP 403. |
Only the owner of the plan may do this. | The caller is a Co-admin. HTTP 403. |
Email must be specified. | Email was missing or not an e-mail address. |
User not found. | No single user has that address. |
The invitation has not been accepted yet. | The Co-admin has not signed in since being invited. |
You already own the plan. | The address is the caller's own. |
Only a co-admin of the plan can become its owner. | The user does not co-administer this plan. |
The user already owns a plan. | The user is the Plan admin of another plan. |
ListSubscriptions
Returns the product catalogue: every subscription that can be purchased, with its fee and organization quota.
Request
Authentication: Account token. Fields marked Path segment are part of the URL; the others are query parameters.
No further parameters.
Example request
GET https://api.moleant.com/v2/account/subscriptions
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A Subscriptions array.
| Attribute | Description | Example |
|---|---|---|
Subscriptions[].SubscriptionGuid | Subscription GUID, the value CreateAccount takes in PurchasedSubscriptions. | f17f35b502f0d4d965ef594fe1c9fc0c |
Subscriptions[].Name / Description | Name and description. | Moleant Discover / Moleant Discover standard subscription |
Subscriptions[].LandingZone | Where the product lives. | https://discover.moleant.com/ |
Subscriptions[].MonthlyFee | Monthly fee. | 1000 |
Subscriptions[].MaxOrganizations | How many organizations the product allows per plan. | 5 |
Example response
{"Subscriptions":[{"SubscriptionGuid":"f17f35b502f0d4d965ef594fe1c9fc0c","Name":"Moleant Discover",
"Description":"Moleant Discover standard subscription","LandingZone":"https://discover.moleant.com/","MonthlyFee":1000,"MaxOrganizations":5}]}
{"Subscriptions":["No subscription information was found."]}.Failures are the common failures only.
AcceptOrder
Stripe's webhook for a completed checkout. For a customer Moleant has not seen before it creates an account in Moleant's directory with the default subscription and e-mails the sign-in details. For a known customer it records the payment.
v1 alias: POST https://api.moleant.com/discover/AcceptOrder/ with the same fields, and the credential, in a JSON body.
Request
Authentication: Stripe signature. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
data.object.customer | Yes | Stripe customer id; identifies the order. | Text, max 200. |
data.object.customer_name | Yes | Customer name; the first two words become given name and surname. | Text, max 200. |
data.object.customer_email | Yes | Customer e-mail address; receives the welcome e-mail. | Text, max 355. |
data.object.customer_phone | Yes | Customer phone number. | Text, max 200. |
data.object.id | No | Read, never used. |
Example request
POST https://api.moleant.com/v2/webhooks/stripe
Stripe-Signature: t=1726570000,v1=…
Content-Type: application/json
{"id":"evt_1MRI0CH2l3145r1K1Kl9v4d7","type":"checkout.session.completed","data":{"object":{"id":"cs_live_a1b2...","customer":"cus_NBfaOUY0f3fziN","customer_name":"Ada Lovelace","customer_email":"ada@contoso.com","customer_phone":"+46701234567"}}}
Response
A status message. On success the subcode is User was successfully created., with the same text in submessage. A known customer gets a Success status with an empty subcode.
Failures:
subcode | Cause |
|---|---|
customer missing | The field was missing; likewise customer_name missing, customer_phone missing and customer_email missing. submessage: Provisioning failure. |
Could not authenticate with the Microsoft Graph API. Please contact MoleAnt System Administration.. EC: … | Moleant could not get a Graph token. |
Failed to create user. EC: … | Graph rejected the new account. |
User could not be created. | The account record could not be written. |
An error occurred while creating the user. Please try again later. | Anything else. submessage: User creation failure. |
Stripe-Signature header for the endpoint's signing secret; unsigned calls get HTTP 403. Customer details are also read from data.object.customer_details when the top-level fields are absent.Moleant Risk
Moleant Risk is the second product of the Moleant family: assessments of systems and vendors against questionnaires (templates), and vulnerability findings followed through to a verified fix. Its web app, risk.moleant.com, calls the operations below. They share the organizations, users and roles of the Moleant registry with Moleant Discover (an organization is enabled for Risk through its plan, see Accounts, plans and subscriptions) and keep Risk's own data in the Risk database. The design, the tables and the permission rules are in docs/moleant-risk.md of the repository.
Credential: a user token issued by the Risk web app under the Discover key set (Authorization: Bearer). API keys and engine tokens are refused on every route here. Roles: a Risk role is a position of the organization's permission bit string, per organization: 10 administrator, 11 studio (Assessment studio manager), 12 reviewer, 13 contributor. The plan's owner and co-admins administer Risk in every organization of the plan that is enabled for it. Settings gives roles plan-wide, which writes them into every Risk organization of the plan. Every Risk role also sets bit 1 (read), and the administrator role bit 2 (write), so that the shared address book and the organization's details can be read and, by administrators, changed through the Discover operations.
Scope: the resources of a plan (who has access, the risk model, the templates) sit directly under /v2/risk/; an organization's (its subjects, assessments, findings, tickets, assets) under /v2/risk/organizations/{CGuid}/, and the listings of those exist in both forms, the plan-wide one covering every organization of the caller's Risk session. Dates that name a day (deadlines, when something was saved) are YYYY-MM-DD.
ListRiskSession
Who the token holder is in Moleant Risk: their plan, their roles (the union over the plan's organizations), whether they own or co-administer the plan, and the Risk organizations they may see with their roles in each. The web app calls it once per page after SecBuildTicket. A person with nothing in Risk gets a session with HasAccess false rather than a failure; so does the owner or co-admin of a plan that does not hold the Moleant Risk subscription, however many organizations the plan has.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
No parameters.
Example request
GET https://api.moleant.com/v2/risk/me
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A Session array with one entry.
| Attribute | Description | Example |
|---|---|---|
Session[].ObjectID / Email | The token holder's Entra object id and sign-in address. | 3849208c-... / erik@example.com |
Session[].PlanGuid | The plan of the session: the one the person owns or co-administers when it holds the Moleant Risk subscription, else the plan of the organizations where they hold a Risk role. Empty when they have nothing in Risk. | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
Session[].PlanAdmin | A boolean: whether they own or co-administer the plan, which makes them an administrator in every Risk organization of it. | true |
Session[].HasAccess | A boolean: whether they may use Moleant Risk at all. | true |
Session[].Roles | Their Risk roles over all organizations: administrator, studio, reviewer, contributor. | ["administrator"] |
Session[].Organizations[].CGuid / Name / ShortName / Description | An organization of the plan enabled for Risk that they may see. | 7a8b26724e508ade / Contoso AB / Contoso / Maker of things |
Session[].Organizations[].Roles | Their Risk roles in it. | ["reviewer","contributor"] |
Session[].Organizations[].Bits | Their permission bit string in it (empty for a plan admin without a role row). | 10000000010100000000000000000000 |
Session[].Organizations[].Discover | A boolean: whether the organization is also enabled for Moleant Discover, which is where its systems, vendors and vulnerability findings come from. | true |
Example response
{
"Session": [
{
"ObjectID": "3849208c-0000-0000-0000-000000000000",
"Email": "erik@example.com",
"PlanGuid": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"PlanAdmin": true,
"HasAccess": true,
"Roles": [
"administrator"
],
"Organizations": [
{
"CGuid": "7a8b26724e508ade",
"Name": "Contoso AB",
"ShortName": "Contoso",
"Description": "Maker of things",
"Roles": [
"administrator"
],
"Bits": "",
"Discover": true
}
]
}
]
}
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. |
User objectID invalid or empty. | The token carries no usable object id. |
ListRiskAccess
Everybody who has access to Moleant Risk on the caller's plan: the people with a Risk role in any of the plan's Risk organizations, and the plan's owner and co-admins, who administer Risk without a role row. For a Risk administrator or a plan admin.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
No parameters.
Example request
GET https://api.moleant.com/v2/risk/access
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An Access array, ordered by name.
| Attribute | Description | Example |
|---|---|---|
Access[].Email | The sign-in address the person is known by (the address of a pending invitation, or the Moleant address of a created user). | maja@example.com |
Access[].InvitedEmail | The address the invitation went to, when it differs. | maja.lindqvist@pine.example |
Access[].Name | First and last name from the user row, or empty. | Maja Lindqvist |
Access[].Roles | The Risk roles, the union over the plan's organizations. | ["studio","reviewer"] |
Access[].Status | invited while the invitation is pending, else active. | active |
Access[].InvitedAt | The day the invitation was made, for a pending one; empty otherwise. | 2026-10-20 |
Access[].PlanAdmin | A boolean: the plan's owner or a co-admin, who cannot be removed here. | false |
Example response
{
"Access": [
{
"Email": "erik@example.com",
"InvitedEmail": "erik@example.com",
"Name": "Erik Example",
"Roles": [
"administrator"
],
"Status": "active",
"InvitedAt": "",
"PlanAdmin": true
},
{
"Email": "maja@example.com",
"InvitedEmail": "",
"Name": "Maja Lindqvist",
"Roles": [
"studio",
"reviewer"
],
"Status": "active",
"InvitedAt": "",
"PlanAdmin": false
}
]
}
{"Access":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Only a Risk administrator may manage who has access. | The caller is neither a Risk administrator nor a plan admin. HTTP 403. |
AddRiskAccess
Gives a person access to Moleant Risk with the given roles, in every organization of the plan that is enabled for Risk. An existing Moleant user (of any product) gets the roles at once; a pending invitation gets them added; a new person is invited as a guest (Mode Invite, a Microsoft account) or created as a Moleant user (Mode Create, with a welcome mail carrying the first password). Without Mode the API invites an address of a Microsoft tenant and creates the others. For a Risk administrator or a plan admin.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Email | Yes | The person's address. | E-mail, max 255. |
Roles | Yes | Array of role names: administrator, studio, reviewer, contributor. At least one. | Alphanumeric, max 20 each. |
Name | No | The person's name, first and last, for a created user or a pending invitation. FirstName and LastName may be sent instead. | Text, max 100. |
FirstName | No | First name. | Text, max 128. |
LastName | No | Last name. Required with Name absent when Mode is Create. | Text, max 128. |
Mode | No | Invite or Create; decided from the address when absent. | Alphanumeric, max 10. |
The subcode says what happened: The user was given access to Moleant Risk. (an existing user), The invitation was updated with the roles. (a pending invitation), Invitation sent and user added. (a guest invitation) or User was successfully created. (a created user).
Example request
POST https://api.moleant.com/v2/risk/access
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Email":"maja.lindqvist@pine.example","Name":"Maja Lindqvist","Roles":["studio","reviewer"]}
Response
A status message. On success the subcode is The user was given access to Moleant Risk..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Only a Risk administrator may manage who has access. | The caller is neither a Risk administrator nor a plan admin. HTTP 403. |
Email must be specified. | Email was missing or not an address. |
Roles must name at least one role: administrator, studio, reviewer or contributor. | Roles was missing, empty or named something else. |
Mode not specified or incorrect. | Mode was neither Invite nor Create. |
The plan has no organization enabled for Moleant Risk yet. | There is nothing to give access to. |
Could not handle existing users. Please contact system administration. | Several user rows share the address. |
The domain does not appear to be a Microsoft federation. Could not send invite. | Mode Invite for an address outside a Microsoft tenant. |
Firstname and Lastname must be specified when creating a new user. | Mode Create without a name. |
The target email is already used for another user. | A created user already has that invitation address. |
Could not authenticate with the Microsoft Graph API. Please contact MoleAnt System Administration. | The directory could not be reached. |
Could not send invitation. Please contact MoleAnt System Administration. | The guest invitation was refused by the directory. |
Failed to create user. | The directory did not create the user. |
ModifyRiskAccess
Replaces a person's Risk roles in every Risk organization of the plan, and the name of a pending invitation. For a Risk administrator or a plan admin.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Email | Yes | Path segment. The sign-in address the person is known by (Email of ListRiskAccess), URL-encoded. | E-mail, max 255. |
Roles | No | Array of role names that replace the roles: administrator, studio, reviewer, contributor. At least one of Roles and Name is required. | Alphanumeric, max 20 each. |
Name | No | A new name for a pending invitation (first and last). | Text, max 100. |
Example request
PUT https://api.moleant.com/v2/risk/access/maja%40example.com
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Roles":["studio"]}
Response
A status message. On success the subcode is The access was updated..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Only a Risk administrator may manage who has access. | The caller is neither a Risk administrator nor a plan admin. HTTP 403. |
Email must be specified. | Email was missing or not an address. |
The person has no access to Moleant Risk. | No role row with that address in the plan's Risk organizations. |
Roles must name at least one role: administrator, studio, reviewer or contributor. | Roles was empty or named something else. |
Roles or Name must be specified. | Nothing to change was sent. |
DeleteRiskAccess
Takes a person's Risk roles away in every Risk organization of the plan. Their Discover permissions stay (the read bit, and a write bit the administrator role set); a pending invitation made from Risk is withdrawn entirely. For a Risk administrator or a plan admin.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Email | Yes | Path segment. The sign-in address, URL-encoded. | E-mail, max 255. |
For a pending invitation the subcode is The invitation was withdrawn.
Example request
DELETE https://api.moleant.com/v2/risk/access/maja%40example.com
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is The access was removed..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Only a Risk administrator may manage who has access. | The caller is neither a Risk administrator nor a plan admin. HTTP 403. |
The person has no access to Moleant Risk. | No role row with that address in the plan's Risk organizations. |
You may not remove your own access. | The address is the caller's. |
ResendRiskInvitation
Sends a pending invitation again: the directory's guest invitation for a Microsoft account, and the mail. For a Risk administrator or a plan admin.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Email | Yes | Path segment. The address of the pending invitation, URL-encoded. | E-mail, max 255. |
Example request
POST https://api.moleant.com/v2/risk/access/sofia.berg%40northlumber.example/invitation
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is The invitation was sent again..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Only a Risk administrator may manage who has access. | The caller is neither a Risk administrator nor a plan admin. HTTP 403. |
The person has no access to Moleant Risk. | No role row with that address in the plan's Risk organizations. |
The invitation has been accepted already. | The person has signed in. |
Could not authenticate with the Microsoft Graph API. Please contact MoleAnt System Administration. | The directory could not be reached. |
Could not send invitation. Please contact MoleAnt System Administration. | The guest invitation was refused by the directory. |
ListRiskModel
The plan's risk model: how much each of five things weighs in the risk score of a vulnerability finding (shares of the total, so they need not add up to 100), and how many days a finding gets to be fixed by its priority, with kev the most days a known exploited flaw is given. The standard values until an administrator saves the model. Any Risk role reads it.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
No parameters.
Example request
GET https://api.moleant.com/v2/risk/model
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A RiskModel array with one entry.
| Attribute | Description | Example |
|---|---|---|
RiskModel[].Weights | An object with the weights, 0 to 100 each: cvss, active (exploited now), exploit (exploit code), exposure, criticality. | {"cvss":20,...} |
RiskModel[].Sla | An object with the days to fix, 1 to 365 each: critical, high, medium, low, kev. | {"critical":7,...} |
RiskModel[].Saved | A boolean: whether the plan has saved a model (false means the standard values). | true |
RiskModel[].UpdatedBy / UpdatedAt | Who saved it last and when (UTC); empty for the standard values. | erik@example.com / 2026-11-03T10:15:00Z |
Example response
{
"RiskModel": [
{
"Weights": {
"cvss": 20,
"active": 25,
"exploit": 20,
"exposure": 20,
"criticality": 15
},
"Sla": {
"critical": 7,
"high": 14,
"medium": 30,
"low": 90,
"kev": 3
},
"Saved": false,
"UpdatedBy": "",
"UpdatedAt": ""
}
]
}
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
ModifyRiskModel
Saves the plan's risk model. Only the values sent are changed; the rest keep what they are. At least one weight must be above 0. For a Risk administrator or a plan admin.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Weights | No | An object with any of cvss, active, exploit, exposure, criticality, each a number from 0 to 100. At least one of Weights and Sla is required. | |
Sla | No | An object with any of critical, high, medium, low, kev, each a number of days from 1 to 365. |
Example request
PUT https://api.moleant.com/v2/risk/model
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Weights":{"cvss":30,"active":30,"exploit":10,"exposure":15,"criticality":15},"Sla":{"critical":5}}
Response
A status message. On success the subcode is The risk model was saved..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Only a Risk administrator may change the risk model. | The caller is neither a Risk administrator nor a plan admin. HTTP 403. |
Weights or Sla must be specified. | Neither was sent as an object. |
A weight is a number from 0 to 100. | A weight was outside the range; the submessage names it. |
The days to fix are a number from 1 to 365. | A deadline was outside the range; the submessage names it. |
Give at least one of the weights a value above 0. | Every weight would be 0. |
DeleteRiskModel
Puts the standard values back. For a Risk administrator or a plan admin.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
No parameters.
Example request
DELETE https://api.moleant.com/v2/risk/model
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is The standard values are back..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Only a Risk administrator may change the risk model. | The caller is neither a Risk administrator nor a plan admin. HTTP 403. |
ListRiskSubjects
The subjects of the Assessment Library: the systems and the vendors that can be assessed. For an organization enabled for Moleant Discover they are Discover's systems (with the computers linked to each) and the vendors of its address book, Source discover with the Discover id in SourceID; the ones created in Risk are Source risk. Each comes with its assessments in short. A Discover system or vendor has a SubjectID of 0 until Risk keeps something about it (AddRiskSubject registers it). Any Risk role.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | No | Narrows the listing to one organization of the caller's Risk session. | Alphanumeric, max 50. |
Kind | No | system or vendor; both without it. | Alphanumeric, max 10. |
Example request
GET https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/subjects?Kind=system
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A Subjects array, ordered by organization and name.
| Attribute | Description | Example |
|---|---|---|
Subjects[].SubjectID | Risk's id of the subject. A number; 0 for a Discover system or vendor Risk has nothing about yet. | 12 |
Subjects[].CGuid / Organization | The organization and its name. | 7a8b26724e508ade / Contoso AB |
Subjects[].Kind / Source / SourceID | system or vendor; discover or risk; the Discover SystemID or vendor id, 0 for a local subject. SourceID is a number. | system / discover / 4 |
Subjects[].Name / Description | From Discover for a Discover subject, from Risk for a local one. | Payroll / The payroll system |
Subjects[].RegisteredRisk | A vendor's rating: low, medium, high or empty. | medium |
Subjects[].LinkedVendors | For a system: the SubjectIDs of the vendors it is linked to. | [13] |
Subjects[].LinkedSystems | For a vendor: the names of the systems linked to it. | ["Payroll"] |
Subjects[].Assets[].ServerID / Hostname / OS | For a Discover system: the computers linked to it, which report its vulnerabilities. | 7 / PAY-01 / Windows Server 2022 |
Subjects[].Assessments[].AssessmentID / TemplateKey / Version / Title / Status / Score | Its assessments in short: the template and version, the stage (draft, review, complete) and the reviewer's score or null. | 3 / dora / 1 / DORA assessment / complete / 62 |
Subjects[].Assessments[].SavedAt / SubmittedAt / ReviewedAt | Days: last saved, sent to review, completed; empty when not yet. | 2026-11-03 / 2026-11-01 / 2026-11-03 |
Example response
{
"Subjects": [
{
"SubjectID": 12,
"CGuid": "7a8b26724e508ade",
"Organization": "Contoso AB",
"Kind": "system",
"Source": "discover",
"SourceID": 4,
"Name": "Payroll",
"Description": "The payroll system",
"RegisteredRisk": "",
"LinkedVendors": [
13
],
"LinkedSystems": [],
"Assets": [
{
"ServerID": 7,
"Hostname": "PAY-01",
"OS": "Windows Server 2022"
}
],
"Assessments": [
{
"AssessmentID": 3,
"TemplateKey": "dora",
"Version": 1,
"Title": "DORA assessment",
"Status": "complete",
"Score": 62,
"SavedAt": "2026-11-03",
"SubmittedAt": "2026-11-01",
"ReviewedAt": "2026-11-03"
}
]
}
]
}
{"Subjects":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Kind is invalid. | Kind was neither system nor vendor. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
AddRiskSubject
A system or a vendor created in Risk (Source risk, the default), or Risk's row for a Discover system or vendor (Source discover with SourceID), which the page of an assessment needs before it saves. Registering the same Discover row twice returns the same SubjectID. For a contributor, reviewer or administrator of the organization.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
Kind | Yes | system or vendor. | Alphanumeric, max 10. |
Source | No | discover or risk (the default). | Alphanumeric, max 10. |
SourceID | No | The Discover SystemID or vendor id. Required with Source discover. | Digits, max 10. |
Name | No | Name of a local subject. Required with Source risk; ignored for a Discover one. | Text, max 250. |
Description | No | Description of a local subject. | Text, max 4096. |
RegisteredRisk | No | A local vendor's rating: low, medium or high. | Alphanumeric, max 10. |
The subcode names the kind: The system was added., The vendor was added., or The system is registered. / The vendor is registered. for a Discover one.
Example request
POST https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/subjects
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Kind":"vendor","Name":"CloudByte","Description":"Cloud storage for backups.","RegisteredRisk":"low"}
Response
A status message. On success the subcode is The vendor was added.. The status message also carries SubjectID.
SubjectID.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
User does not have permission to add a system or a vendor in this organization. | The caller has no writing role in the organization. HTTP 403. |
Kind is invalid. | Kind was neither system nor vendor. |
Source is invalid. | Source was neither discover nor risk. |
SourceID missing or invalid. | Source discover without a SourceID. |
The organization is not enabled for Moleant Discover. | A Discover subject in an organization that has no Discover. |
The system does not exist in Moleant Discover. | No Discover system (or vendor: The vendor does not exist in Moleant Discover.) with that id in the organization. |
Name invalid or missing. | A local subject without a name. |
Description is too long. | Description is over its limit. |
RegisteredRisk is invalid. | Not low, medium or high. |
ModifyRiskSubject
Changes a subject: the name and description of a local one (a Discover system or vendor is changed in Discover), a vendor's registered risk, and the vendors a system is linked to. Only the fields sent are changed. For a contributor, reviewer or administrator of the organization.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SubjectID | Yes | Path segment. The subject. | Digits, max 10. |
Name | No | A new name (local subject). | Text, max 250. |
Description | No | A new description (local subject). | Text, max 4096. |
RegisteredRisk | No | A vendor's rating: low, medium, high or empty. | Alphanumeric, max 10. |
LinkedVendors | No | Array of SubjectIDs of vendors of the organization, which replaces the system's links. | Digits, max 10 each. |
Example request
PUT https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/subjects/12
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"LinkedVendors":[13,15]}
Response
A status message. On success the subcode is The system was updated..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
User does not have permission to change a system or a vendor in this organization. | The caller has no writing role in the organization. HTTP 403. |
SubjectID missing or invalid. | No SubjectID. |
The subject does not exist. | No subject with that id in the organization. |
A system or a vendor from Moleant Discover is changed in Discover. | Name or Description for a Discover subject. |
Only a vendor has a registered risk. | RegisteredRisk for a system. |
Only a system is linked to vendors. | LinkedVendors for a vendor. |
LinkedVendors must be a list of SubjectIDs. | LinkedVendors was not a list of ids. |
One of the linked vendors does not exist in this organization. | A SubjectID names no vendor of the organization. |
Name, Description, RegisteredRisk or LinkedVendors must be specified. | Nothing to change was sent. |
DeleteRiskSubject
Deletes a subject with its assessments and links. For a Discover system or vendor only Risk's row goes; Discover keeps it. For a contributor, reviewer or administrator of the organization.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SubjectID | Yes | Path segment. The subject. | Digits, max 10. |
Example request
DELETE https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/subjects/12
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is The system was deleted..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
User does not have permission to delete a system or a vendor in this organization. | The caller has no writing role in the organization. HTTP 403. |
The subject does not exist. | No subject with that id in the organization. |
ListRiskTemplates
The plan's templates with every version in short, without the questions. A template is for systems or for vendors (Kind) and is named by its key: dora, iso27001 and system-criticality are the built-in ones once someone has changed them in Assessment Studio, the others carry the studio's key. A version is draft, published (at most one per template) or superseded. Any Risk role.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
No parameters.
Example request
GET https://api.moleant.com/v2/risk/templates
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A Templates array.
| Attribute | Description | Example |
|---|---|---|
Templates[].Kind / TemplateKey | system or vendor, and the key. | system / c1k2m3n4 |
Templates[].Versions[].Number / Status / Name | The version number (a number), its status and its name. | 2 / published / Cloud backup audit |
Templates[].Versions[].QuestionCount | How many questions it has. A number. | 9 |
Templates[].Versions[].Distribution | The CGuids of the organizations a published version goes to, or null for every organization of the plan. | ["7a8b26724e508ade"] |
Templates[].Versions[].BasedOn | The version it was copied from, or null. A number. | 1 |
Templates[].Versions[].PublishedAt / PublishedBy | The day it was published and by whom; empty for a draft. | 2026-11-03 / erik@example.com |
Templates[].Versions[].AssessmentsMade | How many assessments were made on it in the plan's organizations. A number. | 4 |
Templates[].Versions[].UpdatedAt | When it was last changed (UTC). | 2026-11-03T10:15:00Z |
Example response
{
"Templates": [
{
"Kind": "system",
"TemplateKey": "c1k2m3n4",
"Versions": [
{
"Number": 1,
"Status": "superseded",
"Name": "Cloud backup audit",
"QuestionCount": 8,
"Distribution": null,
"BasedOn": null,
"PublishedAt": "2026-10-20",
"PublishedBy": "erik@example.com",
"AssessmentsMade": 3,
"UpdatedAt": "2026-10-20T09:00:00Z"
},
{
"Number": 2,
"Status": "published",
"Name": "Cloud backup audit",
"QuestionCount": 9,
"Distribution": [
"7a8b26724e508ade"
],
"BasedOn": 1,
"PublishedAt": "2026-11-03",
"PublishedBy": "erik@example.com",
"AssessmentsMade": 1,
"UpdatedAt": "2026-11-03T10:15:00Z"
}
]
}
]
}
{"Templates":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
ListRiskTemplateDetails
One template with the questions of its versions, as Assessment Studio keeps them: each question has a title, a text (the studio's limited HTML: bold, italic, lists, size), an image (a data:image/ URL or empty) and an answer, which is null or an object with subtype (yesno, radio, multi, text) and choices, each with a text and a heat from 0 to 100 (how much that answer adds to the risk). Any Risk role.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Kind | Yes | Path segment. system or vendor. | Alphanumeric, max 10. |
TemplateKey | Yes | Path segment. The template's key. | Text, max 40. |
Published | No | 1 gives the published version alone, which is what the page of an assessment needs. | Digits, max 1. |
Example request
GET https://api.moleant.com/v2/risk/templates/system/c1k2m3n4?Published=1
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A Template array with one entry, whose Versions carry the fields of ListRiskTemplates and the questions.
| Attribute | Description | Example |
|---|---|---|
Template[].Kind / TemplateKey | The template. | system / c1k2m3n4 |
Template[].Versions[].Number / Status / Name | The version. | 2 / published / Cloud backup audit |
Template[].Versions[].Questions | The questions, in order: objects with title, text, image and answer. | [{"title":"Backups tested?",...}] |
Example response
{
"Template": [
{
"Kind": "system",
"TemplateKey": "c1k2m3n4",
"Versions": [
{
"Number": 2,
"Status": "published",
"Name": "Cloud backup audit",
"QuestionCount": 1,
"Distribution": null,
"BasedOn": 1,
"PublishedAt": "2026-11-03",
"PublishedBy": "erik@example.com",
"AssessmentsMade": 1,
"UpdatedAt": "2026-11-03T10:15:00Z",
"Questions": [
{
"title": "Backups tested?",
"text": "<b>Was a full restore tested in the last year?</b>",
"image": "",
"answer": {
"subtype": "yesno",
"choices": [
{
"text": "Yes",
"heat": 0
},
{
"text": "No",
"heat": 80
}
]
}
}
]
}
]
}
]
}
{"Template":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Kind is invalid. | Kind was neither system nor vendor. |
TemplateKey is invalid. | The key is not 1 to 40 letters, digits and dashes. |
SaveRiskTemplateVersion
Saves a draft version (its name and questions) or publishes it. A new key makes the template; Number is an existing draft's number or the next number after the last version (1 for a new template). Publishing supersedes the version published before, which keeps the assessments made on it, and asks where the version goes (Distribution). A published or superseded version cannot be changed. The questions are checked and cut: at most 100 questions, 50 choices each, an image of at most 1.5 million characters, 12 MB in all. For a studio manager or administrator.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Kind | Yes | Path segment. system or vendor. | Alphanumeric, max 10. |
TemplateKey | Yes | Path segment. The template's key: 1 to 40 letters, digits and dashes. | Text, max 40. |
Number | Yes | Path segment. The version number. | Digits, max 6. |
Name | No | The name of the template as this version has it. Required to publish. | Text, max 80. |
Questions | No | Array of question objects: title, text, image, answer (see ListRiskTemplateDetails). An empty list saves a draft without questions. | |
Publish | No | 1 publishes the version. | Digits, max 1. |
Distribution | No | With Publish: all (the default) or an array of CGuids of the plan's Risk organizations that get the assessment. |
The subcode is Draft of version N saved. or Version N is published., and the status message carries Number and Status.
Example request
PUT https://api.moleant.com/v2/risk/templates/system/c1k2m3n4/versions/2
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Name":"Cloud backup audit","Questions":[{"title":"Backups tested?","text":"<b>Was a full restore tested in the last year?</b>","image":"","answer":{"subtype":"yesno","choices":[{"text":"Yes","heat":0},{"text":"No","heat":80}]}}],"Publish":1,"Distribution":["7a8b26724e508ade"]}
Response
A status message. On success the subcode is Version 2 is published.. The status message also carries Number and Status.
Number and Status.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
User does not have permission to change templates. | The caller is neither a studio manager, an administrator nor a plan admin. HTTP 403. |
Kind is invalid. | Kind was neither system nor vendor. |
TemplateKey is invalid. | The key is not 1 to 40 letters, digits and dashes. |
Number missing or invalid. | No version number. |
Questions must be a list. | Questions was not an array. |
The template is too large. | The questions with their images are over 12 MB. |
Please enter a name for the template before publishing. | Publish without a name. |
At least one question is required for publishing. | Publish without questions. |
Question #1 is missing a title. | A question without a title (the number varies). |
Question #1 needs an answer. | A question without an answer (the number varies). |
Distribution must be "all" or a list of CGuids. | Distribution was something else. |
Distribution names an organization that is not enabled for Moleant Risk on this plan. | A CGuid outside the plan's Risk organizations. |
Distribution must name at least one organization. | An empty list. |
Version 1 is published and cannot be changed. | The version is published or superseded (the number and the status vary). |
Version 5 cannot be made: the next version is 3. | A number that is neither an existing draft nor the next one (the numbers vary). |
ModifyRiskTemplateDistribution
Changes where a published version goes, without a new version. For a studio manager or administrator.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
Kind | Yes | Path segment. system or vendor. | Alphanumeric, max 10. |
TemplateKey | Yes | Path segment. The template's key. | Text, max 40. |
Number | Yes | Path segment. The version number. | Digits, max 6. |
Distribution | Yes | all or an array of CGuids of the plan's Risk organizations. |
Example request
PUT https://api.moleant.com/v2/risk/templates/system/c1k2m3n4/versions/2/distribution
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Distribution":"all"}
Response
A status message. On success the subcode is The distribution was updated..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
User does not have permission to change templates. | The caller is neither a studio manager, an administrator nor a plan admin. HTTP 403. |
Distribution must be specified. | No Distribution. |
Distribution must be "all" or a list of CGuids. | Distribution was something else. |
Distribution names an organization that is not enabled for Moleant Risk on this plan. | A CGuid outside the plan's Risk organizations. |
The template does not exist. | No template with that key on the plan. |
The version does not exist. | No version with that number. |
Only a published version is distributed. | The version is a draft or superseded. |
ListRiskAssessments
The assessments of the organizations of the caller's Risk session, with their findings and the follow-up of each, but without the answers (ListRiskAssessmentDetails has them). The Risks page reads it for the findings written by reviewers. Any Risk role.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | No | Narrows the listing to one organization of the caller's Risk session. | Alphanumeric, max 50. |
SubjectID | No | Only the assessments of one subject. | Digits, max 10. |
Status | No | draft, review or complete. | Alphanumeric, max 10. |
Example request
GET https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/assessments?Status=complete
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An Assessments array.
| Attribute | Description | Example |
|---|---|---|
Assessments[].AssessmentID / CGuid / SubjectID / Kind / Name | The assessment (a number), its organization and its subject (a number, its kind and its name). | 3 / 7a8b26724e508ade / 12 / system / Payroll |
Assessments[].TemplateKey / Version / Title | The template and version it was made with, and the template's name then. | dora / 1 / DORA assessment |
Assessments[].Status | draft, review or complete. | complete |
Assessments[].Score / Reason / Summary / SummaryFromAi | The reviewer's risk score (a number from 0 to 100, or null until set), why it differs from the AI's suggestion, the summary, and a boolean saying whether the summary is the AI's. | 62 / / Patching is slow. / false |
Assessments[].ReviewUrl | The address of the reviewer's page in the web app, for a finding to lead back to. | /assessments/dora.php?name=Payroll&mode=review |
Assessments[].SavedAt / SubmittedAt / ReviewedAt / UpdatedBy | Days: last saved, sent to review, completed; and who saved it last. | 2026-11-03 / 2026-11-01 / 2026-11-03 / erik@example.com |
Assessments[].Findings[].FindingKey / Name / Description | A finding the reviewer wrote (or the AI suggested): its key, name and remark. | f1 / Slow patching / Patch within a month. |
Assessments[].Findings[].Ai / Edited | Booleans: suggested by the AI; changed by the reviewer. | true / false |
Assessments[].Findings[].State / Team / Deadline / ClosedAt / Note / AcceptUntil | Its follow-up on the Risks page: open, assigned, accepted, false_positive or fixed; the team; the deadline; the day it was closed; why the risk was accepted or called a false positive; until when it is accepted. | assigned / Infrastructure / 2026-12-01 / / / |
Assessments[].Findings[].History[].date / text | What happened to it, oldest first. | 2026-11-03 / Assigned to Infrastructure |
Example response
{
"Assessments": [
{
"AssessmentID": 3,
"CGuid": "7a8b26724e508ade",
"SubjectID": 12,
"Kind": "system",
"Name": "Payroll",
"TemplateKey": "dora",
"Version": 1,
"Title": "DORA assessment",
"Status": "complete",
"Score": 62,
"Reason": "",
"Summary": "Patching is slow.",
"SummaryFromAi": false,
"ReviewUrl": "/assessments/dora.php?name=Payroll&mode=review",
"SavedAt": "2026-11-03",
"SubmittedAt": "2026-11-01",
"ReviewedAt": "2026-11-03",
"UpdatedBy": "erik@example.com",
"Findings": [
{
"FindingKey": "f1",
"Name": "Slow patching",
"Description": "Patch within a month.",
"Ai": true,
"Edited": false,
"State": "assigned",
"Team": "Infrastructure",
"Deadline": "2026-12-01",
"ClosedAt": "",
"Note": "",
"AcceptUntil": "",
"History": [
{
"date": "2026-11-03",
"text": "Written by the reviewer of the assessment"
},
{
"date": "2026-11-03",
"text": "Assigned to Infrastructure"
}
]
}
]
}
]
}
{"Assessments":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Status is invalid. | Status was not draft, review or complete. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
ListRiskAssessmentDetails
One assessment in full: the fields of ListRiskAssessments plus the answers, the comments and the AI's result. Any Risk role of the organization.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SubjectID | Yes | Path segment. The subject. | Digits, max 10. |
TemplateKey | Yes | Path segment. The template's key. | Text, max 40. |
Version | Yes | Path segment. The template version the assessment was made with. | Digits, max 6. |
Example request
GET https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/subjects/12/assessments/dora/1
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An Assessment array with one entry.
| Attribute | Description | Example |
|---|---|---|
Assessment[].AssessmentID / Status / Score | The assessment, its stage and the reviewer's score (a number or null). | 3 / complete / 62 |
Assessment[].Answers | An object keyed by question number: the text of a free-text answer, the value of a chosen option, or the list of values of a multiple choice. | {"1":"yes","4":["trade","financial"]} |
Assessment[].Comments | An object keyed by question number with the comments. | {"1":"Certificate 1234"} |
Assessment[].Result | The AI's suggestion as the web app's AI endpoint returned it (score, summary, factors, ratings, recommendations, findings), or null. | {"score":58,...} |
Example response
{
"Assessment": [
{
"AssessmentID": 3,
"CGuid": "7a8b26724e508ade",
"SubjectID": 12,
"Kind": "system",
"Name": "Payroll",
"TemplateKey": "dora",
"Version": 1,
"Title": "DORA assessment",
"Status": "complete",
"Score": 62,
"Reason": "",
"Summary": "Patching is slow.",
"SummaryFromAi": false,
"ReviewUrl": "/assessments/dora.php?name=Payroll&mode=review",
"SavedAt": "2026-11-03",
"SubmittedAt": "2026-11-01",
"ReviewedAt": "2026-11-03",
"UpdatedBy": "erik@example.com",
"Findings": [],
"Answers": {
"1": "We assess the system yearly.",
"2": "A dependency map exists."
},
"Comments": {},
"Result": {
"score": 58,
"summary": "Mostly in control."
}
}
]
}
{"Assessment":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
SubjectID missing or invalid. | No SubjectID. |
TemplateKey is invalid. | The key is not 1 to 40 letters, digits and dashes. |
Version missing or invalid. | No version number. |
The subject does not exist. | No subject with that id in the organization. |
SaveRiskAssessment
Creates an assessment or changes it; only the fields sent are changed. Status moves it between the stages: a contributor saves a draft and sends it to review, after which only a reviewer (or an administrator) changes it, sets the score and the summary, writes the findings, completes it or returns it as a draft. The day of saving is recorded, as is the day it was sent to review and the day it was completed. The findings sent replace the list: a finding kept by its key keeps its follow-up, the others are added or removed.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
SubjectID | Yes | Path segment. The subject (AddRiskSubject registers a Discover one). | Digits, max 10. |
TemplateKey | Yes | Path segment. The template's key. | Text, max 40. |
Version | Yes | Path segment. The template version. | Digits, max 6. |
Status | No | draft, review or complete. A new assessment is a draft. | Alphanumeric, max 10. |
Answers | No | An object keyed by question number: a text, an option value or a list of option values. At most 400 KB. | |
Comments | No | An object keyed by question number. At most 200 KB. | |
Result | No | An object: the AI's suggestion, which must carry a score; null clears it. At most 100 KB. | |
Score | No | The reviewer's score, 0 to 100; empty clears it. | Digits, max 3. |
Reason | No | Why the score differs from the AI's suggestion. | Text, max 300. |
Summary | No | The reviewer's summary. | Text, max 2000. |
SummaryFromAi | No | 1 when the summary is the AI's own words. | Digits, max 1. |
Title | No | The template's name, kept with the assessment. | Text, max 80. |
ReviewUrl | No | The reviewer's page in the web app; must start with /assessments/. | Text, max 500. |
Findings | No | Array of finding objects: id (the key; a missing or repeated one gets a new key), name, description, ai, edited. At most 30; one without a name or a description is dropped. |
Example request
PUT https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/subjects/12/assessments/dora/1
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Status":"review","Score":62,"Summary":"Patching is slow.","Findings":[{"id":"f1","name":"Slow patching","description":"Patch within a month.","ai":true,"edited":false}]}
Response
A status message. On success the subcode is The assessment was saved.. The status message also carries AssessmentID and Status.
AssessmentID and Status.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
User does not have permission to make assessments in this organization. | The caller has no writing role in the organization. HTTP 403. |
SubjectID missing or invalid. | No SubjectID. |
TemplateKey is invalid. | The key is not 1 to 40 letters, digits and dashes. |
Version missing or invalid. | No version number. |
The subject does not exist. | No subject with that id in the organization. |
The assessment is in review and can only be changed by a reviewer. | A contributor touched an assessment in review or complete. HTTP 403. |
Status is invalid. | Status was not draft, review or complete. |
Only a reviewer may set an assessment to Complete. | A contributor sent Status complete. HTTP 403. |
Answers must be an object keyed by question number. | Answers was not an object or is too large. |
Comments must be an object keyed by question number. | Comments was not an object or is too large. |
Result must be an object. | Result was not an object or is too large. |
Result must carry a score. | Result has no numeric score. |
Score is a whole number from 0 to 100. | Score was outside the range. |
ReviewUrl must be an address inside the assessments. | ReviewUrl does not start with /assessments/. |
Findings must be a list. | Findings was not an array. |
Give each finding a name. | A finding has a description but no name. |
ModifyRiskAssessmentFinding
The follow-up of one finding of an assessment, as the Risks page does it: its description, the team, the deadline, its state, a note, until when the risk is accepted, and lines for its history, which get today's date. For a reviewer or administrator of the organization.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
AssessmentID | Yes | Path segment. The assessment. | Digits, max 10. |
FindingKey | Yes | Path segment. The finding's key. | Text, max 40. |
Description | No | A new remark. | Text, max 1000. |
State | No | open, assigned, accepted (needs Note and AcceptUntil), false_positive (needs Note) or fixed. | Text, max 20. |
Team | No | The team; empty for none. | Text, max 250. |
Deadline | No | A day, or empty for none. | Date, max 10. |
ClosedAt | No | The day it was closed, or empty. | Date, max 10. |
Note | No | Why the risk is accepted or a false positive. | Text, max 2000. |
AcceptUntil | No | Until when the risk is accepted, or empty. | Date, max 10. |
History | No | Array of lines to add to the history, each dated today. | Text, max 300 each. |
Example request
PUT https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/assessments/3/findings/f1
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"State":"assigned","Team":"Infrastructure","Deadline":"2026-12-01","History":["Assigned to Infrastructure","Deadline set to 1 Dec (the policy for High)"]}
Response
A status message. On success the subcode is The finding was updated.. The status message also carries State.
State.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
User does not have permission to follow up findings in this organization. | The caller is neither a reviewer nor an administrator of the organization. HTTP 403. |
AssessmentID missing or invalid. | No AssessmentID. |
FindingKey is invalid. | The key is not 1 to 40 letters, digits, dashes and underscores. |
The finding does not exist. | No finding with that key in the assessment. |
State is invalid. | Not one of the five states. |
To accept the risk, say why and until when. | State accepted without a note or a date. |
To call it a false positive, say why. | State false_positive without a note. |
Deadline is not a date (YYYY-MM-DD). | A date field that is not a day (ClosedAt and AcceptUntil say so in their own words). |
Nothing to change was specified. | No field was sent. |
ListRiskFindings
The vulnerability findings of the organizations of the caller's Risk session that are enabled for Moleant Discover: Discover's open findings (a CVE on an installed application of an asset, from the Software vulnerabilities module) with what Risk keeps about each. The state is Risk's when Risk has a row, else Discover's review state (accepted and false_positive as they are, fixed as awaiting); a vulnerability Discover no longer reports counts as verified fixed when nothing else closed it. The exposure and the criticality of the asset come from its profile (ModifyRiskAssetProfile), internal and medium until one is saved; the exploit code field is kept by hand and Epss is always 0, since the knowledge base has neither feed. At most 5000 rows, the highest CVSS first. Any Risk role.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | No | Narrows the listing to one organization of the caller's Risk session. | Alphanumeric, max 50. |
IncludeClosed | No | 1 adds the findings Discover resolved in the last year. | Digits, max 1. |
Example request
GET https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/findings
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A Findings array.
| Attribute | Description | Example |
|---|---|---|
Findings[].VulnerabilityID | Discover's id of the finding (ListVulnerabilities), which the follow-up operations take. A number. | 4711 |
Findings[].CGuid / Organization | The organization. | 7a8b26724e508ade / Contoso AB |
Findings[].CVE / Description / Published | The CVE, its description cut to 300 characters, and when it was published. | CVE-2021-44228 / Remote code execution... / 2021-12-10 |
Findings[].ApplicationName / Version / FixedVersion | The installed application and version, and the version that fixes it when known. | Apache Log4j / 2.14.1 / 2.17.1 |
Findings[].ServerID / Hostname / System / Environment | The asset (a number), its host name, the systems it belongs to and its environment. | 7 / API-PROD-01 / Webshop / Production |
Findings[].Exposure / Criticality | From the asset's profile: internet, dmz, internal, isolated; critical, high, medium, low. | dmz / high |
Findings[].Cvss / Kev / Exploit / Epss | The CVSS base score (a number), whether the CVE is in CISA's list of known exploited vulnerabilities (a boolean), the exploit code field (none, poc, weaponized) and the EPSS probability (a number, 0). | 10.0 / true / weaponized / 0 |
Findings[].FirstSeen / Resolved / ResolvedAt / DiscoverState | The day Discover first found it; a boolean saying whether Discover no longer reports it, and the day; Discover's own review state. | 2026-09-24 / false / / open |
Findings[].State | open, assigned, in_progress, awaiting, reopened, verified, accepted or false_positive. | in_progress |
Findings[].Team / Deadline / TicketID / TicketReference / ClosedAt / AcceptUntil / Note | The follow-up: the team, the deadline, the ticket (a number, 0 for none) and its reference, the day it was closed, until when the risk is accepted, and the note. | Application operations / 2026-11-20 / 5 / SEC-2005 / / / |
Findings[].Checks[].date / ok | The checks of the fix, oldest first: the day and a boolean. | 2026-11-03 / false |
Findings[].History[].date / text | What happened, oldest first. | 2026-11-03 / Assigned to Application operations |
Example response
{
"Findings": [
{
"VulnerabilityID": 4711,
"CGuid": "7a8b26724e508ade",
"Organization": "Contoso AB",
"CVE": "CVE-2021-44228",
"Description": "Remote code execution through a crafted log message.",
"ApplicationName": "Apache Log4j",
"Version": "2.14.1",
"FixedVersion": "2.17.1",
"ServerID": 7,
"Hostname": "API-PROD-01",
"System": "Webshop",
"Environment": "Production",
"Exposure": "dmz",
"Criticality": "high",
"Cvss": 10.0,
"Kev": true,
"Exploit": "weaponized",
"Epss": 0,
"Published": "2021-12-10",
"FirstSeen": "2026-09-24",
"Resolved": false,
"ResolvedAt": "",
"DiscoverState": "open",
"State": "in_progress",
"Team": "Application operations",
"Deadline": "2026-11-20",
"TicketID": 5,
"TicketReference": "SEC-2005",
"ClosedAt": "",
"AcceptUntil": "",
"Note": "",
"Checks": [],
"History": [
{
"date": "2026-11-03",
"text": "Assigned to Application operations"
},
{
"date": "2026-11-03",
"text": "Ticket SEC-2005 created in Jira"
}
]
}
]
}
{"Findings":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
ModifyRiskFinding
What is done about a vulnerability finding: the team (which moves an open finding to assigned), the deadline, the state (awaiting when it is reported as fixed, accepted with a note and a date, false_positive with a note, open to open it again, which puts it back where it was: in progress with a ticket, assigned with a team), the exploit code, and lines for its history. Risk's row is made the first time. A ticket the finding is in follows: closed when every finding of it is done, reopened when a check failed. For a reviewer or administrator of the organization.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
VulnerabilityID | Yes | Path segment. Discover's id of the finding. | Digits, max 10. |
Team | No | The team; empty for none. | Text, max 250. |
Deadline | No | A day, or empty for none. | Date, max 10. |
State | No | open, assigned, in_progress, awaiting, accepted or false_positive. | Text, max 20. |
Note | No | Why the risk is accepted or a false positive. | Text, max 2000. |
AcceptUntil | No | Until when the risk is accepted. | Date, max 10. |
Exploit | No | none, poc or weaponized. | Alphanumeric, max 12. |
History | No | Array of lines to add to the history, each dated today. | Text, max 300 each. |
Example request
PUT https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/findings/4711
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Team":"Application operations","Deadline":"2026-11-20","History":["Assigned to Application operations","Deadline set to 20 Nov (the policy for Critical, known exploited)"]}
Response
A status message. On success the subcode is The finding was updated.. The status message also carries State.
State.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
User does not have permission to follow up findings in this organization. | The caller is neither a reviewer nor an administrator of the organization. HTTP 403. |
VulnerabilityID missing or invalid. | No VulnerabilityID. |
Vulnerability does not exist. | No finding with that id in the organization. |
State is invalid. | Not one of the six states. |
To accept the risk, say why and until when. | State accepted without a note or a date. |
To call it a false positive, say why. | State false_positive without a note. |
Exploit is invalid. | Not none, poc or weaponized. |
Deadline is not a date (YYYY-MM-DD). | A date field that is not a day (AcceptUntil says so in its own words). |
Nothing to change was specified. | No field was sent. |
VerifyRiskFinding
The check of a fix. It passes when Moleant Discover no longer reports the vulnerability (the Moleant Engine reported the software again without it, so Discover resolved the finding), which closes the finding as verified today; it fails otherwise, which sets the finding to reopened. The check is recorded, and a ticket the finding is in follows. For a reviewer or administrator of the organization.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
VulnerabilityID | Yes | Path segment. Discover's id of the finding. | Digits, max 10. |
A failed check is a success status with the subcode The check failed: the finding is open again.; Verified (a boolean) and State say which.
Example request
POST https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/findings/4711/checks
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A status message. On success the subcode is The check passed: the finding is verified fixed.. The status message also carries Verified and State.
Verified and State.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
User does not have permission to verify findings in this organization. | The caller is neither a reviewer nor an administrator of the organization. HTTP 403. |
VulnerabilityID missing or invalid. | No VulnerabilityID. |
Vulnerability does not exist. | No finding with that id in the organization. |
ListRiskTickets
The tickets of the organizations of the caller's Risk session, newest first, each with the ids of its findings. Any Risk role.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | No | Narrows the listing to one organization of the caller's Risk session. | Alphanumeric, max 50. |
Example request
GET https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/tickets
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A Tickets array.
| Attribute | Description | Example |
|---|---|---|
Tickets[].TicketID / CGuid / Reference / System | The ticket (a number), its organization, its reference in the ticket system and the system: Jira, ServiceNow or Azure DevOps. | 5 / 7a8b26724e508ade / SEC-2005 / Jira |
Tickets[].Title / Team / Status / Created | Its title, team, status (new, in_progress, resolved, reopened, closed) and the day it was made. | Fix Log4j on API-PROD-01 / Application operations / in_progress / 2026-11-03 |
Tickets[].Findings | The VulnerabilityIDs of its findings. | [4711,4712] |
Example response
{
"Tickets": [
{
"TicketID": 5,
"CGuid": "7a8b26724e508ade",
"Reference": "SEC-2005",
"System": "Jira",
"Title": "Fix Log4j on API-PROD-01",
"Team": "Application operations",
"Status": "in_progress",
"Created": "2026-11-03",
"Findings": [
4711,
4712
]
}
]
}
{"Tickets":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
AddRiskTicket
A ticket for a team with its findings. Every finding gets the ticket and moves to in_progress; one without a team gets the ticket's, and one without a deadline gets Deadline when it is sent. The reference is made from the ticket system's prefix (SEC-, INC00, AB#). For a reviewer or administrator of the organization.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
System | Yes | Jira, ServiceNow or Azure DevOps. | Tolerant text, max 40. |
Title | Yes | The title of the ticket. | Text, max 120. |
Team | Yes | The team it is for. | Text, max 250. |
Findings | Yes | Array of VulnerabilityIDs of the organization. At least one. | Digits, max 10 each. |
Deadline | No | A day given to the findings that have none. | Date, max 10. |
Example request
POST https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/tickets
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"System":"Jira","Title":"Fix Log4j on API-PROD-01","Team":"Application operations","Findings":[4711],"Deadline":"2026-11-20"}
Response
A status message. On success the subcode is The ticket was created.. The status message also carries TicketID and Reference.
TicketID and Reference.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
User does not have permission to create tickets in this organization. | The caller is neither a reviewer nor an administrator of the organization. HTTP 403. |
System is invalid. | Not Jira, ServiceNow or Azure DevOps. |
Title must be specified. | No title. |
Team must be specified. | No team. |
Findings must list at least one VulnerabilityID. | No findings. |
Findings must list VulnerabilityIDs. | A finding that is not an id. |
Vulnerability does not exist. | A finding that is not the organization's. |
Deadline is not a date (YYYY-MM-DD). | Deadline is not a day. |
ModifyRiskTicket
The title or the status of a ticket. resolved puts its open findings into awaiting, where VerifyRiskFinding checks them; the ticket closes by itself when every finding is verified, accepted or a false positive, and reopens when a check fails. For a reviewer or administrator of the organization.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
TicketID | Yes | Path segment. The ticket. | Digits, max 10. |
Status | No | new, in_progress, resolved, reopened or closed. | Text, max 20. |
Title | No | A new title. | Text, max 120. |
Example request
PUT https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/tickets/5
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Status":"resolved"}
Response
A status message. On success the subcode is The ticket was updated.. The status message also carries Status and FindingsAwaiting.
Status and FindingsAwaiting.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
User does not have permission to change tickets in this organization. | The caller is neither a reviewer nor an administrator of the organization. HTTP 403. |
TicketID missing or invalid. | No TicketID. |
The ticket does not exist. | No ticket with that id in the organization. |
Title must be specified. | Title sent empty. |
Status is invalid. | Not one of the five statuses. |
Title or Status must be specified. | Nothing to change was sent. |
ModifyRiskAssetProfile
What the risk model needs to know about an asset and Discover does not keep: how exposed it is and how critical it is to the business. Only the fields sent are changed. For a reviewer or administrator of the organization.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
ServerID | Yes | Path segment. The asset (Discover's ServerID). | Digits, max 10. |
Exposure | No | internet, dmz, internal or isolated. | Alphanumeric, max 10. |
Criticality | No | critical, high, medium or low. | Alphanumeric, max 10. |
Example request
PUT https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/assets/7/profile
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Exposure":"dmz","Criticality":"high"}
Response
A status message. On success the subcode is The asset profile was saved.. The status message also carries Exposure and Criticality.
Exposure and Criticality.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
User does not have permission to change assets in this organization. | The caller is neither a reviewer nor an administrator of the organization. HTTP 403. |
ServerID missing or invalid. | No ServerID. |
Server does not exist. | No asset with that id in the organization. |
Exposure is invalid. | Not internet, dmz, internal or isolated. |
Criticality is invalid. | Not critical, high, medium or low. |
Exposure or Criticality must be specified. | Nothing to change was sent. |
ListRiskAssetAssessments
The Risk assessments of the assets of the organizations of the caller's Risk session: the answers to the questions about an asset and the score the AI made from them. Any Risk role.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | No | Narrows the listing to one organization of the caller's Risk session. | Alphanumeric, max 50. |
Example request
GET https://api.moleant.com/v2/risk/assetassessments
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
An AssetAssessments array.
| Attribute | Description | Example |
|---|---|---|
AssetAssessments[].CGuid / ServerID | The organization and the asset (a number). | 7a8b26724e508ade / 7 |
AssetAssessments[].Answers | An object keyed by question key (purpose, criticality, exposure, downtime, data, ...). | {"criticality":"high",...} |
AssetAssessments[].Result | The AI's score as the web app's AI endpoint returned it, with the day it was made and a snapshot of the answers, or null. | {"score":72,...} |
AssetAssessments[].UpdatedBy / UpdatedAt | Who saved it last and when (UTC). | erik@example.com / 2026-11-03T10:15:00Z |
Example response
{
"AssetAssessments": [
{
"CGuid": "7a8b26724e508ade",
"ServerID": 7,
"Answers": {
"criticality": "high",
"exposure": "dmz",
"downtime": "hours",
"data": "personal"
},
"Result": {
"score": 72,
"summary": "Exposed and important.",
"factors": [],
"recommendations": [],
"date": "2026-11-03",
"snapshot": "{}"
},
"UpdatedBy": "erik@example.com",
"UpdatedAt": "2026-11-03T10:15:00Z"
}
]
}
{"AssetAssessments":[]}.Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
SaveRiskAssetAssessment
Keeps the answers about an asset and, when sent, the AI's result. Only what is sent is changed. For a reviewer or administrator of the organization.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are fields of the JSON request body.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | Yes | Path segment. Organization GUID. | Alphanumeric, max 50. |
ServerID | Yes | Path segment. The asset. | Digits, max 10. |
Answers | No | An object keyed by question key. At most 64 KB. At least one of Answers and Result is required. | |
Result | No | An object: the AI's score, which must carry a score; null clears it. At most 64 KB. |
Example request
PUT https://api.moleant.com/v2/risk/organizations/7a8b26724e508ade/assets/7/assessment
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Content-Type: application/json
{"Answers":{"criticality":"high","exposure":"dmz","downtime":"hours","data":"personal"},"Result":{"score":72,"summary":"Exposed and important.","factors":[],"recommendations":[],"date":"2026-11-03","snapshot":"{}"}}
Response
A status message. On success the subcode is The risk assessment of the asset was saved..
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
Customer guid missing or invalid. | CGuid was missing or malformed. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
User does not have permission to assess assets in this organization. | The caller is neither a reviewer nor an administrator of the organization. HTTP 403. |
ServerID missing or invalid. | No ServerID. |
Server does not exist. | No asset with that id in the organization. |
Answers must be an object keyed by question. | Answers was not an object or is too large. |
Result must be an object. | Result was not an object or is too large. |
Result must carry a score. | Result has no numeric score. |
Answers or Result must be specified. | Nothing was sent. |
ListRiskDashboard
The series of the dashboard for the last twelve weeks, Monday to Sunday, oldest first: the risk index (the average risk score, by the plan's risk model, of the ten riskiest open findings; per week the last snapshot of each organization, combined), and the findings found and fixed per week. Today's snapshot of every organization is taken on the way. Any Risk role.
No v1 alias: this operation exists only as a v2 route.
Request
Authentication: User token. Fields marked Path segment are part of the URL; the others are query parameters.
| Attribute | Mandatory? | Description | Notes |
|---|---|---|---|
CGuid | No | Narrows the listing to one organization of the caller's Risk session. | Alphanumeric, max 50. |
Example request
GET https://api.moleant.com/v2/risk/dashboard
Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIi…
Response
A Dashboard array with one entry.
| Attribute | Description | Example |
|---|---|---|
Dashboard[].RiskIndex | The risk index now. A number from 0 to 100. | 68 |
Dashboard[].Target | The target the chart shows. A number. | 60 |
Dashboard[].Weeks[].Start | The Monday of the week. | 2026-10-26 |
Dashboard[].Weeks[].RiskIndex | The risk index of the week, or null when there was no snapshot. A number. | 71 |
Dashboard[].Weeks[].Open | How many findings were open in the week's snapshot, or null. A number. | 23 |
Dashboard[].Weeks[].Found / Fixed | Findings Discover first saw in the week, and findings closed in the week. Numbers. | 6 / 4 |
Example response
{
"Dashboard": [
{
"RiskIndex": 68,
"Target": 60,
"Weeks": [
{
"Start": "2026-10-26",
"RiskIndex": 71,
"Found": 6,
"Fixed": 4,
"Open": 23
},
{
"Start": "2026-11-02",
"RiskIndex": 68,
"Found": 2,
"Fixed": 1,
"Open": 24
}
]
}
]
}
Failures, in addition to the common failures:
subcode | Cause |
|---|---|
You have no access to Moleant Risk. | The caller has no Risk role in any organization of a plan enabled for Moleant Risk, and does not own or co-administer such a plan. HTTP 403. |
The organization is not enabled for Moleant Risk, or you have no role in it. | CGuid names an organization outside the caller's Risk session. HTTP 403. |
Key routes kept from the previous v2
The previous v2 API exposed these key-authenticated routes. They keep working: the organization comes from the key (?Key= or X-Api-Key), and a CGuid parameter is ignored. Each one is the operation linked in the table, with the same parameters and responses.
| Route | Operation | Notes |
|---|---|---|
GET /v2/assets | ListComputers | All assets; the ListComputers filters apply. |
GET /v2/assets/{ServerID} | ListComputers | One asset, filtered by ServerID; PUT/PATCH modifies the card, DELETE deletes the asset. |
PUT PATCH /v2/assets/{ServerID} | ModifyServerDetails | One asset, filtered by ServerID; PUT/PATCH modifies the card, DELETE deletes the asset. |
DELETE /v2/assets/{ServerID} | DeleteServer | One asset, filtered by ServerID; PUT/PATCH modifies the card, DELETE deletes the asset. |
GET /v2/assetdetails | AllServerDetails | Every asset with every section. |
GET /v2/assetdetails/{ServerID} | ListServerDetails | One asset with every section. |
GET /v2/systems | ListSystems | The organization's systems. |
GET /v2/systems/{SystemID} | ListSystemDetails | One system. |
GET /v2/systemlog | ListLogEntries | The organization's user-written log entries. |
GET /v2/systemlog/{SystemID} | ListLogEntries | The entries of one system. |
GET /v2/orglog | ListMasterLogEntries | The 250 most recent master log entries. |
GET /v2/entitlements | ListEntitlements | All entitlements. |
GET /v2/entitlements/{SystemID} | ListEntitlements | The entitlements relevant to one system. |
GET /v2/sbom | ListSbom | Requires SystemID as a query parameter. |
GET /v2/sbom/{SystemID} | ListSbom | The SBOM of one system. |
GET /v2/vex | ListVex | Requires SystemID as a query parameter. |
GET /v2/vex/{SystemID} | ListVex | The VEX document of one system. |
/v2/ with 501; this version answers 404, and every documented route is implemented.