Reference · Control plane API
Prompt injection — Control plane API
5 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/injection/policy#
Effective prompt-injection policy
- Endpoint:
GET https://api.gebsecure.com/v1/injection/policy - Authentication: bearer access token (JWT) or API key (
gsk_…) — see authentication
Responses
200— Default Response
Errors are application/problem+json (error model).
curl -X GET "$GEBSECURE_API_URL/v1/injection/policy" \
-H "Authorization: Bearer $GEBSECURE_TOKEN"PATCH /v1/injection/policy#
Configure enforcement and taint thresholds
- Endpoint:
PATCH https://api.gebsecure.com/v1/injection/policy - Authentication: bearer access token (JWT) or API key (
gsk_…) — see authentication
Request body (application/json, required)
| Field | Type | Required | Notes |
|---|---|---|---|
flagAt |
integer | range 0–100 | |
sanitizeAt |
integer | range 0–100 | |
blockAt |
integer | range 0–100 | |
taintApprovalAt |
integer | range 0–100 | |
taintActionCategories |
array<"write" | "delete" | "admin" | "read" | "other"> | ||
taintTtlSeconds |
integer | range 60–86400 |
Responses
200— Default Response
Errors are application/problem+json (error model).
curl -X PATCH "$GEBSECURE_API_URL/v1/injection/policy" \
-H "Authorization: Bearer $GEBSECURE_TOKEN" \
-H 'content-type: application/json' \
-d '{}'GET /v1/injection/detections#
- Endpoint:
GET https://api.gebsecure.com/v1/injection/detections - Authentication: bearer access token (JWT) or API key (
gsk_…) — see authentication
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
limit |
query | number | ||
principalId |
query | string | ||
minScore |
query | number |
Responses
200— Default Response
Errors are application/problem+json (error model).
curl -X GET "$GEBSECURE_API_URL/v1/injection/detections" \
-H "Authorization: Bearer $GEBSECURE_TOKEN"DELETE /v1/injection/taint/{id}#
Clear an agent taint after review
- Endpoint:
DELETE https://api.gebsecure.com/v1/injection/taint/{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).
curl -X DELETE "$GEBSECURE_API_URL/v1/injection/taint/{id}" \
-H "Authorization: Bearer $GEBSECURE_TOKEN"POST /v1/inspect#
Inspect content (console testing)
- Endpoint:
POST https://api.gebsecure.com/v1/inspect - Authentication: bearer access token (JWT) or API key (
gsk_…) — see authentication
Request body (application/json, required)
| Field | Type | Required | Notes |
|---|---|---|---|
content |
string | object | array |
yes | |
source |
"prompt" | "web" | "email" | "document" | "rag" | "mcp_response" | "tool_output" | yes | |
origin |
string | length 0–2048 | |
dlp |
boolean | default true |
|
dryRun |
boolean | ||
environmentId |
string |
Responses
200— Default Response
Errors are application/problem+json (error model).
curl -X POST "$GEBSECURE_API_URL/v1/inspect" \
-H "Authorization: Bearer $GEBSECURE_TOKEN" \
-H 'content-type: application/json' \
-d '{"content":"<string>","source":"prompt"}'