MolTrust Swarm API

The Swarm API from MolTrust — 4 operation(s) for swarm.

Operations 4

GET /swarm/graph/{did} Get Swarm Graph #
GET /swarm/stats Get Swarm Stats #
POST /swarm/seed Register Seed #
GET /swarm/propagate/{did} Propagate Trust #

Documentation

Specifications

Other Resources

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/moltrust-ch:moltrust-ch-swarm-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

moltrust-ch-swarm-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MolTrust Swarm API
  version: '2.5'
tags:
- name: Swarm
paths:
  /swarm/graph/{did}:
    get:
      summary: Get Swarm Graph
      description: 'Endorsement graph: who endorses this DID, who endorses them (2 hops).


        Two-hop graph queries are the most expensive read on the endorsement

        tables; validated and rate limited for the same reason as trust-score.'
      operationId: get_swarm_graph_swarm_graph__did__get
      parameters:
      - name: did
        in: path
        required: true
        schema:
          type: string
          title: Did
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Swarm
  /swarm/stats:
    get:
      summary: Get Swarm Stats
      description: Global swarm statistics.
      operationId: get_swarm_stats_swarm_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Swarm
  /swarm/seed:
    post:
      summary: Register Seed
      description: Register a trusted seed agent. Requires ADMIN_KEY header.
      operationId: register_seed_swarm_seed_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SeedRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Swarm
  /swarm/propagate/{did}:
    get:
      summary: Propagate Trust
      description: Force recompute trust score with Phase 2 algorithm.
      operationId: propagate_trust_swarm_propagate__did__get
      parameters:
      - name: did
        in: path
        required: true
        schema:
          type: string
          title: Did
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Swarm
components:
  schemas:
    SeedRequest:
      properties:
        did:
          type: string
          title: Did
        label:
          type: string
          title: Label
        base_score:
          type: number
          title: Base Score
          default: 80.0
      type: object
      required:
      - did
      - label
      title: SeedRequest
    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