VAAS-X Ac API

The Ac API from VAAS-X, for ac.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

POST /ac/ingest Ac Ingest #
POST /ac/query Ac Query #

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/vaasx-com:vaasx-com-ac-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

vaasx-com-ac-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: VAAS-X Public Resolver Ac API
  description: Public API gateway for VAAS-X. Validates API keys, enforces limits, and proxies to private shards.
  version: 1.0.0
tags:
- name: Ac
paths:
  /ac/ingest:
    post:
      summary: Ac Ingest
      description: 'Store a composite embedding (from vaasx.ac.composite.CompositeStateBuilder.fuse())

        for later cross-modal retrieval via /ac/query. Gated on the "ac"

        capability (Professional tier and above), same as /ac/query. Backed by

        bootstrap/api/ac_store.py -- as of AC_VACA_ACTION_LIST.md item 4, a

        Cold(State)/Hot(Action)/Warm(Outcome) tiered store with real HCIIndex

        retrieval per tier and CVP reranking on the outcome tier, not the flat

        single index this endpoint originally shipped with -- see that

        module''s docstring for exactly what''s still deliberately out of scope

        (dynamic K / incremental rebuild, cross-device search).


        Accepts either a single `embedding` (original v1 shape, still returns

        {"status", "id"}) or a batch `items` list (returns {"status", "ingested",

        "episode_ids"}, index-aligned with `items`, mirroring POST /ingest''s

        response shape). ac_store.ingest() is cheap per call, but this endpoint

        is served by a single uvicorn worker (no --workers flag in the systemd

        unit) and the item loop below is fully synchronous -- no `await` inside

        it -- so it blocks the one event loop, and therefore every other

        customer''s concurrent request, for however long the loop runs.

        ac_store.ingest()''s np.vstack([existing, new]) also copies the tier''s

        whole array on every single call, so cost grows with how many vectors

        are already in that device, not just this batch''s size. AC_INGEST_BATCH_MAX

        below bounds the blocking window per request; large backfills should

        still be sent as multiple bounded batches (e.g. a few hundred at a

        time), not one giant call, even though this endpoint now accepts

        batches at all.'
      operationId: ac_ingest_ac_ingest_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcIngestRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Ac
  /ac/query:
    post:
      summary: Ac Query
      description: 'Cross-modal retrieval against embeddings previously stored via

        /ac/ingest for this customer+device. This is the endpoint

        vaasx/ac/retrieval.py''s CrossModalRetriever.retrieve() calls -- see

        that file''s docstring for why it didn''t exist before this. `tier`

        selects state/action/outcome (AC_VACA_ACTION_LIST.md item 4); `cvp`

        (default on) applies Causal Verification Pass reranking when

        tier="outcome" and the outcome episodes carry state_id/action_id

        links from ingest.'
      operationId: ac_query_ac_query_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcQueryRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Ac
components:
  schemas:
    AcQueryRequest:
      properties:
        device_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Device Id
        embedding:
          items:
            type: number
          type: array
          title: Embedding
        k:
          type: integer
          title: K
          default: 10
        tier:
          type: string
          title: Tier
          default: state
        cvp:
          type: boolean
          title: Cvp
          default: true
      type: object
      required:
      - embedding
      title: AcQueryRequest
    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
    AcIngestRequest:
      properties:
        device_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Device Id
        embedding:
          anyOf:
          - items:
              type: number
            type: array
          - type: 'null'
          title: Embedding
        metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Metadata
        episode_type:
          type: string
          title: Episode Type
          default: state
        state_id:
          anyOf:
          - type: string
          - type: 'null'
          title: State Id
        action_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Action Id
        items:
          anyOf:
          - items:
              additionalProperties: true
              type: object
            type: array
          - type: 'null'
          title: Items
      type: object
      title: AcIngestRequest
  securitySchemes:
    HTTPBasic:
      type: http
      scheme: basic