Skip to main content
Connector guides

Connect Heimdal Security

Heimdal Security is an endpoint, DNS, patching, privilege and threat platform that MSPs resell to the companies they manage. StackJack connects an AI assistant to the Heimdal dashboard API 2.0.

Written By Christopher Scaminaci

Last updated 1 day ago

Heimdal Security is an endpoint, DNS, patching, privilege and threat platform that MSPs resell to the companies they manage. StackJack connects an AI assistant to the Heimdal dashboard API 2.0.

Connecting Heimdal Security to StackJack gives your AI assistant a family of heimdal_ MCP tools. MCP (Model Context Protocol) tools are the standardized commands an AI assistant can call through StackJack. With them, your AI can:

  • Read customers and devices - your customer list, each customer's devices, their hardware and their notifications
  • Read policies and audit logs - Windows, Linux and macOS group policies, and the policy, device, network settings and global audit logs
  • Read DNS security - network and endpoint queries, a device's full DNS log, and VectorN matches
  • Read patching - third-party patches, installed software, Intune and Infinity Management applications, and Windows and Linux updates
  • Read detections - antivirus, XTP and ransomware detections, and the Threat Alignment Center's scores and notifications
  • Read privileges - privilege elevations and the processes application control intercepted
  • Revoke or restore devices (on Pro plans)
  • Create and change corporate and reseller customers (on Pro plans)

How StackJack authenticates to Heimdal Security

Heimdal takes the Personal API Key of a dashboard user. StackJack sends it as a bearer token on every call. There is no sign-in exchange: the key is used as it is.

Trust StackJack's addresses first

Heimdal answers only addresses that are marked as trusted for the dashboard user, in the Accounts section of the Heimdal dashboard. Until StackJack's addresses are trusted there, Heimdal refuses every call.

Open a StackJack support ticket to get the addresses to trust. StackJack gives them by support ticket only.

Heimdal does not publish what it answers an address that is not trusted. So StackJack never counts a refusal of the connection test against the connection. Trust the addresses, then test again. The cost: a key that no longer works is shown as a problem on the connection, and StackJack does not switch the connection off.

Getting the key and your customer ID

  1. Sign in to the Heimdal dashboard as a user with the reseller, admin or super admin role.
  2. Open Guide, then Your Heimdal API Key, and copy the key.
  3. Note the customer ID of your own account. It is a number. For a reseller, it is the reseller's own ID.

Connect it in StackJack

  1. Open Connectors, then Heimdal Security.
  2. Enter Your Heimdal customer ID.
  3. Paste the Personal API Key.
  4. Click Save. StackJack stores the connection and then checks it: it reads one row of your customer list, which changes nothing.

To check a saved connection again later, use Test on its row. The test uses the key that is saved, so save a new key before you test it.

Enter both values again whenever you save this form. To rename a connection, use Rename in the connections list: a rename needs no key.

What is worth knowing before you start

Every customer has an ID

Start with heimdal_list_customers. Most tools need the ID of one customer. The customer list, the Threat Alignment Center scores, the reference lists and the corporate and reseller customer tools use your own customer ID when you name none.

Pages and dates

Lists page with a page number and a page size of up to 1000. Dates are YYYY-MM-DDTHH:MM:SS. Without a range, Heimdal reads the last 31 days.

Changes that are marked destructive

These tools are Pro:

  • Revoke or restore devices - Heimdal's page does not describe the effect. Treat a revoked device as one that Heimdal no longer protects.
  • Create or change a corporate or reseller customer - Heimdal does not publish the body of these calls, and its license counts can only be increased, not decreased.

StackJack marks these tools as destructive. Whether your AI application asks for confirmation depends on its settings: some clients prompt before every tool call, some prompt only for tools the server marked destructive, some remember an earlier "always allow", and some never prompt. Review those settings, and leave out the tools a connection does not need. How tools work has the details.

StackJack never sends a change twice. When Heimdal does not confirm a change, the tool says so: read the device or the customer before you try again.

Rate limit

Heimdal takes 10 calls a minute for one API key, one endpoint and one customer. StackJack stays at 9. A report over many customers is not slowed, because each customer has its own limit. Two connections that use the same API key share the limit, because Heimdal counts by the key.

