Skip to main content

REST endpoints

A handful of plain HTTP endpoints sit next to GraphQL: the browser sign-in flow, health probes and PDF report downloads. Everything else is GraphQL.

Base URL
https://vulnara-gw.rso.dev

Sign-in

GET/auth/oauth2

Start browser sign-in

Redirects the browser to the Vulnara sign-in page. After sign-in the browser comes back to the callback below.

Responses

NameDescription
302Redirect to the sign-in page.
Request
curl "https://vulnara-gw.rso.dev/auth/oauth2"

GET/auth/oauth2/callback

Finish browser sign-in

The sign-in page redirects here. Vulnara exchanges the code for tokens and hands them to the web app. You do not call this yourself.

Parameters

NameTypeDescription
codeRequiredquery
stateRequiredquery

Responses

NameDescription
302Redirect to the web app, signed in, or to the sign-in failure page.
Request
curl "https://vulnara-gw.rso.dev/auth/oauth2/callback"

POST/auth/oauth2/token

Redeem a sign-in code

After browser sign-in the web app receives a one-time code instead of tokens, and swaps it here for the tokens. A code works once and expires shortly after sign-in. You do not call this yourself.

Responses

NameDescription
200New tokens.
400The code is missing, already used or expired. Sign in again.
503Sign-in is temporarily unavailable. Try again.
Request
curl -X POST "https://vulnara-gw.rso.dev/auth/oauth2/token" \
  -H "Content-Type: application/json" \
  -d '{"refreshToken":"<refresh token>"}'

POST/auth/oauth2/refresh

Refresh an access token

Swap a refresh token for a new access token and refresh token.

Responses

NameDescription
200New tokens.
400The refresh token is missing, expired or revoked. Sign in again.
Request
curl -X POST "https://vulnara-gw.rso.dev/auth/oauth2/refresh" \
  -H "Content-Type: application/json" \
  -d '{"refreshToken":"<refresh token>"}'

POST/auth/oauth2/revoke

Revoke a refresh token

Revoke a refresh token when signing out, so it can no longer be swapped for access tokens. Ending the browser session alone does not do this.

Responses

NameDescription
204The token is revoked.
400The refresh token is missing.
429Too many requests from this address. Wait for the number of seconds in the Retry-After header.
502The token could not be revoked. Try again.
Request
curl -X POST "https://vulnara-gw.rso.dev/auth/oauth2/revoke" \
  -H "Content-Type: application/json" \
  -d '{"refreshToken":"<refresh token>"}'

GET/auth/oauth2/logout

End the browser session

Redirects the browser to end its sign-in session, so the next sign-in asks for credentials again. With id_token_hint, the browser comes back to Vulnara afterwards.

Parameters

NameTypeDescription
id_token_hintqueryThe ID token from sign-in.

Responses

NameDescription
302Redirect to end the session.
Request
curl "https://vulnara-gw.rso.dev/auth/oauth2/logout"

GET/auth/signup

Start free sign-up

Redirects the browser to the Vulnara sign-up page. Once the account is created, the browser signs in to the web app.

Responses

NameDescription
302Redirect to the sign-up page.
Request
curl "https://vulnara-gw.rso.dev/auth/signup"

Chat

POST/chat/message

Send a chat message

Sends one message to the chat assistant in the web app and streams its answer as Server-Sent Events. The assistant answers for the workspace named in X-Tenant, with your access in it.

Parameters

NameTypeDescription
X-TenantheaderWorkspace id. Optional when you belong to one workspace only.

Responses

NameDescription
200A stream of Server-Sent Events. Each delta event carries the next piece of the answer as {"text"}. The stream ends with one done event or one error event. done carries the whole answer: with mode llm, reply holds the assistant's answer; with mode fallback, the workspace has used its daily chat allowance and matches lists documentation passages, each with its sourceUrl, instead of a generated answer. error carries {"message"} for a failure after the stream started.
400The message is missing or empty.
401Missing or invalid bearer token.
403You are not a member of the requested workspace.
502The chat service is unavailable. Try again.
Request
curl -X POST "https://vulnara-gw.rso.dev/chat/message" \
  -H "Authorization: Bearer $VULNARA_TOKEN" \
  -H "X-Tenant: $VULNARA_TENANT" \
  -H "Content-Type: application/json" \
  -d '{"message":"Which repositories have critical findings?"}'

POST/chat/action/{id}

Confirm or cancel a proposed change

When the chat assistant proposes a change, it waits for your decision. Confirm it to apply the change, or cancel it. The answer streams back as Server-Sent Events, like a chat message.

