Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: AI GNT Org Admin API
version: 0.1.0
servers:
- url: https://api.gntai.dev
description: Production
tags:
- name: org-admin
paths:
/v1/org/offboarding/request:
post:
tags:
- org-admin
summary: Request Offboarding
description: 'Step 1 of 2. Produces the full export (rules with audit history,
gaps, staleness, calibration/contradiction findings, ROI counters,
onboarding events, key/connection metadata — never secrets) and mints
a confirmation token scoped to this org. Calling this again before
confirming just re-exports and overwrites the previous token (the old
one stops working) — there is deliberately no limit on how many times
an admin can re-request before actually confirming.'
operationId: request_offboarding_v1_org_offboarding_request_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
security:
- HTTPBearer: []
/v1/org/offboarding/confirm:
post:
tags:
- org-admin
summary: Confirm Offboarding
description: 'Step 2 of 2 — irreversible. Requires the exact token /request just
issued for THIS org (never another org''s — the key is org-scoped, so a
caller can never hold a valid token for anyone but their own org),
unexpired, unused. Deletes apps/store''s rules mirror first (the more
likely-to-fail-partway network call), then every org-scoped Postgres
row — see gnt.org_offboarding.delete_org_postgres_data for the full,
authoritative table list.'
operationId: confirm_offboarding_v1_org_offboarding_confirm_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ConfirmOffboardingRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ConfirmOffboardingRequest:
properties:
confirmation_token:
type: string
minLength: 1
title: Confirmation Token
type: object
required:
- confirmation_token
title: ConfirmOffboardingRequest
securitySchemes:
HTTPBearer:
type: http
scheme: bearer