When Heimdal refuses a call

  • The address is not trusted: add StackJack's addresses in the Accounts section. Open a StackJack support ticket to get them.
  • Heimdal answers 401 or 403 and does not name a reason: check first that StackJack's addresses are trusted. If they are, copy the Personal API Key again, and check that its dashboard user still exists.
  • The role or the permission is missing: the test and the customer list need the reseller, admin or super admin role.
  • Not found (404): check the customer ID with heimdal_list_customers.
  • A bad request (400): check the ids and the dates.
  • Too many requests (429): wait a minute before you try again.
  • An outage (5xx): wait and try again.

Plans and limits

Every read is available on the Free tier. Every change is Pro. Business reaches the same tools as Pro and differs by monthly call quota.

See the generated Heimdal Security tool reference for the current inventory, plan assignment, input schemas and destructive-action labels.

Heimdal Security tools

heimdal_ · 58 tools · Free 53 · Pro 5

Customers

ToolWhat it does
heimdal_list_customers
Free · Read-only
Returns one customer, or every customer of a reseller when customerId is the reseller's id: id, name, customer type, license type and purchased licenses.

Devices

ToolWhat it does
heimdal_get_device_hardware
Free · Read-only
Returns the hardware and operating system details of ONE device: chassis, BIOS, processor, memory, disk, last reboot and network adapters.
heimdal_list_device_notifications
Free · Read-only
Lists the notifications of a device (for example that Heimdal was uninstalled).
heimdal_list_devices
Free · Read-only
Lists the active devices of a customer: id (the clientInfoId of the other tools), hostname, user, addresses, agent version, group policy, last seen, modules, status and operating system.
heimdal_set_device_revocation
Pro · Destructive
DESTRUCTIVE.

Group policies

ToolWhat it does
heimdal_list_linux_group_policies
Free · Read-only
Lists the Linux group policies of a customer: id and name.
heimdal_list_macos_group_policies
Free · Read-only
Lists the macOS group policies of a customer: id and name.
heimdal_list_windows_group_policies
Free · Read-only
Lists the Windows group policies of a customer: id and name.

DNS security

ToolWhat it does
heimdal_list_dns_endpoint_full_log
Free · Read-only
Lists the full DNS Security Endpoint log of ONE device: domain, state, whether it was blocked, threat, process, user and time.
heimdal_list_dns_endpoint_queries
Free · Read-only
Lists the DNS Security Endpoint (DarkLayer Guard) statistics of a customer: device, user, domain, threat type, process, resolved addresses, status and time.
heimdal_list_dns_network_queries
Free · Read-only
Lists the DNS Security Network statistics of a customer: hostname, address, domain, threat type, protocol, status and time.
heimdal_list_vectorn_endpoint_matches
Free · Read-only
Lists the VectorN endpoint-level pattern matches of a customer.
heimdal_list_vectorn_malware_patterns
Free · Read-only
Lists the VectorN malware patterns: id, name, description and risk.
heimdal_list_vectorn_network_matches
Free · Read-only
Lists the VectorN network-level pattern matches of a customer.

Third-party patching and software

ToolWhat it does
heimdal_list_infinity_applications
Free · Read-only
Lists the custom applications configured in the Infinity Management module.
heimdal_list_infinity_patches
Free · Read-only
Lists the patches of ONE Infinity Management application.
heimdal_list_intune_applications
Free · Read-only
Lists the third-party applications Heimdal can feed to Microsoft Intune: name, publisher, architecture and each patch's install arguments, package address and version.
heimdal_list_linux_third_party_patches
Free · Read-only
Lists the patch status of the third-party applications on a customer's Linux devices.
heimdal_list_software_inventory
Free · Read-only
Lists the third-party applications installed on a customer's Windows devices.
heimdal_list_third_party_patches
Free · Read-only
Lists the third-party applications that Heimdal manages on a customer's Windows devices: device, application, version, previous version, status, CVE and CVSS.

Operating system updates

ToolWhat it does
heimdal_list_linux_updates
Free · Read-only
Lists the Linux package updates on a customer's devices.
heimdal_list_windows_updates
Free · Read-only
Lists the Microsoft Windows updates on a customer's devices: name, KB number, severity, category, time, CVE and CVSS.

Antivirus, XTP and ransomware