Parameters

NameTypeDescription
idRequiredpathThe proposed action's id, 32 hexadecimal characters.
X-TenantheaderWorkspace id. Optional when you belong to one workspace only.

Responses

NameDescription
200A stream of Server-Sent Events, as for a chat message.
400The id is malformed, or the decision is not confirm or cancel.
401Missing or invalid bearer token.
403You are not a member of the requested workspace.
404The proposed change does not exist or has expired.
409The proposed change was already decided.
502The chat service is unavailable. Try again.
Request
curl -X POST "https://vulnara-gw.rso.dev/chat/action/<id>" \
  -H "Authorization: Bearer $VULNARA_TOKEN" \
  -H "X-Tenant: $VULNARA_TENANT" \
  -H "Content-Type: application/json" \
  -d '{"decision":"confirm"}'

Health

GET/health/live

Liveness

Answers while the API is running.

Responses

NameDescription
200Running.
Request
curl "https://vulnara-gw.rso.dev/health/live"

GET/health/ready

Readiness

Answers 200 when the API can serve requests.

Responses

NameDescription
200Ready.
503Not ready yet.
Request
curl "https://vulnara-gw.rso.dev/health/ready"

Reports

GET/reports/network/{id}

Network report

A PDF report for one network.

Parameters

NameTypeDescription
idRequiredpathId of the network.
X-TenantheaderWorkspace id. Optional when you belong to one workspace only.

Responses

NameDescription
200The report as a PDF download.
401Missing or invalid bearer token.
403You are not a member of the requested workspace.
404The item does not exist in this workspace.
429Too many report downloads. Reports are limited to 20 a minute per caller, with a burst of 5, across all report routes. Wait for the number of seconds in the Retry-After header.
502The report could not be generated. Try again.
Request
curl "https://vulnara-gw.rso.dev/reports/network/<id>" \
  -H "Authorization: Bearer $VULNARA_TOKEN" \
  -H "X-Tenant: $VULNARA_TENANT" \
  -o report.pdf

GET/reports/repository/{id}

Repository report

A PDF report for one repository.

Parameters

NameTypeDescription
idRequiredpathId of the repository.
X-TenantheaderWorkspace id. Optional when you belong to one workspace only.

Responses

NameDescription
200The report as a PDF download.
401Missing or invalid bearer token.
403You are not a member of the requested workspace.
404The item does not exist in this workspace.
429Too many report downloads. Reports are limited to 20 a minute per caller, with a burst of 5, across all report routes. Wait for the number of seconds in the Retry-After header.
502The report could not be generated. Try again.
Request
curl "https://vulnara-gw.rso.dev/reports/repository/<id>" \
  -H "Authorization: Bearer $VULNARA_TOKEN" \
  -H "X-Tenant: $VULNARA_TENANT" \
  -o report.pdf

GET/reports/scan/{id}

Scan report

A PDF report for one scan result.

Parameters

NameTypeDescription
idRequiredpathId of the scan result.
X-TenantheaderWorkspace id. Optional when you belong to one workspace only.

Responses

NameDescription
200The report as a PDF download.
401Missing or invalid bearer token.
403You are not a member of the requested workspace.
404The item does not exist in this workspace.
429Too many report downloads. Reports are limited to 20 a minute per caller, with a burst of 5, across all report routes. Wait for the number of seconds in the Retry-After header.
502The report could not be generated. Try again.
Request
curl "https://vulnara-gw.rso.dev/reports/scan/<id>" \
  -H "Authorization: Bearer $VULNARA_TOKEN" \
  -H "X-Tenant: $VULNARA_TENANT" \
  -o report.pdf

GET/reports/summary

Security summary report

A PDF summary of the security posture of the whole workspace.

Parameters

NameTypeDescription
X-TenantheaderWorkspace id. Optional when you belong to one workspace only.

Responses

NameDescription
200The report as a PDF download.
401Missing or invalid bearer token.
403You are not a member of the requested workspace.
404The item does not exist in this workspace.
429Too many report downloads. Reports are limited to 20 a minute per caller, with a burst of 5, across all report routes. Wait for the number of seconds in the Retry-After header.
502The report could not be generated. Try again.
Request
curl "https://vulnara-gw.rso.dev/reports/summary" \
  -H "Authorization: Bearer $VULNARA_TOKEN" \
  -H "X-Tenant: $VULNARA_TENANT" \
  -o report.pdf

GET/reports/web-target/{id}

Web target report

A PDF report for one web target.

Parameters

NameTypeDescription
idRequiredpathId of the web target.
X-TenantheaderWorkspace id. Optional when you belong to one workspace only.

