Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

ThreatLocker

ThreatLocker connects Stackyapper to your managed computers, computer groups, device check-ins, application control approval requests, unified audit logs, and organization hierarchy.
See the ThreatLocker tools and API reference to match any Stackyapper threatlocker_* tool to its ThreatLocker Portal API endpoint and sensitivity classification.

How authentication works

ThreatLocker uses an Organization connection in Stackyapper. A workspace owner or admin saves three values:
  • API token: sent in the Authorization header to the selected ThreatLocker Portal API host.
  • Managed organization ID: the ThreatLocker organization UUID, sent by Stackyapper in the managedOrganizationId header on every request so calls stay pinned to the intended tenant.
  • Instance: your ThreatLocker portal instance (default, c, d, e, or g), which selects the matching portalapi host.
All 14 ThreatLocker tools in Stackyapper are read-only.

Prepare ThreatLocker

Create an API user and gather your organization UUID and instance before connecting in Stackyapper.
  1. Identify your ThreatLocker instance
    Check the ThreatLocker portal URL you sign in to and match it to the Instance value Stackyapper expects:
    Portal instanceValue to enter in StackyapperAPI host used
    Default (portal.threatlocker.com)defaulthttps://portalapi.threatlocker.com/portalapi
    Instance C (portal.c.threatlocker.com)chttps://portalapi.c.threatlocker.com/portalapi
    Instance D (portal.d.threatlocker.com)dhttps://portalapi.d.threatlocker.com/portalapi
    Instance E (portal.e.threatlocker.com)ehttps://portalapi.e.threatlocker.com/portalapi
    Instance G (portal.g.threatlocker.com)ghttps://portalapi.g.threatlocker.com/portalapi
  2. Create an API user and copy the API token
    Follow ThreatLocker’s API Users guide to create a dedicated API user for Stackyapper:
    1. Open the ThreatLocker portal with an administrator account.
    2. Create a dedicated API user scoped to read permissions for computers, computer groups, approval requests, unified audit logs, and organizations.
    3. Copy the generated API token.
    Keep the ThreatLocker API user read-only. Stackyapper’s ThreatLocker tools only perform reads, so write permissions are unnecessary.
  3. Copy your Managed organization ID
    Copy the UUID of the ThreatLocker organization you want this Stackyapper workspace to read (format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). Stackyapper validates that this value is a UUID before sending any request.

Connect in Stackyapper

  1. Save the ThreatLocker connection
    1. Open Apps → ThreatLocker → Add connection in Stackyapper.
    2. Enter your API token.
    3. Enter your Managed organization ID (UUID).
    4. Enter your Instance (default, c, d, e, or g).
    5. Select Save.
  2. Verify with a read-only call
    Run a small read (such as checking pending approval count or listing computer groups) and confirm the result in Audit.

Rotate credentials or change organization scope

  • Rotate the API token: Generate a replacement API token in ThreatLocker, open Apps → ThreatLocker → Manage connection in Stackyapper, update API token, and save. Confirm a read succeeds before revoking the old token.
  • Change the managed organization or instance: Open Apps → ThreatLocker → Manage connection, update the Managed organization ID or Instance, and save. Every subsequent tool call immediately binds to the updated organization header and API host.

Permissions and access controls

  • Read-only surface: All 14 ThreatLocker tools in Stackyapper are read-only (including bounded POST search calls for computers, check-ins, approval requests, audit logs, and child organizations).
  • Access controls: Connecting ThreatLocker does not grant every user every tool. Workspace owners and admins control which groups and users can run ThreatLocker tools in Tools & access and App limits. See Understand access.

What your AI client can work with

Stackyapper’s ThreatLocker app provides 14 reviewed read-only tools:
AreaExamples
Computers and check-insSearch computers, inspect computer details, view computer check-in history
Computer groupsList computer groups with members, list organization computer group dropdowns
Approval requestsList approval requests, inspect request details, check pending approval counts, inspect permit application details
Unified auditSearch unified audit logs, read individual audit entries, view file history
OrganizationsList child organizations, list organizations eligible for moving computers
ThreatLocker tools and API reference
Search all 14 ThreatLocker tools and match each one to its ThreatLocker Portal API endpoint and sensitivity classification.

Troubleshooting

Connection appears saved but calls fail with missing auth
Cause: Either the Instance is not one of default, c, d, e, or g, or the Managed organization ID is not a valid UUID.
Fix: Confirm Instance is entered as a single lowercase token (default, c, d, e, or g — not a full URL) and that Managed organization ID is the exact UUID with hyphens.
ThreatLocker returns 401 Unauthorized or 403 Forbidden
Cause: The API token is invalid or revoked, belongs to a different ThreatLocker instance, or lacks permission for the specified Managed organization ID.
Fix: Verify the Instance matches the portal where you created the API user, confirm the API user has access to that organization UUID, and re-save the API token in Stackyapper.
Audit or approval searches return empty results
Cause: The Managed organization ID points to a different organization than expected, or the API user lacks Unified Audit or Approval view permissions.
Fix: Verify the organization UUID matches the intended parent or child organization and confirm the API user has read permissions for Unified Audit and Approvals in ThreatLocker.