Find endpoints in the API reference
Valystrum publishes its API in three forms. All three read the same OpenAPI file, and none needs a sign-in to open.
| Address | What it is | Use it to |
|---|---|---|
https://app.valystrum.io/api-docs | The interactive reference | Browse endpoints grouped by resource and try a call. |
https://app.valystrum.io/reference | The readable reference | Read every endpoint on one long page with a search and a menu. |
https://app.valystrum.io/api/v1/openapi.json | The OpenAPI file (OpenAPI 3.0) | Generate a client, or load it into your own tools. |
The version of the API is in the title of both references, for example "Valystrum Platform API 1.23.0". The changelog at /changelog lists every API change under that version.
Find an endpoint
- Open
/api-docs. - Endpoints are grouped by resource, the part of the path after your organisation, such as
findings,risksorwebhooks. Open a group, then an endpoint, to see its path, its parameters, the query keys it reads and the answers it can give, with their status codes. - Every path starts with
/api/v1/{org}/. Put your organisation's slug in place of{org}.
In /reference, use the search box in the menu on the left to find a word such as "findings".
Try a call from the reference
- On
/api-docs, open an endpoint and press Try it out. - Choose the server: this host, or production.
- To call with a key, press Authorize and paste your auditor API key. If you are signed in to Valystrum in the same browser, a read is sent with your session instead.
- Fill in
organd any parameters, then press Execute. The answer appears under the button.
What the reference does not tell you yet
Most answers are described only as a JSON object, without their fields. To see the fields, call the endpoint once and read the answer, or read Using the API: keys and the reference for the outer shape every answer shares.
Generate a client
The page /sdk gives the commands to generate typed clients from the OpenAPI file: TypeScript types with openapi-typescript, and Python and Go clients with openapi-generator. The TypeScript client Valystrum uses itself is not published yet.