Responses

NameDescription
200The report as a PDF download.
401Missing or invalid bearer token.
403You are not a member of the requested workspace.
404The item does not exist in this workspace.
429Too many report downloads. Reports are limited to 20 a minute per caller, with a burst of 5, across all report routes. Wait for the number of seconds in the Retry-After header.
502The report could not be generated. Try again.
Request
curl "https://vulnara-gw.rso.dev/reports/web-target/<id>" \
  -H "Authorization: Bearer $VULNARA_TOKEN" \
  -H "X-Tenant: $VULNARA_TENANT" \
  -o report.pdf

GET/reports/workspace/{id}

Git workspace report

A PDF report for one git workspace: an organisation, group or user on your git provider.

Parameters

NameTypeDescription
idRequiredpathId of the git workspace.
X-TenantheaderWorkspace id. Optional when you belong to one workspace only.

Responses

NameDescription
200The report as a PDF download.
401Missing or invalid bearer token.
403You are not a member of the requested workspace.
404The item does not exist in this workspace.
429Too many report downloads. Reports are limited to 20 a minute per caller, with a burst of 5, across all report routes. Wait for the number of seconds in the Retry-After header.
502The report could not be generated. Try again.
Request
curl "https://vulnara-gw.rso.dev/reports/workspace/<id>" \
  -H "Authorization: Bearer $VULNARA_TOKEN" \
  -H "X-Tenant: $VULNARA_TENANT" \
  -o report.pdf

GET/reports/risk-register

Risk register report

A PDF of the workspace's risk register.

Parameters

NameTypeDescription
X-TenantheaderWorkspace id. Optional when you belong to one workspace only.

Responses

NameDescription
200The report as a PDF download.
401Missing or invalid bearer token.
403You are not a member of the requested workspace.
429Too many report downloads. Reports are limited to 20 a minute per caller, with a burst of 5, across all report routes. Wait for the number of seconds in the Retry-After header.
502The report could not be generated. Try again.
Request
curl "https://vulnara-gw.rso.dev/reports/risk-register" \
  -H "Authorization: Bearer $VULNARA_TOKEN" \
  -H "X-Tenant: $VULNARA_TENANT" \
  -o report.pdf

GET/reports/audit-log/pdf

Audit log report (PDF)

A PDF of the team's audit log, with the filters you pass. Only admins can download it.

Parameters

NameTypeDescription
X-TenantheaderWorkspace id. Optional when you belong to one workspace only.
kindqueryOnly changes or only reads.
actorqueryOnly events by this member.
actionqueryOnly events with this action.
resourceTypequeryOnly events on this kind of resource.
resourceIdqueryOnly events on this resource.
outcomequeryOnly events that succeeded or failed.
sincequeryOnly events at or after this time, ISO 8601.
untilqueryOnly events before this time, ISO 8601.

Responses

NameDescription
200The report as a PDF download.
401Missing or invalid bearer token.
403You are not an admin of the requested team.
429Too many report downloads. Reports are limited to 20 a minute per caller, with a burst of 5, across all report routes. Wait for the number of seconds in the Retry-After header.
502The report could not be generated. Try again.
Request
curl "https://vulnara-gw.rso.dev/reports/audit-log/pdf" \
  -H "Authorization: Bearer $VULNARA_TOKEN" \
  -H "X-Tenant: $VULNARA_TENANT" \
  -o report.pdf

GET/reports/audit-log/csv

Audit log report (CSV)

The team's audit log as CSV, one row per event, with the filters you pass. Only admins can download it.

Parameters

NameTypeDescription
X-TenantheaderWorkspace id. Optional when you belong to one workspace only.
kindqueryOnly changes or only reads.
actorqueryOnly events by this member.
actionqueryOnly events with this action.
resourceTypequeryOnly events on this kind of resource.
resourceIdqueryOnly events on this resource.
outcomequeryOnly events that succeeded or failed.
sincequeryOnly events at or after this time, ISO 8601.
untilqueryOnly events before this time, ISO 8601.

Responses

NameDescription
200The report as a CSV download.
401Missing or invalid bearer token.
403You are not an admin of the requested team.
429Too many report downloads. Reports are limited to 20 a minute per caller, with a burst of 5, across all report routes. Wait for the number of seconds in the Retry-After header.
502The report could not be generated. Try again.
Request
curl "https://vulnara-gw.rso.dev/reports/audit-log/csv" \
  -H "Authorization: Bearer $VULNARA_TOKEN" \
  -H "X-Tenant: $VULNARA_TENANT"