Reference / API
API reference
The endpoints of the REST API under /api/v1, the permission each one requires and what it accepts.
On this page
Reading this page
Paths are relative to /api/v1. Requires is the permission a role or API key scope must include. Authentication, response shapes and error codes are described in the API overview.
The list of endpoints on this page is generated from the application's own route handlers (168 at the time of this build), so it cannot list an endpoint that does not exist. Endpoints that only RedAssay's own app and operations use, and that no API key can call, are left out.
Activity
| Endpoint | Requires | What it does |
|---|---|---|
GET /activity | audit:read | The audit log, newest first. Query: entityType, entityId, page. |
GET /activity/export | audit:read | The audit log as CSV: the newest 10,000 entries, or only entityType. Query from and to (YYYY-MM-DD, UTC, both days included) limit it to one period. The export is itself logged. |
API keys
| Endpoint | Requires | What it does |
|---|---|---|
GET /api-keys | apiKey:read | Active (not revoked) keys: name, scopes, created, expires, last used, creator. Never the key itself. |
POST /api-keys | apiKey:create, session only | Create a key. Body: name, expiry (never, 30d, 90d, 1y), scopes (at least one permission you hold). The response includes key, the only time it is returned. |
DELETE /api-keys/{id} | apiKey:delete | Revoke a key. |
Audit engagements
| Endpoint | Requires | What it does |
|---|---|---|
GET /audits | engagement:read | Audit engagements with outside firms, latest window first. |
POST /audits | engagement:create | Open an engagement with an outside firm. It starts in planning, with nothing frozen. |
GET /audits/{id} | engagement:read | One engagement: firm, kind, frameworks, window, status, and whether its scope is frozen. |
PATCH /audits/{id} | engagement:update | Edit an engagement or move it to another status. A closed engagement is a record and takes no edits. Once the scope is frozen, the fields the digest covers (kind, frameworks, window) are fixed. |
DELETE /audits/{id} | engagement:delete | Only an engagement that never got going can be deleted. Anything with a frozen scope or a report is cancelled instead. |
POST /audits/{id}/freeze | engagement:update | Freeze the scope: snapshot every in-scope control and stamp the digest. Allowed once per engagement; a second call returns 409. The audit entry carries the digest and the number of controls. |
GET /audits/{id}/package | engagement:read, evidence:read, auditRequest:read and the read permission of every population | Packages built for the engagement with their manifest hashes, and the size the optional evidence part would have. ?verify= with the SHA-256 of a manifest.json says whether a package built here has it. |
POST /audits/{id}/package | engagement:read, evidence:read, auditRequest:read and the read permission of every population | Build the audit package and stream it as a ZIP. 409 until the scope is frozen. includeEvidence=1 (form field or query) adds the evidence files, refused above 1 GB or 5,000 files. Limited to 10 builds per organization and 5 per person per hour. |
GET /audits/{id}/populations | engagement:read | Every population the caller may read, with its row count and body hash, and what this product does not record. |
GET /audits/{id}/populations/{key} | engagement:read and the read permissions of the records behind the population | One population for the engagement's window. Without format, the first rows; ?format=csv or ?format=json downloads the whole list and is written to the activity log. |
GET /audits/{id}/populations/{key}/samples | engagement:read | Samples drawn from this population, oldest first. |
POST /audits/{id}/populations/{key}/samples | auditRequest:create, engagement:read and the population's read permissions | Draw a sample. Body: size (1 to 500), optional seed. 409 until the scope is frozen, and on a completed or cancelled engagement. |
GET /audits/{id}/populations/{key}/samples/{sampleId} | engagement:read | A sample record with its selected rows as the population reads now, and whether the draw still re-derives. |
POST /audits/{id}/populations/{key}/samples/{sampleId}/requests | auditRequest:create | Turn a sample into requests, one per selected row, in one step. Rows that already have their request are skipped. |
GET /audits/{id}/reports | engagement:read | Reports and certificates filed for the engagement, newest first, withdrawn ones included (marked). Never the storage location. |
POST /audits/{id}/reports | engagement:update | File the deliverable the outside firm issued: multipart 'file' (PDF, up to 50 MB) plus its facts ('kind', 'issuerName', 'issueDate', and per kind 'periodStart'/'periodEnd', 'validUntil', 'certificateNumber', 'opinion'; 'frameworkIds' comma-separated, default the engagement's). Immutable once stored. |
GET /audits/{id}/reports/{reportId} | engagement:read | One report record: its facts, hash and trust-center switches. |
PATCH /audits/{id}/reports/{reportId} | engagement:update | The only two things about a report that can change: whether it backs the public trust-center status of its frameworks, and whether approved grant holders may download the file. Needs both 'engagement:update' and 'trust:update', because it changes what the public page says. |
DELETE /audits/{id}/reports/{reportId} | engagement:update | Withdraw a report (tombstone): the record and its hash stay, with who withdrew it and why; the file is no longer served. |
GET /audits/{id}/reports/{reportId}/file | engagement:read | Authorized download of a report file. The bytes are re-hashed against the SHA-256 recorded at upload before anything is sent; the download is written to the activity log. Always an attachment of an inert type. |
GET /audits/{id}/requests | auditRequest:read | The request list of an engagement. '?status=open|returned|submitted|accepted|withdrawn|overdue', '?controlId='. |
POST /audits/{id}/requests | auditRequest:create | Raise one request. Either side may: the auditor's own list, or the organization preparing for one. |
GET /audits/{id}/requests/{requestId} | auditRequest:read | One request with its responses, comment thread and history. |
PATCH /audits/{id}/requests/{requestId} | auditRequest:update | Change an open request. Only the side that raised it may. |
POST /audits/{id}/requests/{requestId}/accept | auditRequest:update | Accept a submitted response. Only the side that raised the request may: the organization cannot accept its own answer to an auditor. |
POST /audits/{id}/requests/{requestId}/comments | auditRequest:update | Add a plain-text comment to a request's thread. Either side may. |
DELETE /audits/{id}/requests/{requestId}/comments/{commentId} | auditRequest:update | Remove your own comment. The row stays with who removed it and why; the text is no longer shown. |
POST /audits/{id}/requests/{requestId}/responses | auditRequest:update | Answer a request (organization only): JSON '{ evidenceIds }' points at existing evidence, JSON '{ text }' is a written answer, and a multipart 'file' (50 MB at most) is stored against the request itself. The file's type is read from its bytes and must be on the evidence allowlist. The audit entry carries ids and hashes, never content. |
DELETE /audits/{id}/requests/{requestId}/responses/{responseId} | auditRequest:update | Take a response off an open request (organization only). A tombstone: the row, its hash and any file are kept. |
GET /audits/{id}/requests/{requestId}/responses/{responseId}/file | auditRequest:read | Authorized download of a file uploaded to a request. The bytes are re-hashed against the SHA-256 recorded at upload and those same bytes are sent, always as an attachment of an inert type. Each download is logged. |
POST /audits/{id}/requests/{requestId}/return | auditRequest:update | Send a submitted response back with the reason. The request is open again. Only the side that raised it may. |
POST /audits/{id}/requests/{requestId}/submit | auditRequest:update | Hand the response to the side that raised the request (organization only; needs at least one response). |
POST /audits/{id}/requests/{requestId}/withdraw | auditRequest:update | Withdraw a request that is no longer wanted. It stays on the list as withdrawn, with who, when and why. |
POST /audits/{id}/requests/import | auditRequest:create | Bulk-create requests from a CSV (auditors arrive with a spreadsheet). Always returns a result per row. 'commit: false' (the default) only checks; 'commit: true' creates the list, and only when every row is valid, so a half-imported list never has to be untangled. |
GET /audits/{id}/requests/starter | auditRequest:read | A proposed starter list to review: one request per in-scope key control, plus the standard population requests. |
POST /audits/{id}/requests/starter | auditRequest:create | Create the proposals the person kept. Only the keys are taken from the request; titles and descriptions are generated again here, so nothing but the selection comes from the client. |
GET /audits/{id}/scope | engagement:read | The scope of an engagement. Frozen: the snapshot, its digest, and what changed since ('drift'). Not frozen yet: 'preview', the controls a freeze would capture right now. |
GET /audits/{id}/scope/amendments | engagement:read | Amendments recorded against the frozen scope, oldest first. |
POST /audits/{id}/scope/amendments | engagement:update | Append a correction to a frozen scope. The snapshot and its digest are not changed; the amendment is read beside them. |
GET /audits/{id}/scope/coverage | engagement:read | Period coverage over the engagement window, judged against the frozen scope (its task links and frequencies). |
GET /audits/documents | engagement:read | Audit documents the org prepares itself. '?engagement=<id>' narrows the list to one audit. |
POST /audits/documents | engagement:create | Start a document: a first draft generated from the org's current data. |
GET /audits/documents/{id} | engagement:read | |
PATCH /audits/documents/{id} | engagement:update | Tie the document to an audit, or untie it ('engagementId: null'). |
DELETE /audits/documents/{id} | engagement:delete | Discard a document that was never approved. |
POST /audits/documents/{id}/versions | engagement:update | Start the next version (a draft copied from the latest version, generated parts refreshed). |
GET /audits/documents/{id}/versions/{versionId} | engagement:read | One version with its content and what still blocks approval. |
PATCH /audits/documents/{id}/versions/{versionId} | engagement:update | Save the org's edits to a draft. An approved version can't be changed (409). |
DELETE /audits/documents/{id}/versions/{versionId} | engagement:delete | Discard a draft version of a document that has an approved one. An approved or superseded version stays (409). |
POST /audits/documents/{id}/versions/{versionId}/approve | engagement:update | The org approves its own document. Requires every entry decided and confirmed, and an approver who did not edit the version (unless the org has a single owner/admin: then allowed and flagged as self-approved). |
GET /audits/documents/{id}/versions/{versionId}/export | engagement:read | Download a version: '?format=pdf' (default), or the open format for the kind ('csv' or 'md'). The download is recorded. |
POST /audits/documents/{id}/versions/{versionId}/refresh | engagement:update | Re-derive the generated parts of a draft (suggestions, supporting controls, matrix) from current data. Confirmed decisions are kept. |
Auditor introductions
| Endpoint | Requires | What it does |
|---|---|---|
GET /auditors/intro-requests | engagement:read | The organization's requests to be introduced to an audit firm or certification body, newest first. staffed says whether RedAssay has anyone handling introductions at the moment. |
POST /auditors/intro-requests | engagement:create | Ask for an introduction. Body: 'frameworkIds' (library ids), 'kind', 'timeline', 'companySize', 'region', optional 'notes', and 'consent: true'. Only the form is stored and, where introductions are staffed, emailed to RedAssay staff; 'staffNotified' says whether that happened. Signed-in users only (the consent is a person's). 429 after 5 requests per organization in 24 hours. |
POST /auditors/intro-requests/{id}/withdraw | engagement:update | Withdraw an introduction request: it becomes 'closed' and stays on record. 409 if it is already closed. |
Controls
| Endpoint | Requires | What it does |
|---|---|---|
GET /controls | control:read | All controls with computed status, reasons, linked taskIds and policyIds, and mapped requirements. Query: status. |
POST /controls | control:create | Create a custom control. Body: code, name; optional domain, objective, key, ownerMemberId, implementation, applicable, naJustification, requirements ([{ requirementId, coverage }] from adopted frameworks). 409 if the code is taken. |
GET /controls/{id} | control:read | One control. |
PATCH /controls/{id} | control:update | Update a control. Setting applicable: false requires naJustification of at least 20 characters. |
DELETE /controls/{id} | control:delete | Delete a custom control. Library controls return 409: mark them not applicable instead. |
GET /controls/{id}/coverage | control:read | Operating history of a control, one row per linked task and period. Query: from, to (YYYY-MM-DD, default the last 12 months, at most 5 years), format=csv for a file. The CSV export is logged. |
Documents
| Endpoint | Requires | What it does |
|---|---|---|
GET /documents | document:read | Documents with their status and how many signers have signed. |
POST /documents | document:create | Create a draft. JSON for a template ('{ source: "template", templateId, fields }') or in-app text ('{ source: "richtext", title, content }'); multipart ('file', 'title') for an uploaded PDF. The original PDF is rendered or validated here and never changes afterwards. |
GET /documents/{id} | document:read | One document with its signers and its event trail. |
DELETE /documents/{id} | document:delete | Drafts only. A document that was sent is a record: it can be voided, never deleted. |
GET /documents/{id}/file | document:read | Authorized download: '?kind=final' for the signed PDF (default once completed), '?kind=original' for the original. Every download is recorded: these are agreements, and who read them is part of the record. |
POST /documents/{id}/finalize | document:update | Retry producing the final PDF. Normally this happens the moment the last signer signs; this exists for the case where storage was unavailable at that moment. It changes nothing unless every signer has signed. |
POST /documents/{id}/remind | document:update | Email a new signing link to whoever's turn it is (or just 'signerId'). Only hashes are stored, so a reminder always mints a new link, and the signer's earlier link stops working. |
POST /documents/{id}/resend | document:update | Email the completed, signed copy to every party again (for example after a delivery failure). Each signer gets a new download link and the earlier one stops working. Delivery, or its failure, is recorded per recipient. |
POST /documents/{id}/revoke-links | document:update | Stop every "download your signed copy" link for this document from working (they otherwise last a year). The signed document and its record are untouched; members can still download their copy from the portal. |
POST /documents/{id}/send | document:update | Send a draft for signature. Signers are org members ('memberId') or outside people ('name' + 'email'). |
GET /documents/{id}/verify | document:read | Integrity check for a completed document. Re-reads the stored final PDF and re-hashes it ('storedFileIntact'); with '?sha256=<hex>' it also says whether that fingerprint is this document's ('matches'). |
POST /documents/{id}/void | document:update | Cancel a document that is out for signature. Every signing link stops working; the record is kept. |
GET /documents/templates | document:read | Built-in templates with their merge fields. The same list for every org. |
Employee portal
| Endpoint | Requires | What it does |
|---|---|---|
GET /portal/documents | any active member | Documents where I am a signer: waiting for me, and ones I have signed. |
GET /portal/documents/{signerId} | any active member | Signing page data for a signed-in member. Only their own signer row resolves. |
POST /portal/documents/{signerId} | any active member | '{ action: "consent" | "sign" | "decline", … }' for this one document, as the signed-in member. |
GET /portal/documents/{signerId}/file | any active member | A member's own document: the original to review (after consenting), or with '?kind=final' the signed copy of a completed document they signed. The signed copy stays available here after completion. Once a request is voided, declined or expired, the document is no longer served to the people it was sent to. |
GET /portal/policies | portal access, session only | The policies the caller must sign: current version, content and when they accepted it. |
POST /portal/policies/acks | portal access, session only | Accept policy versions. Body: versionIds. Repeating a call records nothing new. |
GET /portal/training | portal access, session only | The caller's training items and completion. |
POST /portal/training/{id} | portal access, session only | Mark a training item complete. |
GET /portal/training/certificate | portal access, session only | The caller's training completion record as a PDF. 404 unless all topics are currently complete. |
Evidence
| Endpoint | Requires | What it does |
|---|---|---|
DELETE /evidence/{id} | evidence:delete | Withdraw evidence, leaving a tombstone; the stored content is kept. Body: reason (10 to 500 characters). Returns the sha256. |
POST /evidence/{id}/decision | evidence:approve | Accept or reject evidence. Body: decision (accepted or rejected), reason (required for a rejection, 10 to 1,000 characters). 403 if you submitted the evidence and another owner or admin exists. |
GET /evidence/{id}/file | evidence:read | Download an evidence file as an attachment, after re-checking it against its recorded hash, which is returned in X-Evidence-SHA256. 404 for text evidence and deleted evidence. Each download is logged. |
GET /evidence/{id}/review | evidence:read | AI reviews and human decisions for one piece of evidence, newest first. |
POST /evidence/{id}/review | evidence:create | Ask for an AI review. Advisory: it changes no status. The same file, task context and model returns the stored review. 403 while the organization has the feature off, 409 if AI is unavailable, 429 over the daily limit. |
Frameworks
| Endpoint | Requires | What it does |
|---|---|---|
GET /frameworks | framework:read | Adopted frameworks, each with readiness (percent, total, counts per state) and naControls. With scope=library: every framework in the library, with adopted and category. |
POST /frameworks | framework:create | Adopt more frameworks. Body: frameworks, a list of library ids. Existing controls are reused; returns added, adopted and controlsAdded. 404 for an unknown id. |
GET /frameworks/{id} | framework:read | One adopted framework with every requirement: state, reasons and the mapped controls with their coverage and state. |
Integrations
| Endpoint | Requires | What it does |
|---|---|---|
GET /integrations | integration:read | The organization's connections, without their credentials. |
POST /integrations | integration:create | Connect a provider. AWS: '{ provider, name, regions? }' → pending connection with a server-generated External ID. GCP: '{ provider, name, serviceAccountKey }'. GitHub: '{ provider, name, org, token }'. Credentials are verified, stored encrypted and never returned. |
GET /integrations/{id} | integration:read | One connection with its checks, each with its newest result. |
PATCH /integrations/{id} | integration:update | Rename, set the AWS role ARN / regions, or replace the stored credential. Changes are re-verified. |
DELETE /integrations/{id} | integration:delete | Disconnect: destroys the stored credential, keeps the connection and its result history. |
GET /integrations/{id}/checks/{checkId} | integration:read | Append-only history of one check, newest first (every pass, fail and unverified run is kept). |
POST /integrations/{id}/run | integration:update | "Run now": execute every check of the connection and append the results. |
GET /integrations/{id}/runs | integration:read | Past runs of a connection. |
POST /integrations/{id}/verify | integration:update | Re-check that the connection still works. The outcome is on the returned entity ('status', 'lastError'). |
GET /integrations/providers | integration:read | Catalogue: what can be connected, how, and the exact read-only permissions each provider needs. |
Invitations
| Endpoint | Requires | What it does |
|---|---|---|
GET /invitations | member:read | Pending invitations. |
POST /invitations | member:create | Add people. Body: invites, 1 to 100 rows of { email, roles }. Returns one { email, ok, error?, message? } per row; the request succeeds even when individual rows are refused. |
DELETE /invitations/{id} | invitation:delete | Revoke a pending invitation. |
Organization
| Endpoint | Requires | What it does |
|---|---|---|
GET /organization | organization:read | The organization record. |
PATCH /organization | organization:update | Update name and/or website. |
DELETE /organization | organization:delete, session only | Delete the organization and everything in it, stored files included. Body: { "confirm": "delete" }. Answers { ok, filesDeleted, filesLocked, filesFailed, lockedUntil }: files under a retention lock are left in the file store and counted. |
GET /organization/ai | organization:read | The organization's AI switches, whether AI is available, and the provider and model in use. |
PUT /organization/ai | organization:update, session only | Turn AI features on or off. Body: evidenceReview, policyTailoring (booleans). Both are off until turned on. An API key is refused with 403. |
GET /organization/training | organization:read | The organization's own training material: one https link per topic. |
PUT /organization/training | organization:update | Set or clear links ('""' clears). A topic without a link cannot be marked complete by anyone. |
People
| Endpoint | Requires | What it does |
|---|---|---|
GET /people | member:read | Members and pending invitations, with policy and training progress. Query: role, status (active, deactivated, pending, all). |
GET /people/{id} | member:read | One member with profile, signed policies and training. |
PATCH /people/{id} | member:update | Update jobTitle, department, onboardDate, offboardDate. |
POST /people/{id}/deactivate | member:delete | Deactivate a member: ends their sessions and reassigns what they own to the organization owner. The response includes reassigned, a count per record type. |
POST /people/{id}/reactivate | member:delete | Reactivate a deactivated member. |
PUT /people/{id}/roles | member:update | Replace a member's roles. Body: roles. The owner role is unaffected; you cannot change your own roles or assign roles you do not hold, and only an owner can grant admin. |
GET /people/{id}/training-certificate | member:read | The member's training completion record (a self-attestation, not a certificate) as a PDF. Owners and admins for any member; other callers only their own. 404 unless all training topics are currently complete. |
POST /people/{id}/transfer-ownership | member:update, session only | Make this member the owner; the caller becomes an admin. Caller must be the owner, signed in. |
Policies
| Endpoint | Requires | What it does |
|---|---|---|
GET /policies | policy:read | Policies with status, reasons, publishedVersion and awaitingApproval. Query: status, archived=true to include archived policies. |
POST /policies | policy:create | Create a policy with a first draft, version 1.0. Body: title; optional content, ownerMemberId, requiredToSign, reviewFrequencyMonths (1 to 60), public, controlIds. |
GET /policies/{id} | policy:read | One policy with all of its versions. |
PATCH /policies/{id} | policy:update | Update policy settings, including archived. controlIds replaces the linked controls. |
POST /policies/{id}/tailor | policy:update | Rewrite the policy for your company with RedAssay's AI provider and save the result as a draft. 403 while the organization has the feature off; 409 while an approved version is waiting to be published, or if the policy changed while the AI was working; 503 if AI is unavailable. |
GET /policies/{id}/versions | policy:read | All versions, newest first. |
POST /policies/{id}/versions | policy:update | Start a new draft. Body: content; optional changeSummary, bump (minor or major). 409 if an unpublished version already exists. |
GET /policies/{id}/versions/{versionId} | policy:read | One version, with content. |
PATCH /policies/{id}/versions/{versionId} | policy:update | Edit a draft's content or changeSummary. 409 for any other status. |
DELETE /policies/{id}/versions/{versionId} | policy:update | Discard a draft. |
POST /policies/{id}/versions/{versionId}/approve | policy:approve | Approve a draft. 403 if the caller wrote it and another owner or admin exists. |
POST /policies/{id}/versions/{versionId}/publish | policy:update | Publish an approved version; the previous published version becomes superseded. |
Public trust center
| Endpoint | Requires | What it does |
|---|---|---|
GET /public/documents/verify | none (public) | Whether sha256 (64 hex characters) is the fingerprint of a completed document. |
GET /public/sign-copy/{token} | copy link | A signer's completed PDF, from the link in the completion email. A download is recorded in the document's trail and the audit log, at most once per signer per hour. |
GET /public/sign/{token} | signing link | What the signing page needs, for the holder of an emailed signing link. |
POST /public/sign/{token} | signing link | One step of signing one document. Body: action (consent, sign or decline) and that step's fields. The link stops working once it signs or declines. |
GET /public/sign/{token}/file | signing link | The PDF the link-holder is asked to sign, after they have consented. |
POST /public/trust/{slug}/access-requests | none (public) | Submit a trust center access request. Body: name, email, company, purpose. The response is the same whether or not the email is already known. A new request is emailed to the organization's owners and admins. |
GET /public/trust/{slug}/policies/{policyId}/pdf | access token | A published policy as a PDF. Query: token, from an approved access link; checked on every request. |
GET /public/trust/{slug}/reports/{reportId}/file | none (public) | Token-gated download of a report the organization chose to offer to approved grant holders. Every request re-checks the grant (active, unexpired, not revoked) and that the report is still offered and not withdrawn. |
Risks
| Endpoint | Requires | What it does |
|---|---|---|
GET /risks | risk:read | Risks, highest inherent score first, each with inherent and residual scores and bands. Query: status, category, owner (member id), page. |
POST /risks | risk:create | Create a risk. Body: title, description, likelihood, impact (1 to 5); optional category, department, status, residualLikelihood, residualImpact, treatment, treatmentDescription, ownerMemberId, taskIds. |
GET /risks/{id} | risk:read | One risk with scores and linked taskIds. |
PATCH /risks/{id} | risk:update | Update a risk. taskIds replaces the linked tasks; a residual value of null follows the inherent value. |
DELETE /risks/{id} | risk:delete | Delete a risk. |
Tasks
| Endpoint | Requires | What it does |
|---|---|---|
GET /tasks | task:read | Tasks with status, reasons, dueAt and lastCollectedAt. Query: status, assignee (member id). |
POST /tasks | task:create | Create a task. Body: title, frequency (monthly, quarterly, yearly); optional description, assigneeMemberId, ownerMemberId, controlIds. An assignee or owner must be an active member with the owner, admin or employee role; an auditor-only member is refused with 400. The same holds for ownerMemberId on controls, policies, risks and vendors. |
GET /tasks/{id} | task:read | One task with its evidence history, including tombstones. |
PATCH /tasks/{id} | task:update | Update a task. controlIds replaces the linked controls. 409 when it would change the frequency or the linked controls of a task fed by an integration check. |
DELETE /tasks/{id} | task:delete | Delete a task that has no evidence history. 409 otherwise, and for a task fed by an integration check. |
GET /tasks/{id}/evidence | evidence:read | The task's evidence, newest first. |
POST /tasks/{id}/evidence | evidence:create | Add evidence. Either multipart/form-data with file (plus optional collectedAt, note), or JSON { text, collectedAt?, note? } with text of 20 to 20,000 characters. collectedAt cannot be in the future or before the task existed. The file's type is read from its bytes; executables and unrecognised binaries are refused. |
Trust center
| Endpoint | Requires | What it does |
|---|---|---|
GET /trust | trust:read | Trust center settings. |
PATCH /trust | trust:update | Update settings: enabled, contactEmail, overviewTitle, overviewMarkdown, showSubprocessors, frameworks (per framework: enabled, status, and the facts that status requires: audit firm and dates for a report, or body, number and expiry for a certificate). |
GET /trust/grants | trust:read | Access grants with expiry and whether each is active. |
DELETE /trust/grants/{id} | trust:update | Revoke a grant. |
GET /trust/requests | trust:read | Access requests. Query: status (under_review, approved, denied). |
POST /trust/requests/{id}/approve | trust:update | Approve a request and email the access link. Body: days (7, 30 or 90). |
POST /trust/requests/{id}/deny | trust:update | Deny a request. Body: reason. |
Vendors
| Endpoint | Requires | What it does |
|---|---|---|
GET /vendors | vendor:read | Vendors by name, with scores. Query: category, assessmentStatus. |
POST /vendors | vendor:create | Create a vendor. Body: name; optional description, category, website, assessmentStatus, subprocessor, and the same assessment fields as a risk. |
GET /vendors/{id} | vendor:read | One vendor. |
PATCH /vendors/{id} | vendor:update | Update a vendor. |
DELETE /vendors/{id} | vendor:delete | Delete a vendor. |