GebSecure Docs v0.1.0

Reference · Gateway API

Execution — Gateway API

5 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/execute#

Authorize and execute a connector action through the secure runtime

Request body (application/json, required)

Field Type Required Notes
connection string yes length 1–128
action string yes length 1–160
input object default {}
idempotencyKey string length 8–200; pattern ^[A-Za-z0-9._:-]+$
approvalId string
mode "sync" | "async" default "sync"
timeoutMs integer range 100–120000
dryRun boolean default false
environmentId string
onBehalfOf object
onBehalfOf.agentId string yes

Responses

  • 200 — Default Response

Response body: ExecuteResult

Field Type Required Notes
executionId string nullable
status ExecutionStatus yes
decision Decision
reason string
output any
outputTruncated boolean
error ExecutionError nullable
approval ApprovalRef nullable
risk Risk
durationMs number
replayed boolean

Errors are application/problem+json (error model).

bash
curl -X POST "$GEBSECURE_GATEWAY_URL/v1/execute" \
  -H "Authorization: Bearer $GEBSECURE_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"connection":"<string>","action":"<string>"}'

GET /v1/executions#

Parameters

Name In Type Required Notes
status query string
principalId query string
connectionId query string
limit query integer default 50; range 1–200
cursor query string

Responses

  • 200 — Default Response

Response body: ExecutionPage

Field Type Required Notes
data array<Execution> yes
nextCursor string nullable

Errors are application/problem+json (error model).

bash
curl -X GET "$GEBSECURE_GATEWAY_URL/v1/executions" \
  -H "Authorization: Bearer $GEBSECURE_TOKEN"

GET /v1/executions/{id}#

Execution status, result and step logs

Parameters

Name In Type Required Notes
id path string yes

Responses

  • 200 — Default Response

Response body: Execution

Field Type Required Notes
id string yes
status ExecutionStatus yes
projectId string
environmentId string
principalType string
principalId string
connectionId string nullable
connectorKey string
action string
resource string
mode ExecuteMode
decision Decision nullable
decisionId string nullable
approvalId string nullable
riskScore number nullable
idempotencyKey string nullable
output any
outputTruncated boolean
error ExecutionError nullable
attempts integer
traceId string nullable
createdAt string
startedAt string nullable
finishedAt string nullable
durationMs integer nullable
logs array<ExecutionLog>

Errors are application/problem+json (error model).

bash
curl -X GET "$GEBSECURE_GATEWAY_URL/v1/executions/{id}" \
  -H "Authorization: Bearer $GEBSECURE_TOKEN"

POST /v1/executions/{id}/cancel#

Parameters

Name In Type Required Notes
id path string yes

Responses

  • 200 — Default Response

Response body: CancelExecutionResult

Field Type Required Notes
executionId string yes
status ExecutionStatus yes

Errors are application/problem+json (error model).

bash
curl -X POST "$GEBSECURE_GATEWAY_URL/v1/executions/{id}/cancel" \
  -H "Authorization: Bearer $GEBSECURE_TOKEN"

POST /v1/executions/{id}/retry#

Retry a failed, cancelled or denied execution (safe against duplicates)

  • Endpoint: POST https://gateway.gebsecure.com/v1/executions/{id}/retry
  • 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
confirm boolean default false
mode "sync" | "async" default "sync"

Responses

  • 200 — Default Response

Errors are application/problem+json (error model).

bash
curl -X POST "$GEBSECURE_GATEWAY_URL/v1/executions/{id}/retry" \
  -H "Authorization: Bearer $GEBSECURE_TOKEN" \
  -H 'content-type: application/json' \
  -d '{}'