SwarmSync Routing API

The Routing API from SwarmSync — 14 operation(s) for routing.

GitHub OpenAPI

Operations 14

POST /v1/chat/completions Chat completions #
POST /v1/route Route oracle #
GET /v1/models List models #
GET /v1/routing/health Get routing health #
GET /v1/routing/model-status Get model status #
POST /v1/routing/admin/sync-models Sync models #
POST /v1/routing/admin/probe-models Probe models #
GET /v1/routing/admin/model-health Model health #
GET /v1/routing/outcomes Get routing outcomes #
GET /v1/usage Get usage #
GET /v1/keys List keys for authenticated user #
GET /v1/routing/models List models alias #
POST /v1/routing/select Route oracle alias #
GET /v1/routing/keys List keys legacy alias #

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/swarmsync-ai:swarmsync-ai-routing-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

swarmsync-ai-routing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swarmsync Ai Routing API
  version: '1.0'
  contact:
    name: SwarmSync Support
    url: https://swarmsync.ai
    email: support@swarmsync.ai
  description: 'Operations tagged Routing across 2 of this provider''s published API definitions: swarmsync-ai-openapi-api.json, swarmsync-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:4000
  description: Local Development
- url: https://api.swarmsync.ai
  description: Production
tags:
- name: Routing
paths:
  /v1/chat/completions:
    post:
      operationId: chatCompletions
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Routing
      summary: Chat completions
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/route:
    post:
      operationId: routeOracle
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RouteOracleDto'
      responses:
        '201':
          description: ''
      tags:
      - Routing
      summary: Route oracle
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/models:
    get:
      operationId: listModels
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Routing
      summary: List models
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/routing/health:
    get:
      operationId: getRoutingHealth
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Routing
      summary: Get routing health
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/routing/model-status:
    get:
      operationId: getModelStatus
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Routing
      summary: Get model status
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/routing/admin/sync-models:
    post:
      operationId: syncModels
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Routing
      summary: Sync models
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/routing/admin/probe-models:
    post:
      operationId: probeModels
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Routing
      summary: Probe models
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/routing/admin/model-health:
    get:
      operationId: modelHealth
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Routing
      summary: Model health
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/routing/outcomes:
    get:
      operationId: getRoutingOutcomes
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Routing
      summary: Get routing outcomes
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/usage:
    get:
      operationId: getUsage
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Routing
      summary: Get usage
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/keys:
    get:
      operationId: listKeysForAuthenticatedUser
      parameters:
      - name: status
        required: false
        in: query
        schema:
          type: string
      responses:
        '200':
          description: ''
      tags:
      - Routing
      summary: List keys for authenticated user
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/routing/models:
    get:
      operationId: listModelsAlias
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Routing
      summary: List models alias
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/routing/select:
    post:
      operationId: routeOracleAlias
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RouteOracleDto'
      responses:
        '201':
          description: ''
      tags:
      - Routing
      summary: Route oracle alias
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /v1/routing/keys:
    get:
      operationId: listKeysLegacyAlias
      parameters:
      - name: status
        required: false
        in: query
        schema:
          type: string
      responses:
        '200':
          description: ''
      tags:
      - Routing
      summary: List keys legacy alias
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
components:
  schemas:
    RouteOracleDto:
      type: object
      properties:
        complexity_score:
          type: number
          maximum: 1
          minimum: 0
        message_preview:
          type: string
        history_length:
          type: number
          minimum: 0
        preferred_tier:
          type: string
        blocked_models:
          type: array
          items:
            type: string
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Enter JWT token obtained from /auth/login or /auth/register
      in: header
    agent-api-key:
      type: apiKey
      in: header
      name: x-agent-api-key
      description: Agent API key (agentApiKey from POST /auth/register-agent). Acts as that one agent.
x-refined-from:
- swarmsync-ai-openapi-api.json
- swarmsync-ai-openapi.json