Reference · Gateway API
Approvals — 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.
GET /v1/approvals/{id}#
- Endpoint:
GET https://gateway.gebsecure.com/v1/approvals/{id} - Authentication: bearer access token (JWT) or API key (
gsk_…) — see authentication - SDK: TypeScript
getApproval· Pythonget_approval· GoGetApproval· JavagetApproval· .NETGetApprovalAsync
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string | yes |
Responses
200— Default Response
Response body: Approval
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
status |
ApprovalStatus | yes | |
action |
string | ||
resource |
string | ||
summary |
string | ||
reason |
string | ||
snapshotHash |
string | ||
agentId |
string | nullable | |
projectId |
string | ||
environmentId |
string | ||
requesterType |
string | ||
requesterId |
string | ||
riskScore |
number | nullable | |
riskLevel |
string | nullable | |
expiresAt |
string | ||
resolvedAt |
string | nullable | |
resolvedBy |
string | nullable | |
resolutionComment |
string | nullable | |
executionId |
string | nullable | |
createdAt |
string | ||
signatureValid |
boolean | ||
steps |
array |
||
decisions |
array |
||
comments |
array |
||
history |
array |
||
canDecide |
boolean |
Errors are application/problem+json (error model).
bash
curl -X GET "$GEBSECURE_GATEWAY_URL/v1/approvals/{id}" \
-H "Authorization: Bearer $GEBSECURE_TOKEN"