ToolWhat it does
heimdal_list_antivirus_detections
Free · Read-only
Lists the Next-Gen Antivirus detections of a customer: file, threat category, infection, process, resolution, MD5 and time.
heimdal_list_ransomware_detections
Free · Read-only
Lists the Ransomware Encryption Protection detections of a customer: process, path, MD5, user and time.
heimdal_list_xtp_detections
Free · Read-only
Lists the Threat Prevention Extended (XTP) detections of a customer.
heimdal_list_xtp_rules
Free · Read-only
Lists the details of the XTP rules the caller names.

Privilege elevation

ToolWhat it does
heimdal_list_elevation_processes
Free · Read-only
Lists the processes that ran in a privilege elevation session.
heimdal_list_elevations
Free · Read-only
Lists the privilege elevation requests of a customer in one lifecycle state.

Application control

ToolWhat it does
heimdal_list_intercepted_process_details_macos
Free · Read-only
Lists the details of one intercepted macOS process, by the MD5 hash of its file.
heimdal_list_intercepted_process_details_windows
Free · Read-only
Lists the details of one intercepted Windows process, by the MD5 hash of its file.
heimdal_list_intercepted_processes_macos
Free · Read-only
Lists the macOS processes that the Application Control module intercepted.
heimdal_list_intercepted_processes_windows
Free · Read-only
Lists the Windows processes that the Application Control module intercepted.
heimdal_list_raw_intercepted_processes_macos
Free · Read-only
Lists the raw process records that the Application Control engine intercepted on macOS devices.
heimdal_list_raw_intercepted_processes_windows
Free · Read-only
Lists the raw process records that the Application Control engine intercepted on Windows devices.

Threat Alignment Center

ToolWhat it does
heimdal_get_tac_device_risk_score
Free · Read-only
Returns the Threat Alignment Center risk score of ONE device.
heimdal_get_tac_firewall_risk_score
Free · Read-only
Returns the Threat Alignment Center risk score of ONE external firewall.
heimdal_get_tac_user_risk_score
Free · Read-only
Returns the Threat Alignment Center risk score of ONE Microsoft 365 user.
heimdal_list_tac_customer_scores
Free · Read-only
Lists the Threat Alignment Center risk scores of the customers of a reseller.
heimdal_list_tac_device_notifications
Free · Read-only
Lists the Threat Alignment Center alerts of a customer's devices.
heimdal_list_tac_firewall_notifications
Free · Read-only
Lists the Threat Alignment Center alerts of a customer's connected external firewalls.
heimdal_list_tac_user_notifications
Free · Read-only
Lists the Threat Alignment Center alerts of a customer's Microsoft 365 users.

Audit logs

ToolWhat it does
heimdal_list_device_audit_logs
Free · Read-only
Lists the audit log of the device changes of a customer.
heimdal_list_global_audit_logs
Free · Read-only
Lists the audit log of the global changes of a customer account.
heimdal_list_linux_policy_audit_logs
Free · Read-only
Lists the audit log of the Linux group policies of a customer.
heimdal_list_macos_policy_audit_logs
Free · Read-only
Lists the audit log of the macOS group policies of a customer.
heimdal_list_network_settings_audit_logs
Free · Read-only
Lists the audit log of the network settings of a customer.
heimdal_list_windows_policy_audit_logs
Free · Read-only
Lists the audit log of the Windows group policies of a customer.

Reference data

ToolWhat it does
heimdal_list_countries
Free · Read-only
Lists the countries a distributor account can use.
heimdal_list_currencies
Free · Read-only
Lists the currencies a distributor account can use.
heimdal_list_license_statuses
Free · Read-only
Lists the license statuses a distributor account can use.
heimdal_list_products
Free · Read-only
Lists the products a distributor account can use.
heimdal_list_regions
Free · Read-only
Lists the regions a distributor account can use.

Corporate and reseller customers

ToolWhat it does
heimdal_create_corporate_customer
Pro · Destructive
DESTRUCTIVE.
heimdal_create_reseller_customer
Pro · Destructive
DESTRUCTIVE.
heimdal_get_corporate_customer
Free · Read-only
Returns one corporate customer account.
heimdal_get_reseller_customer
Free · Read-only
Returns one reseller customer account.
heimdal_update_corporate_customer
Pro · Destructive
DESTRUCTIVE.
heimdal_update_reseller_customer
Pro · Destructive
DESTRUCTIVE.