Before you begin
Create an API key withorganization.read, then store it in the ALIGNR_API_KEY environment variable through your secret manager or shell environment.
Base URL
List your Organizations
Run this read-only request to find the clients in your MSP workspace: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.