a4sx Providers API

The Providers API from a4sx — 13 operation(s) for providers.

GitHub OpenAPI

Operations 18

GET /providers/credentials List Credentials #
GET /providers/credentials/{name} Get Credential #
PATCH /providers/credentials/{name} Patch Credential #
GET /providers/routes/{tenant}/lint Lint Routes #
GET /providers/matrix Get Matrix #
GET /providers/usage Get Usage #
GET /providers/catalog List Catalog #
GET /providers/catalog/{entry_id} Get Catalog Entry #
GET /providers/connections List Connections #
POST /providers/connections Create Connection #
GET /providers/connections/{conn_id} Get Connection #
PATCH /providers/connections/{conn_id} Patch Connection #
DELETE /providers/connections/{conn_id} Delete Connection #
POST /providers/connections/{conn_id}/key Put Connection Key #
GET /providers/settings Get Provider Settings #
PUT /providers/settings Put Provider Settings #
POST /providers/connections/{conn_id}/test Test Connection #
POST /providers/probe-key Redeem Probe Key #

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-providers-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-providers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Session Exchange Com Providers API
  version: 0.1.0
  description: 'Operations tagged Providers 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: Providers
paths:
  /providers/credentials:
    get:
      summary: List Credentials
      operationId: list_credentials_providers_credentials_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Providers
  /providers/credentials/{name}:
    get:
      summary: Get Credential
      operationId: get_credential_providers_credentials__name__get
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
          title: Name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Providers
    patch:
      summary: Patch Credential
      description: 'Set/clear non-secret metadata. 400 `value_not_allowed` when the body carries a value-shaped

        key, `looks_like_secret` when a string looks like a credential. Tenant scope: only a name the

        tenant owns (in its vault or referenced by its own table).'
      operationId: patch_credential_providers_credentials__name__patch
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
          title: Name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Providers
  /providers/routes/{tenant}/lint:
    get:
      summary: Lint Routes
      description: 'Lint the STORED table: dead-credential and orphan-session models, matrix-broken models,

        unreferenced models, agents whose every target is bad, and (fleet) a bad `sessions` list.

        Same auth as the table read-back; never a value (the table''s inline keys never leave).'
      operationId: lint_routes_providers_routes__tenant__lint_get
      parameters:
      - name: tenant
        in: path
        required: true
        schema:
          type: string
          title: Tenant
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Providers
  /providers/matrix:
    get:
      summary: Get Matrix
      description: 'The latest model-matrix verdict per (upstream route, upstream model): verdict, which of the

        four cases passed, when. Router names, notes and error excerpts are never served.'
      operationId: get_matrix_providers_matrix_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Providers
  /providers/usage:
    get:
      summary: Get Usage
      description: 'The month view''s usage read: one month of the router traffic ledger in every grouping

        (credential, agent, model, upstream and — fleet scope — tenant), the month''s seal, and, for

        the current month, the last 24 h by the hour. It is the one usage read the UI makes; the older

        `GET /library/router-traffic/{tenant}` and `GET /entities/usage_traffic` stay as aliases for

        one release (same ledger, same numbers).


        Scope and auth are the credential registry''s (`_scope`): fleet scope sums every tenant''s slice

        and adds `by_tenant`; tenant scope reads ONLY its own slice (the SQL `tenant=?` bind) and never

        sees a fleet credential name — foreign sessions read `platform` (owner decision 8). The reply

        keeps the router-traffic top-level shape (`totals`, `by_agent/upstream/model`, `recent`,

        `window`, `measures`) so the routes join renders unchanged. Always 200 on an authorised call;

        an unreadable ledger is `available: false` with a `reason`, never a page of zeros.'
      operationId: get_usage_providers_usage_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Providers
  /providers/catalog:
    get:
      summary: List Catalog
      operationId: list_catalog_providers_catalog_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Providers
  /providers/catalog/{entry_id}:
    get:
      summary: Get Catalog Entry
      operationId: get_catalog_entry_providers_catalog__entry_id__get
      parameters:
      - name: entry_id
        in: path
        required: true
        schema:
          type: string
          title: Entry Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Providers
  /providers/connections:
    get:
      summary: List Connections
      operationId: list_connections_providers_connections_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Providers
    post:
      summary: Create Connection
      operationId: create_connection_providers_connections_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Providers
  /providers/connections/{conn_id}:
    get:
      summary: Get Connection
      description: 'One connection, plus `table_usage`: where the published routing table uses it (the edit

        form''s "used by" warning).'
      operationId: get_connection_providers_connections__conn_id__get
      parameters:
      - name: conn_id
        in: path
        required: true
        schema:
          type: string
          title: Conn Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Providers
    patch:
      summary: Patch Connection
      operationId: patch_connection_providers_connections__conn_id__patch
      parameters:
      - name: conn_id
        in: path
        required: true
        schema:
          type: string
          title: Conn Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Providers
    delete:
      summary: Delete Connection
      description: 'Remove the connection record. Its key secret is left in the vault (delete it by name under

        Vault if it is no longer needed). 409 while the stored routing table still uses it, unless

        `force=1` — the router keeps serving the last published expansion until a re-publish.'
      operationId: delete_connection_providers_connections__conn_id__delete
      parameters:
      - name: conn_id
        in: path
        required: true
        schema:
          type: string
          title: Conn Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Providers
  /providers/connections/{conn_id}/key:
    post:
      summary: Put Connection Key
      description: 'Write-only: store the connection''s key in THIS tenant''s vault under `key_secret`. The reply

        carries the secret''s name and new version, never the value.'
      operationId: put_connection_key_providers_connections__conn_id__key_post
      parameters:
      - name: conn_id
        in: path
        required: true
        schema:
          type: string
          title: Conn Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Providers
  /providers/settings:
    get:
      summary: Get Provider Settings
      operationId: get_provider_settings_providers_settings_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Providers
    put:
      summary: Put Provider Settings
      description: 'Turn the workspace''s EU-only policy on/off. ON: new connections must be EU-resident, a

        routing-table publish refuses a non-EU connection, and lint flags existing ones. It does not

        delete anything.'
      operationId: put_provider_settings_providers_settings_put
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Providers
  /providers/connections/{conn_id}/test:
    post:
      summary: Test Connection
      operationId: test_connection_providers_connections__conn_id__test_post
      parameters:
      - name: conn_id
        in: path
        required: true
        schema:
          type: string
          title: Conn Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Providers
  /providers/probe-key:
    post:
      summary: Redeem Probe Key
      description: 'The router''s one read of a tenant key for ONE probe. Only a router producer

        (`AGENT_MDX_ROUTER_USAGE_PRODUCERS`) on the fleet-base host; the ticket is single-use and bound

        to (tenant, key_secret). Audited as `secret.accessed` in the tenant''s vault stream.'
      operationId: redeem_probe_key_providers_probe_key_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Providers
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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