REST-Endpunkte
Neben GraphQL gibt es ein paar einfache HTTP-Endpunkte: die Anmeldung im Browser, Health-Checks und PDF-Berichte. Alles andere läuft über GraphQL.
https://vulnara-gw.rso.devSign-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.
Antworten
| Name | Beschreibung |
|---|---|
| 302 | Redirect to the sign-in page. |
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.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| codePflicht | query | |
| statePflicht | query |
Antworten
| Name | Beschreibung |
|---|---|
| 302 | Redirect to the web app, signed in, or to the sign-in failure page. |
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.
Antworten
| Name | Beschreibung |
|---|---|
| 200 | New tokens. |
| 400 | The code is missing, already used or expired. Sign in again. |
| 503 | Sign-in is temporarily unavailable. Try again. |
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.
Antworten
| Name | Beschreibung |
|---|---|
| 200 | New tokens. |
| 400 | The refresh token is missing, expired or revoked. Sign in again. |
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.
Antworten
| Name | Beschreibung |
|---|---|
| 204 | The token is revoked. |
| 400 | The refresh token is missing. |
| 429 | Too many requests from this address. Wait for the number of seconds in the Retry-After header. |
| 502 | The token could not be revoked. Try again. |
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.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| id_token_hint | query | The ID token from sign-in. |
Antworten
| Name | Beschreibung |
|---|---|
| 302 | Redirect to end the session. |
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.
Antworten
| Name | Beschreibung |
|---|---|
| 302 | Redirect to the sign-up page. |
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.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| X-Tenant | header | Workspace id. Optional when you belong to one workspace only. |
Antworten
| Name | Beschreibung |
|---|---|
| 200 | A 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. |
| 400 | The message is missing or empty. |
| 401 | Missing or invalid bearer token. |
| 403 | You are not a member of the requested workspace. |
| 502 | The chat service is unavailable. Try again. |
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.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| idPflicht | path | The proposed action's id, 32 hexadecimal characters. |
| X-Tenant | header | Workspace id. Optional when you belong to one workspace only. |
Antworten
| Name | Beschreibung |
|---|---|
| 200 | A stream of Server-Sent Events, as for a chat message. |
| 400 | The id is malformed, or the decision is not confirm or cancel. |
| 401 | Missing or invalid bearer token. |
| 403 | You are not a member of the requested workspace. |
| 404 | The proposed change does not exist or has expired. |
| 409 | The proposed change was already decided. |
| 502 | The chat service is unavailable. Try again. |
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.
Antworten
| Name | Beschreibung |
|---|---|
| 200 | Running. |
curl "https://vulnara-gw.rso.dev/health/live"GET/health/ready
Readiness
Answers 200 when the API can serve requests.
Antworten
| Name | Beschreibung |
|---|---|
| 200 | Ready. |
| 503 | Not ready yet. |
curl "https://vulnara-gw.rso.dev/health/ready"Reports
GET/reports/network/{id}
Network report
A PDF report for one network.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| idPflicht | path | Id of the network. |
| X-Tenant | header | Workspace id. Optional when you belong to one workspace only. |
Antworten
| Name | Beschreibung |
|---|---|
| 200 | The report as a PDF download. |
| 401 | Missing or invalid bearer token. |
| 403 | You are not a member of the requested workspace. |
| 404 | The item does not exist in this workspace. |
| 429 | Too 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. |
| 502 | The report could not be generated. Try again. |
curl "https://vulnara-gw.rso.dev/reports/network/<id>" \
-H "Authorization: Bearer $VULNARA_TOKEN" \
-H "X-Tenant: $VULNARA_TENANT" \
-o report.pdfGET/reports/repository/{id}
Repository report
A PDF report for one repository.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| idPflicht | path | Id of the repository. |
| X-Tenant | header | Workspace id. Optional when you belong to one workspace only. |
Antworten
| Name | Beschreibung |
|---|---|
| 200 | The report as a PDF download. |
| 401 | Missing or invalid bearer token. |
| 403 | You are not a member of the requested workspace. |
| 404 | The item does not exist in this workspace. |
| 429 | Too 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. |
| 502 | The report could not be generated. Try again. |
curl "https://vulnara-gw.rso.dev/reports/repository/<id>" \
-H "Authorization: Bearer $VULNARA_TOKEN" \
-H "X-Tenant: $VULNARA_TENANT" \
-o report.pdfGET/reports/scan/{id}
Scan report
A PDF report for one scan result.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| idPflicht | path | Id of the scan result. |
| X-Tenant | header | Workspace id. Optional when you belong to one workspace only. |
Antworten
| Name | Beschreibung |
|---|---|
| 200 | The report as a PDF download. |
| 401 | Missing or invalid bearer token. |
| 403 | You are not a member of the requested workspace. |
| 404 | The item does not exist in this workspace. |
| 429 | Too 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. |
| 502 | The report could not be generated. Try again. |
curl "https://vulnara-gw.rso.dev/reports/scan/<id>" \
-H "Authorization: Bearer $VULNARA_TOKEN" \
-H "X-Tenant: $VULNARA_TENANT" \
-o report.pdfGET/reports/summary
Security summary report
A PDF summary of the security posture of the whole workspace.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| X-Tenant | header | Workspace id. Optional when you belong to one workspace only. |
Antworten
| Name | Beschreibung |
|---|---|
| 200 | The report as a PDF download. |
| 401 | Missing or invalid bearer token. |
| 403 | You are not a member of the requested workspace. |
| 404 | The item does not exist in this workspace. |
| 429 | Too 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. |
| 502 | The report could not be generated. Try again. |
curl "https://vulnara-gw.rso.dev/reports/summary" \
-H "Authorization: Bearer $VULNARA_TOKEN" \
-H "X-Tenant: $VULNARA_TENANT" \
-o report.pdfGET/reports/web-target/{id}
Web target report
A PDF report for one web target.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| idPflicht | path | Id of the web target. |
| X-Tenant | header | Workspace id. Optional when you belong to one workspace only. |
Antworten
| Name | Beschreibung |
|---|---|
| 200 | The report as a PDF download. |
| 401 | Missing or invalid bearer token. |
| 403 | You are not a member of the requested workspace. |
| 404 | The item does not exist in this workspace. |
| 429 | Too 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. |
| 502 | The report could not be generated. Try again. |
curl "https://vulnara-gw.rso.dev/reports/web-target/<id>" \
-H "Authorization: Bearer $VULNARA_TOKEN" \
-H "X-Tenant: $VULNARA_TENANT" \
-o report.pdfGET/reports/workspace/{id}
Git workspace report
A PDF report for one git workspace: an organisation, group or user on your git provider.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| idPflicht | path | Id of the git workspace. |
| X-Tenant | header | Workspace id. Optional when you belong to one workspace only. |
Antworten
| Name | Beschreibung |
|---|---|
| 200 | The report as a PDF download. |
| 401 | Missing or invalid bearer token. |
| 403 | You are not a member of the requested workspace. |
| 404 | The item does not exist in this workspace. |
| 429 | Too 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. |
| 502 | The report could not be generated. Try again. |
curl "https://vulnara-gw.rso.dev/reports/workspace/<id>" \
-H "Authorization: Bearer $VULNARA_TOKEN" \
-H "X-Tenant: $VULNARA_TENANT" \
-o report.pdfGET/reports/risk-register
Risk register report
A PDF of the workspace's risk register.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| X-Tenant | header | Workspace id. Optional when you belong to one workspace only. |
Antworten
| Name | Beschreibung |
|---|---|
| 200 | The report as a PDF download. |
| 401 | Missing or invalid bearer token. |
| 403 | You are not a member of the requested workspace. |
| 429 | Too 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. |
| 502 | The report could not be generated. Try again. |
curl "https://vulnara-gw.rso.dev/reports/risk-register" \
-H "Authorization: Bearer $VULNARA_TOKEN" \
-H "X-Tenant: $VULNARA_TENANT" \
-o report.pdfGET/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.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| X-Tenant | header | Workspace id. Optional when you belong to one workspace only. |
| kind | query | Only changes or only reads. |
| actor | query | Only events by this member. |
| action | query | Only events with this action. |
| resourceType | query | Only events on this kind of resource. |
| resourceId | query | Only events on this resource. |
| outcome | query | Only events that succeeded or failed. |
| since | query | Only events at or after this time, ISO 8601. |
| until | query | Only events before this time, ISO 8601. |
Antworten
| Name | Beschreibung |
|---|---|
| 200 | The report as a PDF download. |
| 401 | Missing or invalid bearer token. |
| 403 | You are not an admin of the requested team. |
| 429 | Too 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. |
| 502 | The report could not be generated. Try again. |
curl "https://vulnara-gw.rso.dev/reports/audit-log/pdf" \
-H "Authorization: Bearer $VULNARA_TOKEN" \
-H "X-Tenant: $VULNARA_TENANT" \
-o report.pdfGET/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.
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| X-Tenant | header | Workspace id. Optional when you belong to one workspace only. |
| kind | query | Only changes or only reads. |
| actor | query | Only events by this member. |
| action | query | Only events with this action. |
| resourceType | query | Only events on this kind of resource. |
| resourceId | query | Only events on this resource. |
| outcome | query | Only events that succeeded or failed. |
| since | query | Only events at or after this time, ISO 8601. |
| until | query | Only events before this time, ISO 8601. |
Antworten
| Name | Beschreibung |
|---|---|
| 200 | The report as a CSV download. |
| 401 | Missing or invalid bearer token. |
| 403 | You are not an admin of the requested team. |
| 429 | Too 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. |
| 502 | The report could not be generated. Try again. |
curl "https://vulnara-gw.rso.dev/reports/audit-log/csv" \
-H "Authorization: Bearer $VULNARA_TOKEN" \
-H "X-Tenant: $VULNARA_TENANT"