Skip to main content
Use the REST API to build scripts, reports and integrations with Alignr data. A user-owned API key can also manage client records through three scoped Organization write operations. You can use Alignr in the app without creating an API key.
Open the Developer Console while signed in to browse this deployment’s endpoint reference and try requests using your session or, where supported by the endpoint, a scoped API key. Try it sends real requests to your workspace; it is not an isolated test environment. Review a write request before confirming it.

Before you begin

Create an API key with organization.read, then store it in the ALIGNR_API_KEY environment variable through your secret manager or shell environment.

Base URL

The REST API uses JSON and bearer authentication.

List your Organizations

Run this read-only request to find the clients in your MSP workspace:
The response contains an items array and pagination metadata. Use an Organization’s id in requests that require a client identifier. An empty items array can be a valid result; it does not prove the workspace is fully configured.

Understand the data you retrieve

Organizations provide client context. Facts describe observations. Standards and controls describe expectations. Detections describe findings. These objects answer different questions; listing no detections does not prove that all controls passed. When working with facts, translate the predicate using the reference, then check subject identity, source and observation time. Preserve technical identifiers in your integration; readable labels are for presentation.

Build a useful client integration

Start with read-only requests and least-privilege scopes. Handle pagination, distinguish permission errors from empty data, and keep the Organization context explicit across requests. Follow the generated operation’s documented query parameters rather than guessing a common filter name. For a recurring report, retain the evaluation time and evidence context alongside each status. A report without those details can make an old or incomplete assessment look current.

Continue building

Authentication

Understand API keys and permissions.

Pagination

Retrieve more than the first page of results.

Errors

Handle failed requests and retries.

Live API schema

Find the full reference for your deployment.

Manage clients

Create, update and archive a client with a user key.

Refresh evidence

Request and poll an exact source-wide collection with a stable key.

Read workspace Overview data

Read bounded attention, connection and discovery panels without treating them as alignment results.

Link source clients

First-link an existing PSA/RMM record to an existing client, with a recoverable receipt.

Evaluate one client

Preview one enabled standard, request its automated checks and poll the historical result.

Run checks for selected clients

Collect evidence and evaluate one standard for a bounded client set.