Reference · Gateway API
Inspection & DLP — Gateway API
2 operations of the GebSecure Gateway API (0.1.0), generated from docs/openapi/gateway.json.
Base URL: https://gateway.gebsecure.com · OpenAPI 3.1.0 · contract version 0.1.0 · generated from docs/openapi/gateway.json.
POST /v1/inspect#
Inspect untrusted content before an agent reads it (prompt injection + inbound DLP)
- Endpoint:
POST https://gateway.gebsecure.com/v1/inspect - Authentication: bearer access token (JWT) or API key (
gsk_…) — see authentication - SDK: TypeScript
inspect· Pythoninspect· GoInspect· Javainspect· .NETInspectAsync
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
Response body: InspectResult
| Field | Type | Required | Notes |
|---|---|---|---|
action |
string | yes | Overall action: ALLOW, FLAG, SANITIZE, MASK, REDACT, REQUIRE_APPROVAL or BLOCK. |
content |
any | Content safe to hand to the model (sanitized/masked); null when blocked. | |
injection |
InjectionReport | yes | |
dlp |
InspectDlpReport | nullable |
Errors are application/problem+json (error model).
bash
curl -X POST "$GEBSECURE_GATEWAY_URL/v1/inspect" \
-H "Authorization: Bearer $GEBSECURE_TOKEN" \
-H 'content-type: application/json' \
-d '{"content":"<string>","source":"prompt"}'POST /v1/dlp/scan#
Scan a payload for sensitive data and apply DLP rules
- Endpoint:
POST https://gateway.gebsecure.com/v1/dlp/scan - Authentication: bearer access token (JWT) or API key (
gsk_…) — see authentication - SDK: TypeScript
dlpScan· Pythondlp_scan· GoDLPScan· JavadlpScan· .NETDlpScanAsync
Request body (application/json, required)
| Field | Type | Required | Notes |
|---|---|---|---|
content |
string | object | array |
yes | |
direction |
"inbound" | "outbound" | yes | |
action |
string | length 0–256 | |
connector |
string | length 0–64 | |
environmentId |
string | ||
dryRun |
boolean |
Responses
200— Default Response
Response body: DlpScanResult
| Field | Type | Required | Notes |
|---|---|---|---|
action |
DlpAction | yes | |
content |
any | Transformed payload; null when blocked. | |
findings |
array<DlpFinding> | yes | |
rules |
array<DlpMatchedRule> | ||
eventId |
string | nullable | |
dryRun |
boolean |
Errors are application/problem+json (error model).
bash
curl -X POST "$GEBSECURE_GATEWAY_URL/v1/dlp/scan" \
-H "Authorization: Bearer $GEBSECURE_TOKEN" \
-H 'content-type: application/json' \
-d '{"content":"<string>","direction":"inbound"}'