Get started with the Insights API

The Identity Security Insights REST application programming interface (API) gives you programmatic access to your tenant's identity security data. Use it to connect Insights to your security information and event management (SIEM), security orchestration, automation, and response (SOAR), ticketing, or compliance tools.

With the API, you can:

  • Query detections and recommendations across your tenant or for a single identity or account
  • Filter findings by MITRE ATT&CK tactics and techniques, or by National Institute of Standards and Technology (NIST) SP 800-53 families and controls
  • Update the status of up to 100 findings in one request, with an optional comment
  • Query identities, their accounts, and their true and direct privilege
  • Connect artificial intelligence (AI) assistants through the BeyondTrust Model Context Protocol (MCP) server

This guide walks you through creating a token, finding your site ID, and making your first request. For every endpoint, parameter, and response schema, see the Insights API reference.

Before you begin

Make sure you have:

  • A Pathfinder account with access to Insights
  • A tool that can send HTTPS requests, such as curl or Postman

Use the API page in the Insights console

The API page in Insights brings together everything you need to get started: a link to create a PAT, your base URL with your site ID already filled in, and a sample request you can copy.

To open it, go to Insights > Insights Configuration > API.

API configuration settings

The steps below explain each part of the page in more detail.

Step 1: Create a personal access token

You create PATs from your profile in the BeyondTrust Pathfinder platform. For full details, see the Pathfinder account settings documentation.

Every request requires a personal access token (PAT) or a workload identity token. Requests without valid credentials fail with an HTTP 401 Unauthorized response.

  1. From the header on any page in Pathfinder, select your profile icon and then Manage Profile.
  2. Scroll to Personal Access Tokens.
  3. Select an expiry for the token: 30, 60, or 90 days, or a custom value. Choose an expiry that meets your organization's security policy.
  4. Select Create Token.
  5. Select Copy Token, and store the token in a secure location, such as a secrets manager.

How PATs work

  • A PAT acts as the user who created it. API requests have the same access as that user.
  • Insights records every status change made with a PAT in the audit trail under that user's name.
  • When a PAT expires or is revoked, requests that use it fail with an HTTP 401 response.

Step 2: Get your base URL

Send all requests to this base URL, with your site ID in place of <site-id>:

https://api.beyondtrust.io/sites/<site-id>/insights

The API page in the Insights console shows your base URL with your site ID already filled in. Select the copy icon to copy it.

Base URL on the Insights API page

If you can't open the API page

A site ID is a unique identifier (UUID), such as 1637b4c5-0000-0000-0000-000000000000. Ask a Pathfinder administrator in your organization for the site ID of the site where you use Insights, and add it to the base URL.

For administrators

To find a site ID:

  1. Sign in to BeyondTrust Pathfinder.
  2. From the product menu at the top left of the header, select Administration. The Pathfinder Administration page opens.
  3. Scroll to Sites. Each site shows its name, Site ID, and Data Residency.
  4. Find the site where your organization uses Insights.
  5. Select the copy icon next to Site ID. (The page shortens the ID, but the copy icon copies all of it.)
  6. Send the site ID to the user who needs it.

A site ID identifies your site but doesn't grant any access. Every request still needs a valid personal access token.

Request headers

Include your PAT in the Authorization header of every request:

Authorization: Bearer <your-personal-access-token>
Accept: application/json

For requests that send a body, such as a status update, also include:

Content-Type: application/json

Step 3: Send your first request

To confirm your PAT works, list the identities in your tenant. These examples read your PAT from the PAT environment variable, so the token doesn't appear in the command.

curl -X GET "https://api.beyondtrust.io/sites/<site-id>/insights/v1/identities"
  -H "Authorization: Bearer $PAT" 
  -H "Accept: application/json"
Invoke-RestMethod -Uri "https://api.beyondtrust.io/sites/<site-id>/insights/v1/identities" `
  -Headers @{ Authorization = "Bearer $env:PAT"; Accept = "application/json" }

A successful request returns HTTP 200 and a JSON response:

[short sample response showing one identity]

If you get an HTTP 401 response, check that:

  • The PAT is copied correctly.
  • The PAT hasn't expired or been revoked.
  • The Authorization header contains the word Bearer, a space, and then the PAT.

©2003-2026 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.