Reference · Control plane API
Incidents — Control plane API
4 operations of the GebSecure Control Plane API (0.1.0), generated from docs/openapi/api.json.
Base URL: https://api.gebsecure.com · OpenAPI 3.1.0 · contract version 0.1.0 · generated from docs/openapi/api.json.
GET /v1/incidents#
- Endpoint:
GET https://api.gebsecure.com/v1/incidents - Authentication: bearer access token (JWT) or API key (
gsk_…) — see authentication
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
status |
query | string | ||
open |
query | "true" | "false" |
Responses
200— Default Response
Errors are application/problem+json (error model).
bash
curl -X GET "$GEBSECURE_API_URL/v1/incidents" \
-H "Authorization: Bearer $GEBSECURE_TOKEN"POST /v1/incidents#
- Endpoint:
POST https://api.gebsecure.com/v1/incidents - Authentication: bearer access token (JWT) or API key (
gsk_…) — see authentication
Request body (application/json, required)
| Field | Type | Required | Notes |
|---|---|---|---|
title |
string | yes | length 1–300 |
summary |
string | default ""; length 0–10000 |
|
severity |
"sev1" | "sev2" | "sev3" | "sev4" | yes | |
category |
string | default "security"; length 0–64 |
|
commanderId |
string | ||
personalDataBreach |
boolean | default false |
|
alertIds |
array |
default []; items 0–100 |
Responses
200— Default Response
Errors are application/problem+json (error model).
bash
curl -X POST "$GEBSECURE_API_URL/v1/incidents" \
-H "Authorization: Bearer $GEBSECURE_TOKEN" \
-H 'content-type: application/json' \
-d '{"title":"<string>","severity":"sev1"}'GET /v1/incidents/{id}#
- Endpoint:
GET https://api.gebsecure.com/v1/incidents/{id} - Authentication: bearer access token (JWT) or API key (
gsk_…) — see authentication
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string | yes |
Responses
200— Default Response
Errors are application/problem+json (error model).
bash
curl -X GET "$GEBSECURE_API_URL/v1/incidents/{id}" \
-H "Authorization: Bearer $GEBSECURE_TOKEN"PATCH /v1/incidents/{id}#
- Endpoint:
PATCH https://api.gebsecure.com/v1/incidents/{id} - Authentication: bearer access token (JWT) or API key (
gsk_…) — see authentication
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string | yes |
Request body (application/json, required)
| Field | Type | Required | Notes |
|---|---|---|---|
status |
"open" | "investigating" | "contained" | "resolved" | "closed" | ||
severity |
"sev1" | "sev2" | "sev3" | "sev4" | ||
commanderId |
string | null | ||
summary |
string | length 0–10000 | |
impact |
string | length 0–10000 | |
rootCause |
string | length 0–10000 | |
remediation |
string | length 0–10000 | |
lessonsLearned |
string | length 0–10000 | |
personalDataBreach |
boolean | ||
notifiedAt |
string (date-time) | ||
note |
string | length 0–10000 | |
link |
object | ||
link.type |
"alert" | "agent" | "approval" | "execution" | "trace" | "evaluation_run" | yes | |
link.id |
string | yes | length 0–128 |
Responses
200— Default Response
Errors are application/problem+json (error model).
bash
curl -X PATCH "$GEBSECURE_API_URL/v1/incidents/{id}" \
-H "Authorization: Bearer $GEBSECURE_TOKEN" \
-H 'content-type: application/json' \
-d '{}'