User guideDeveloper guidePlatform REST API
Developer guide

Platform REST API

Authenticate with a token and read or write your governance data over REST.

Platform REST API

The VerifyWise platform exposes a REST API for reading and writing your governance data: projects, risks, vendors, models, tasks, evidence, policies and more. Endpoints live under /api (older endpoints) and /api/v1 (newer ones), and authenticate with a bearer token you create in the app.

This article covers the basics that apply to every endpoint: the base URL, how to authenticate, the response shape and the current limits. For the full endpoint catalog, use the OpenAPI reference described below.

Agent Control has its own API
If you are governing an AI agent’s tool calls, you want the Agent Control hook API instead, not these endpoints. See the API reference in this guide.

Base URL

Endpoints are mounted under the /api prefix. The host depends on where VerifyWise runs. For a local install the default is:

bash
http://localhost:3000/api

On a hosted deployment, replace the host with your own domain. Endpoint paths keep their casing exactly as defined. For example, project risks are served at /api/projectRisks, not /api/project-risks.

Older endpoints are served directly under /api, for example /api/vendors. New endpoints and changed contracts are served under /api/v1, for example /api/v1/vendors for a vendor create or update with the newer fields. The reference lists which path each operation uses.

API reference

VerifyWise ships an OpenAPI 3.0 (Swagger) reference that lists the endpoints, their parameters and their response schemas. The spec is the file Servers/swagger.yaml in the VerifyWise repository, and it covers both the /api and the /api/v1 paths. Use it as the source of truth for the full endpoint list; this article only covers the cross-cutting rules.

A development install also serves the reference as a browsable page at http://localhost:3000/api/docs. Production installs (the Docker image, Kubernetes and hosted deployments) do not serve this page, so use Servers/swagger.yaml there, for example by loading it into any OpenAPI viewer.

Authentication

Every request must carry a bearer token in the Authorization header.

bash
Authorization: Bearer <your-token>

You create tokens in the app under Settings → API keys. Creating, revoking and deleting tokens needs the API keys permission, which Admins have by default. An organization may hold up to 10 active tokens at a time. A token carries the role of the user who created it. If that user’s role later changes, the token stops working and you need to create a new one.

Create a token

Tokens can also be created through the API itself (Admin only). Send a name and an expiry in days:

bash
curl -X POST "http://localhost:3000/api/tokens" \
  -H "Authorization: Bearer <admin-token>" \
  -H "Content-Type: application/json" \
  -d '{"name":"ci-pipeline","expires_in_days":90}'
The raw token is shown once
The full token is returned only in the create response, in the data.token field. It is stored as a hash and can never be retrieved again. Copy it immediately; if you lose it, create a new one.

List, revoke and delete tokens

Method & pathDescription
GET /api/tokensList the organization’s tokens with status and last-used time. The token value itself is never returned.
POST /api/tokensCreate a token (Admin only). Returns the raw token once.
POST /api/tokens/:id/revokeRevoke a token (Admin only). It stops working immediately and is kept, marked revoked, for your records.
DELETE /api/tokens/:idPermanently delete a token row (Admin only).
Revoking takes effect immediately
A revoked token is rejected on its next request, before its expiry date. Revoke a token the moment it may be compromised rather than waiting for it to expire.

Response shape

Responses use a consistent envelope: a short message and a data field that holds the payload.

json
{
  "message": "Created",
  "data": {
    "id": 1,
    "name": "ci-pipeline",
    "expires_at": "2027-06-18T00:00:00.000Z",
    "token": "<raw-token>"
  }
}

Client errors (4xx) use the same envelope, with data carrying the detail:

json
{
  "message": "Bad Request",
  "data": "expires_in_days is required"
}

Server errors (5xx) use an error field instead of data:

json
{
  "message": "Internal Server Error",
  "error": "..."
}

Status codes

CodeMeaning
200 / 201 / 202Success. 201 is returned when a resource is created; some updates, deletes and queued jobs return 202.
400Bad request: missing or invalid input, or no token in the Authorization header.
401Invalid or revoked token.
403Authenticated, but your role is not allowed to perform this action, or the feature is not enabled.
404Resource not found.
406The token has expired.
409Conflict with existing data, for example a duplicate name, on the endpoints that check for one.
429Too many requests. Slow down and retry; the RateLimit headers say when the window resets.
500Server error.

Limits to know about

Two things work differently from what you might expect: most lists return every row, and every route is rate limited.

Most list endpoints are not paginated
Most list endpoints (for example GET /api/projectRisks and GET /api/vendors) return every matching row for your organization and take no limit, offset or page parameters. A few newer lists, such as AI apps, files and report runs, do accept paging parameters; check each one in the reference. Some lists accept a filter parameter (for example active, deleted or all on risks), but expect to receive the full set and handle large responses on your side.
Every route is rate limited
Every /api route sits behind a per-IP limit of 600 requests a minute in production. Some route groups have stricter limits on top of that, for example login (5 a minute), file uploads and downloads (100 per 15 minutes) and AI detection scans (10 an hour). A request over a limit gets a 429 response with the body {"message":"Too Many Requests","data":"<reason>"}, and every response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers. When you get a 429, wait until the window resets and retry.

Multi-tenancy

Every request is scoped to the organization of the token that made it. You only see and modify your own organization’s data. The only exception is a super admin’s token, which can manage organizations through the super-admin endpoints.

PreviousAPI reference
NextWorking with resources
Platform REST API - Developer guide - VerifyWise User Guide