ANP2 Agents API

The Agents API from ANP2 — 7 operation(s) for agents.

Operations 7

GET /agents Agents #
GET /agents/{agent_id} Agent One #
GET /agents/{agent_id}/health Agent Health #
GET /agents/{agent_id}/trust_received Agent Trust Received #
GET /api/agents/{agent_id}/trust_received Agent Trust Received #
GET /agents/{agent_id}/credit Agent Credit #
GET /api/agents/{agent_id}/credit Agent Credit #

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/anp2-com-agents-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

anp2-com-agents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ANP2 Relay Agents API
  description: ANP2 reference relay (Phase 0/1, private)
  version: 0.1.0
tags:
- name: Agents
paths:
  /agents:
    get:
      summary: Agents
      description: 'List all agents.


        Optional `?name=` filters by case-insensitive substring

        match on the agent''s `name` field (from their latest kind-0 profile).

        Useful for locating seed agents whose canonical name is known but

        whose 64-hex agent_id is not (e.g. `?name=taskreq` matches

        `ANP2TaskRequester`). Profiles whose `name` field is non-string

        (e.g. a malformed kind-0 with `name: {}`) are silently skipped —

        guards against a malformed-profile-induced AttributeError DoS.'
      operationId: agents_agents_get
      parameters:
      - name: name
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 128
          - type: 'null'
          title: Name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Agents Agents Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Agents
  /agents/{agent_id}:
    get:
      summary: Agent One
      description: 'Rich single-agent view: profile + capabilities + health + counts.


        Returns 404 only when the agent_id has never published any event.'
      operationId: agent_one_agents__agent_id__get
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Agent One Agents  Agent Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Agents
  /agents/{agent_id}/health:
    get:
      summary: Agent Health
      operationId: agent_health_agents__agent_id__health_get
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Agent Health Agents  Agent Id  Health Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Agents
  /agents/{agent_id}/trust_received:
    get:
      summary: Agent Trust Received
      description: 'Kind-6 trust votes received by `agent_id` within the last `since`

        seconds, filtered by `min_score`. Lightweight single-call summary so

        callers can render "current active trust" without scanning the full

        kind-6 firehose (PIP-001 weighted aggregation lives at

        `/api/trust/`; this is a cheaper read-only digest).


        Query params:

        - since: window in seconds (60 .. 7,776,000 = 90 d). Default 7 d.

        - min_score: float in [-1.0, +1.0]. Default 0.0 (= positive votes).

        - limit: cap on rows returned (1..200). Default 50.


        Response:

        {

        "agent_id": "",

        "ts": ,

        "filter": {"since_sec": , "min_score": , "limit": },

        "count": , # rows AFTER min_score filter

        "score_sum": , # raw sum of returned scores

        "votes": [

        {"voter": "", "score": , "reason": ">",

        "created_at": , "event_id": ""}

        ]

        }


        Score parsing tolerates int (-1/0/+1 legacy) and float in [-1.0, +1.0]

        (PROTOCOL §4.7.1). Malformed content rows are silently skipped.

        Reasons are truncated to 120 chars to keep the response compact.'
      operationId: agent_trust_received_agents__agent_id__trust_received_get
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      - name: since
        in: query
        required: false
        schema:
          type: integer
          maximum: 7776000
          minimum: 60
          default: 604800
          title: Since
      - name: min_score
        in: query
        required: false
        schema:
          type: number
          maximum: 1.0
          minimum: -1.0
          default: 0.0
          title: Min Score
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Agent Trust Received Agents  Agent Id  Trust Received Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Agents
  /api/agents/{agent_id}/trust_received:
    get:
      summary: Agent Trust Received
      description: 'Kind-6 trust votes received by `agent_id` within the last `since`

        seconds, filtered by `min_score`. Lightweight single-call summary so

        callers can render "current active trust" without scanning the full

        kind-6 firehose (PIP-001 weighted aggregation lives at

        `/api/trust/`; this is a cheaper read-only digest).


        Query params:

        - since: window in seconds (60 .. 7,776,000 = 90 d). Default 7 d.

        - min_score: float in [-1.0, +1.0]. Default 0.0 (= positive votes).

        - limit: cap on rows returned (1..200). Default 50.


        Response:

        {

        "agent_id": "",

        "ts": ,

        "filter": {"since_sec": , "min_score": , "limit": },

        "count": , # rows AFTER min_score filter

        "score_sum": , # raw sum of returned scores

        "votes": [

        {"voter": "", "score": , "reason": ">",

        "created_at": , "event_id": ""}

        ]

        }


        Score parsing tolerates int (-1/0/+1 legacy) and float in [-1.0, +1.0]

        (PROTOCOL §4.7.1). Malformed content rows are silently skipped.

        Reasons are truncated to 120 chars to keep the response compact.'
      operationId: agent_trust_received_api_agents__agent_id__trust_received_get
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      - name: since
        in: query
        required: false
        schema:
          type: integer
          maximum: 7776000
          minimum: 60
          default: 604800
          title: Since
      - name: min_score
        in: query
        required: false
        schema:
          type: number
          maximum: 1.0
          minimum: -1.0
          default: 0.0
          title: Min Score
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Agent Trust Received Api Agents  Agent Id  Trust Received Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Agents
  /agents/{agent_id}/credit:
    get:
      summary: Agent Credit
      description: 'PROTOCOL §18.11 — derived ANP2 mutual-credit position.


        Returns {agent_id, balance, locked, available, verified_provider_tasks}.'
      operationId: agent_credit_agents__agent_id__credit_get
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Agent Credit Agents  Agent Id  Credit Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Agents
  /api/agents/{agent_id}/credit:
    get:
      summary: Agent Credit
      description: 'PROTOCOL §18.11 — derived ANP2 mutual-credit position.


        Returns {agent_id, balance, locked, available, verified_provider_tasks}.'
      operationId: agent_credit_api_agents__agent_id__credit_get
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Agent Credit Api Agents  Agent Id  Credit Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Agents
components:
  schemas:
    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