GebSecure Docs v0.1.0

Reference · Control plane API

Credentials — Control plane API

2 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.

POST /v1/credentials/{id}/rotate#

Rotate a credential with a grace period

Parameters

Name In Type Required Notes
id path string yes

Request body (application/json, required)

Field Type Required Notes
gracePeriodMinutes integer default 60; range 0–10080
publicJwk object

Responses

  • 200 — Default Response

Response body: RotatedCredential

Field Type Required Notes
credential AgentCredential yes
clientId string yes
clientSecret string nullable
previous PreviousCredential yes

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

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

POST /v1/credentials/{id}/revoke#

Revoke a credential immediately

Parameters

Name In Type Required Notes
id path string yes

Request body (application/json, required)

Field Type Required Notes
reason string default "revoked"; length 0–500

Responses

  • 200 — Default Response

Response body: AgentCredential

Field Type Required Notes
id string yes
type string yes
name string
status string
scopes array
expiresAt string nullable
graceUntil string nullable
lastUsedAt string nullable
createdAt string
revokedAt string nullable
principalType string
principalId string
publicJwk object nullable
rotatedFrom string nullable
revokedReason string nullable
createdBy string nullable

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

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