a4sx Global Admin API
The Global Admin API from a4sx — 3 operation(s) for global admin.
The Global Admin API from a4sx — 3 operation(s) for global admin.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/session-exchange-com:session-exchange-com-global-admin-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Session Exchange Com Global Admin API
version: 0.1.0
description: 'Operations tagged Global Admin across 2 of this provider''s published API definitions: openapi.json, session-exchange-com-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Global Admin
paths:
/global-admin/tokens:
post:
summary: Mint Global Admin Token
description: 'Mint a global-admin token. Only an existing global admin (or break-glass) may
mint one — tenant admins (incl. the default/home admin) cannot. The first-run
bootstrap mints the initial global admin; break-glass is the ultimate recovery.
Returns the plaintext once; only the hash is stored.
#1114 (owner default A): a listed person''s elevated browser SESSION may not mint one: a lasting
global-admin token would outlive the 12 h elevation and the session itself. Minting stays behind
a pasted global-admin token or break-glass (`require_global_admin_token`: 403, `details.reason` =
`pasted_token_required`, audited).'
operationId: mint_global_admin_token_global_admin_tokens_post
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/GlobalAdminTokenRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Global Admin
get:
summary: List Global Admin Tokens
description: 'Global-admin tokens (metadata + id only — never the plaintext/hash), oldest first. Active
ones by default; `?include_revoked=true` also lists revoked ones (with who/when/why).'
operationId: list_global_admin_tokens_global_admin_tokens_get
parameters:
- name: include_revoked
in: query
required: false
schema:
type: boolean
default: false
title: Include Revoked
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Global Admin
/global-admin/tokens/{token_id}/revoke:
post:
summary: Revoke Global Admin Token
description: 'Revoke one global-admin token by id (GLOBAL admin or break-glass only).
* The token itself is refused from the next request on every collector auth path
(`_deps._resolve_global_admin`, used by resolve_request_token, require_global_admin,
is_global_admin and the fleet scope, reads the in-memory registry on each request — nothing
caches the verdict). Open SSE streams close at their next auth re-check (≤
AGENT_MDX_SSE_AUTH_RECHECK_S, default 60 s). NOT revoked: OIDC JWTs it already minted via
POST /auth/token — consumers verify those offline against the JWKS, so they stay valid until
their own `exp` (fleetcache ≤ 600 s, world-sim ≤ 3600 s; oidc._AUD_TTL), nor tokens it
minted (`issued_by`). Survives a restart (JSONL replay keeps the last line per hash and
revocation is terminal; bootstrap does not re-mint while the registry holds any row).
* Idempotent: a revoked token is 200 with `already_revoked: true`, no second audit line.
* Self-revoke (the token this request is authenticated with) needs `?confirm=self`, else 409
`confirm_self_revoke` and nothing changes.
* Never strands the platform: revoking the last ACTIVE global-admin token is refused 409
`last_admin` unless the env break-glass (AGENT_MDX_BREAKGLASS_ADMIN) is configured — even
with confirm. Recovery then is break-glass → POST /global-admin/tokens.
* Audited to the global audit log as `global_admin.revoked` with the acting admin
(owner id + credential id or `breakglass`).'
operationId: revoke_global_admin_token_global_admin_tokens__token_id__revoke_post
parameters:
- name: token_id
in: path
required: true
schema:
type: string
title: Token Id
- name: confirm
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Confirm
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Global Admin
/global-admin/tenant-deletions:
get:
summary: Tenant Deletion Audit
description: '#1311 follow-up (owner item 3): the bounded, READ-ONLY affected-tenant audit — every
soft-deleted / purged workspace with its deletion reason (`unknown` when none was stamped), when,
purged or not, ever billed or not, the billing evidence (subscription ids + local status,
fulfilled checkouts, €0-coupon subscriptions) and whether it can be restored. Sourced from the
registry tombstones, the erasure ledger and the billing store (collector/deletion_audit.py), never
from the event log. `limit` 1–200 (default 50), `cursor` from `next_cursor`; `reason` and
`ever_billed=true` filter. Ids only: the tenant id and the owner''s user id.'
operationId: tenant_deletion_audit_global_admin_tenant_deletions_get
parameters:
- name: limit
in: query
required: false
schema:
type: integer
default: 50
title: Limit
- name: cursor
in: query
required: false
schema:
type: integer
default: 0
title: Cursor
- name: reason
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Reason
- name: ever_billed
in: query
required: false
schema:
type: boolean
default: false
title: Ever Billed
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Global Admin
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
GlobalAdminTokenRequest:
properties:
label:
type: string
maxLength: 200
title: Label
default: global-admin (minted)
owner_id:
type: string
maxLength: 200
title: Owner Id
default: ''
user_id:
type: string
maxLength: 200
title: User Id
default: ''
type: object
title: GlobalAdminTokenRequest
description: 'Mint a global-admin token (specs/multi-tenancy/v0.1 Phase 2). Minted only by an
existing global admin (or break-glass).'
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
x-refined-from:
- openapi.json
- session-exchange-com-openapi.json