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.
Base URL
Endpoints are mounted under the /api prefix. The host depends on where VerifyWise runs. For a local install the default is:
http://localhost:3000/apiOn 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.
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:
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}'List, revoke and delete tokens
| Method & path | Description |
|---|---|
| GET /api/tokens | List the organization’s tokens with status and last-used time. The token value itself is never returned. |
| POST /api/tokens | Create a token (Admin only). Returns the raw token once. |
| POST /api/tokens/:id/revoke | Revoke a token (Admin only). It stops working immediately and is kept, marked revoked, for your records. |
| DELETE /api/tokens/:id | Permanently delete a token row (Admin only). |
Response shape
Responses use a consistent envelope: a short message and a data field that holds the payload.
{
"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:
{
"message": "Bad Request",
"data": "expires_in_days is required"
}Server errors (5xx) use an error field instead of data:
{
"message": "Internal Server Error",
"error": "..."
}Status codes
| Code | Meaning |
|---|---|
| 200 / 201 / 202 | Success. 201 is returned when a resource is created; some updates, deletes and queued jobs return 202. |
| 400 | Bad request: missing or invalid input, or no token in the Authorization header. |
| 401 | Invalid or revoked token. |
| 403 | Authenticated, but your role is not allowed to perform this action, or the feature is not enabled. |
| 404 | Resource not found. |
| 406 | The token has expired. |
| 409 | Conflict with existing data, for example a duplicate name, on the endpoints that check for one. |
| 429 | Too many requests. Slow down and retry; the RateLimit headers say when the window resets. |
| 500 | Server 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.
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.