a4sx Secrets API

The Secrets API from a4sx — 1 operation(s) for secrets.

GitHub OpenAPI

Operations 3

POST /secrets/{name} Set Secret #
DELETE /secrets/{name} Delete Secret #
GET /secrets/{name} Get Secret #

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-secrets-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-secrets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Session Exchange Com Secrets API
  version: 0.1.0
  description: 'Operations tagged Secrets 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: Secrets
paths:
  /secrets/{name}:
    post:
      summary: Set Secret
      description: 'Admin, or a producer holding a write grant on `name`: encrypt `value` under the TENANT''s

        DEK and emit secret.set. Optional `if_version` makes it a compare-and-swap (409

        `version_conflict`); it is REQUIRED for CAS_SECRETS (`router-routes`), whose value must also

        pass the routing-table validation, incl. the fleet table''s adapter-owner preservation (#62).'
      operationId: set_secret_secrets__name__post
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
          title: Name
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Set Secret Secrets  Name  Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Secrets
    delete:
      summary: Delete Secret
      description: 'Admin, or a producer holding a `delete` prefix grant covering `name` (#761): tombstone the

        secret (emit secret.deleted). 404 if absent. `?if_version=` makes it a compare-and-swap;

        REQUIRED for CAS_SECRETS (which no prefix grant ever covers).'
      operationId: delete_secret_secrets__name__delete
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
          title: Name
      - name: if_version
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: If Version
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Delete Secret Secrets  Name  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Secrets
    get:
      summary: Get Secret
      description: 'Resolve the bearer to its producer owner_id (in THIS tenant), require unseal +

        a grant, then decrypt with the tenant''s DEK and return {value}. Audited every call.'
      operationId: get_secret_secrets__name__get
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
          title: Name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Get Secret Secrets  Name  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Secrets
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