Skip to Content
Volatilis GRC Docs
Developers

API reference

Every REST endpoint of Volatilis GRC, generated from the API itself.

The API reference lists every endpoint with its parameters, request bodies and responses. It is generated from the same code that serves the API, so it always matches the live behavior. It is in English only.

What the reference covers

Endpoints are grouped by area, for example Risks, Controls, Contracts, Matters, Obligations, Policies, Frameworks, Requirements and Documents. Three groups are about the platform itself:

GroupWhat it doesDetails
PlatformGET /me shows the person, organization, token scopes and effective access behind a token.Authentication
LinksShow, create and remove links between records. Links to records you may not see are only counted.The reference
ImportsBulk import with a dry run and a report.Bulk import
WebhooksCreate webhooks, rotate their secret, test them and read their deliveries.Webhooks

Administration is on REST too: /members, /roles, /groups, /invitations, /role-assignments, /usage-caps, /settings/..., /sso-group-mappings, /scim-tokens, /api-tokens and /oauth-grants. These need a token whose owner has administrator access; the same four-eyes, last-administrator and limit rules apply as in the app. Notifications, notification preferences and delegates (/notifications, /notification-preferences, /delegates) are your own and need no administrator.

Each endpoint shows the scope it needs (read, write or import) and the module and action of your access it checks. A token only succeeds when both allow it.

Automations and attachments

EndpointWhat it does
GET /automations, GET /automations/{id}Read automations. Reads leave out the settings of the steps, because they can hold secrets such as a webhook address.
POST /automationsCreate an automation. It is always saved switched off.
PATCH /automations/{id}Change it. Send If-Match.
DELETE /automations/{id}Delete it.
POST /automations/{id}/set-enabledSwitch it on or off. Switching on needs a valid definition, and your plan's limit for active automations applies.
POST /automations/{id}/run-nowRun it once now.
GET /attachments?entity_type=&entity_id=List the files and links of a record. You need to be allowed to view the record, otherwise the answer is 404.
POST /attachments/linksAdd a link. You need to be allowed to edit the record. Only http and https addresses are accepted.
DELETE /attachments/{id}Delete an attachment: the person who added it, or anyone who may edit the record.

The schedule of an automation is an object with frequency (daily, weekly, monthly, quarterly, yearly or cron), time (HH:mm), timeZone (IANA name) and, depending on the frequency, weekdays (ISO, Monday = 1), dayOfMonth, nth, month or cron. For a cron expression send cron plus timeZone.

Files are uploaded with the multipart request POST /api/attachments; the endpoints above cover links, the list and deleting. For a token with module grants, attachments follow the module of the record: see Writing safely.

A token with module grants cannot create, change, switch on or run automations: those calls answer 403 scope, because an automation runs later with the full rights of its run-as person. An automation saved or switched on through a token is paused once that token is revoked or expires.

Fields and answers worth knowing

  • Contracts. Every contract has one counterparty (counterparty_id). The field vendor keeps its v1 name: in a request it names the counterparty, found regardless of case or created when new; in an answer it is the counterparty's current name. Answers also carry counterparty_name with the same value. Counterparty names are unique per organization, regardless of case, and a counterparty that still has contracts cannot be deleted (409 conflict).
  • Risk taxonomy. A node keeps its v1 field tolerance_eur; the amount is in the node's currency. A node that risks use cannot be deleted (409 conflict).
  • Approval decisions. POST /approvals/{id}/decision answers 403 forbidden when you decide your own request or are not an approver, 422 invalid (field comment) when you reject without a comment, 409 conflict when the approval was already decided, and 404 for an approval whose record you may not see.

Read it together with

Machine-readable description

GET https://grc.volatilis.org/api/v1/openapi.json returns the OpenAPI 3.1 document. It needs no token and contains no customer data. Use it to generate a client.

On this page