a4sx Authz API

The Authz API from a4sx — 7 operation(s) for authz.

GitHub OpenAPI

Operations 7

GET /authz/migration Migration Plan #
POST /authz/migration/apply Migration Apply #
GET /authz/token-migration Token Migration Worklist #
POST /authz/token-migration/apply Token Migration Apply #
POST /authz/token-migration/backfill-expiry Token Migration Backfill Expiry #
GET /authz/enforcement List Enforcement #
POST /authz/enforcement/{topic} Set Enforcement #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/session-exchange-com:session-exchange-com-authz-api"
All apis
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.

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

session-exchange-com-authz-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Session Exchange Com Authz API
  version: 0.1.0
  description: 'Operations tagged Authz 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: Authz
paths:
  /authz/migration:
    get:
      summary: Migration Plan
      description: Dry-run seed+audit plan. No writes — review before POSTing apply.
      operationId: migration_plan_authz_migration_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Migration Plan Authz Migration Get
      tags:
      - Authz
  /authz/migration/apply:
    post:
      summary: Migration Apply
      description: 'Apply the seed+audit plan: write capability_roles + emits onto manifests.'
      operationId: migration_apply_authz_migration_apply_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Migration Apply Authz Migration Apply Post
      tags:
      - Authz
  /authz/token-migration:
    get:
      summary: Token Migration Worklist
      description: 'Dry-run: every active legacy emit/read token + its ge_tok_ successor

        status. No writes.'
      operationId: token_migration_worklist_authz_token_migration_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Token Migration Worklist Authz Token Migration Get
      tags:
      - Authz
  /authz/token-migration/apply:
    post:
      summary: Token Migration Apply
      description: 'Mint a ge_tok_ replacement for ONE legacy token (plaintext returned

        once). Stamps superseded_by on the legacy record; does NOT revoke it.'
      operationId: token_migration_apply_authz_token_migration_apply_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TokenMigrationApplyRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Token Migration Apply Authz Token Migration Apply Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Authz
  /authz/token-migration/backfill-expiry:
    post:
      summary: Token Migration Backfill Expiry
      description: 'S-45 one-off: copy `expires_at` from the `migrated_from` source onto migrated ge_tok_

        tokens that have none (pre-S-45 migration dropped it). DRY-RUN unless `{"apply": true}`.'
      operationId: token_migration_backfill_expiry_authz_token_migration_backfill_expiry_post
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/TokenExpiryBackfillRequest'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Token Migration Backfill Expiry Authz Token Migration Backfill Expiry Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Authz
  /authz/enforcement:
    get:
      summary: List Enforcement
      description: 'Every topic with an explicit enforcement mode. Topics not listed default

        to ``shadow`` (record-only; PR-4 behaviour).'
      operationId: list_enforcement_authz_enforcement_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response List Enforcement Authz Enforcement Get
      tags:
      - Authz
  /authz/enforcement/{topic}:
    post:
      summary: Set Enforcement
      description: 'Flip a topic''s emit-enforcement mode (admin-only). ``enforced`` makes a

        would-deny emit on that topic actually 403 (forbidden_emit); ``shadow``

        rolls it back to record-only. Idempotent last-write-wins.


        Break-glass #5 pre-flight: refuse to flip a topic to ``enforced`` if there

        is NO working admin path (would risk locking authz changes out). Flipping

        BACK to ``shadow`` is always allowed — it can only ever relax enforcement,

        so it must never be blocked (it''s the rollback lever).'
      operationId: set_enforcement_authz_enforcement__topic__post
      parameters:
      - name: topic
        in: path
        required: true
        schema:
          type: string
          title: Topic
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthzEnforcementRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Set Enforcement Authz Enforcement  Topic  Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Authz
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
    TokenMigrationApplyRequest:
      properties:
        legacy_kind:
          type: string
          title: Legacy Kind
          description: '''emit'' or ''read'''
        legacy_id:
          type: string
          title: Legacy Id
          description: emitter_token_id or read_token_id to replace
      type: object
      required:
      - legacy_kind
      - legacy_id
      title: TokenMigrationApplyRequest
    TokenExpiryBackfillRequest:
      properties:
        apply:
          type: boolean
          title: Apply
          description: false (default) = dry-run, no writes
          default: false
      type: object
      title: TokenExpiryBackfillRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AuthzEnforcementRequest:
      properties:
        mode:
          type: string
          enum:
          - shadow
          - enforced
          title: Mode
      type: object
      required:
      - mode
      title: AuthzEnforcementRequest
x-refined-from:
- openapi.json
- session-exchange-com-openapi.json