Skip to content

API overview

The Varman API is the same API the Varman app uses. Use it to read and update your compliance data from scripts, CI jobs, and internal tools. The full endpoint reference is generated from the API source.

https://api.varman.io/v1

Every endpoint in the reference starts with /v1, for example GET https://api.varman.io/v1/organization.

Send an API key in the X-API-Key header.

Terminal window
curl https://api.varman.io/v1/organization \
--header "X-API-Key: $VARMAN_API_KEY"

Clients that can only send bearer tokens may use Authorization: Bearer <key> instead. Keys start with comp_.

Create keys in the app under Settings > API Keys. See API keys for the steps. A key belongs to one organization and only works for that organization. Keep keys on the server side and never ship them in browser or mobile code.

Each key carries a list of scopes in the form resource:action, for example policy:read or risk:update. When you create a key you pick a preset:

Preset What it grants
Full Access Every scope available to API keys.
Read Only The read scope of every resource.
Custom Only the scopes you tick.

Resources include organization, members, invitations, controls, evidence, policies, risks, vendors, tasks, frameworks, audit logs, findings, questionnaires, integrations, trust center, penetration tests, training, and the employee portal. Actions include create, read, update, delete, and resource-specific actions such as publish, approve, export, and upload.

Each endpoint in the reference lists the permission it needs. A key without that scope gets 403.

Status Message What to do
401 Invalid or expired API key The key is wrong, revoked, or expired. Check it or create a new one.
403 API key lacks required permission scope The key works but is missing the scope this endpoint needs. Create a key with that scope.
403 This API key is no longer supported The key was created before scopes existed. Create a new key.
429 Too many requests You hit the rate limit. Wait and retry with backoff.

Requests made with an API key are limited per client IP address:

  • 100 requests per minute per IP address.
  • A few endpoints have a lower limit, which applies on top.

When you go over a limit the API answers 429. Spread bulk jobs out and retry with exponential backoff.