Reference · Gateway API
Database gateway — Gateway API
1 operation 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/db/query#
Run a query through the database security gateway (authorize, inspect, rewrite, execute, sanitize, audit)
- Endpoint:
POST https://gateway.gebsecure.com/v1/db/query - Authentication: bearer access token (JWT) or API key (
gsk_…) — see authentication
Request body (application/json, required)
| Field | Type | Required | Notes |
|---|---|---|---|
connectionId |
string | yes | length 1–128 |
query |
string | object | yes | |
params |
array |
||
dryRun |
boolean | default false |
|
approvalId |
string | length 0–64 | |
environmentId |
string | length 0–64 | |
timeoutMs |
integer | range 100–120000 |
Responses
200— Default Response
Errors are application/problem+json (error model).
bash
curl -X POST "$GEBSECURE_GATEWAY_URL/v1/db/query" \
-H "Authorization: Bearer $GEBSECURE_TOKEN" \
-H 'content-type: application/json' \
-d '{"connectionId":"<string>","query":"<string>"}'