ZeroNoise AI Sources API

Agent Source relationships and discovery.

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 6

GET /agents/{agent_id}/sources List Agent Sources #
POST /agents/{agent_id}/sources Add Agent Source #
GET /agents/{agent_id}/sources/{source_id} Get Agent Source #
DELETE /agents/{agent_id}/sources/{source_id} Remove Agent Source #
PUT /agents/{agent_id}/sources/{source_id}/status Set Agent Source Status #
POST /agents/{agent_id}/source-discoveries Discover Agent Sources #

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/zeronoise-ai:zeronoise-ai-sources-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

zeronoise-ai-sources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ZeroNoise Sources API
  version: 1.0.0
  description: 'Authenticated API for operating ZeroNoise intelligence Agents. HTTP is the

    canonical external contract; the official CLI and MCP adapter preserve the

    same product semantics.


    Operations that admit AI work spend the organization''s credits. They carry

    `x-zeronoise-credits: spends`, or `conditional` with the condition in

    `x-zeronoise-credits-when`. Failed work is not charged.'
servers:
- url: /api/v1
security:
- BearerAuth: []
tags:
- name: Sources
  description: Agent Source relationships and discovery.
paths:
  /agents/{agent_id}/sources:
    parameters:
    - $ref: '#/components/parameters/AgentId'
    get:
      tags:
      - Sources
      summary: List Agent Sources
      description: Callers who manage the Agent see non-deleted Sources by default and may request status deleted to inspect removed relationships before explicitly re-adding them. Other readers, including readers of another organization's Agent, see approved Sources only; requesting another status returns not found.
      operationId: listAgentSources
      parameters:
      - $ref: '#/components/parameters/Cursor'
      - $ref: '#/components/parameters/Limit'
      - name: status
        in: query
        schema:
          $ref: '#/components/schemas/SourceStatusInput'
      - name: source_type
        in: query
        schema:
          type: string
      - name: q
        in: query
        schema:
          type: string
          maxLength: 200
      - name: created_by_operation_id
        in: query
        schema:
          $ref: '#/components/schemas/OpaqueId'
      responses:
        '200':
          description: Agent Sources
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourcePage'
        default:
          $ref: '#/components/responses/Problem'
    post:
      tags:
      - Sources
      summary: Add Agent Source
      description: Requires sources:write. Adding an already approved Source with a fresh idempotency key returns 409 source_already_exists; replaying the original key returns its original response.
      operationId: addAgentSource
      x-zeronoise-credits: conditional
      x-zeronoise-credits-when: the request has url
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddSourceInput'
      responses:
        '201':
          description: Synchronous Agent-source relationship or explicit reactivation of a known Source
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Source'
        '202':
          $ref: '#/components/responses/OperationAccepted'
        default:
          $ref: '#/components/responses/Problem'
  /agents/{agent_id}/sources/{source_id}:
    parameters:
    - $ref: '#/components/parameters/AgentId'
    - $ref: '#/components/parameters/SourceId'
    get:
      tags:
      - Sources
      summary: Get Agent Source
      description: Pending, rejected and deleted Sources are visible only to callers who manage the Agent.
      operationId: getAgentSource
      responses:
        '200':
          description: Source relationship
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Source'
        default:
          $ref: '#/components/responses/Problem'
    delete:
      tags:
      - Sources
      summary: Remove Agent Source
      operationId: removeAgentSource
      responses:
        '204':
          description: Source relationship removed or already removed
        default:
          $ref: '#/components/responses/Problem'
  /agents/{agent_id}/sources/{source_id}/status:
    parameters:
    - $ref: '#/components/parameters/AgentId'
    - $ref: '#/components/parameters/SourceId'
    put:
      tags:
      - Sources
      summary: Set Agent Source Status
      operationId: setAgentSourceStatus
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetSourceStatusInput'
      responses:
        '200':
          description: Updated Source relationship
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Source'
        '409':
          $ref: '#/components/responses/Problem'
        default:
          $ref: '#/components/responses/Problem'
  /agents/{agent_id}/source-discoveries:
    parameters:
    - $ref: '#/components/parameters/AgentId'
    post:
      tags:
      - Sources
      summary: Discover Agent Sources
      operationId: discoverAgentSources
      x-zeronoise-credits: spends
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DiscoverSourcesInput'
      responses:
        '202':
          $ref: '#/components/responses/OperationAccepted'
        default:
          $ref: '#/components/responses/Problem'
components:
  parameters:
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
    AgentId:
      $ref: '#/components/parameters/OpaqueAgentId'
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: true
      schema:
        type: string
        minLength: 1
        maxLength: 255
        pattern: ^[\x21-\x7E]+$
    OpaqueAgentId:
      name: agent_id
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/OpaqueId'
    Cursor:
      name: cursor
      in: query
      schema:
        type: string
        maxLength: 512
    SourceId:
      name: source_id
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/OpaqueId'
  schemas:
    SourceIngestionOperationResult:
      type: object
      properties:
        total:
          type: integer
          minimum: 0
        processed:
          type: integer
          minimum: 0
        added:
          type: integer
          minimum: 0
        added_channels:
          type: integer
          minimum: 0
        added_web_sources:
          type: integer
          minimum: 0
        duplicate:
          type: integer
          minimum: 0
        invalid:
          type: integer
          minimum: 0
        errors:
          type: integer
          minimum: 0
    OperationError:
      type:
      - object
      - 'null'
      required:
      - code
      - message
      properties:
        code:
          type: string
        message:
          type: string
    SourcePage:
      allOf:
      - $ref: '#/components/schemas/PageMetadata'
      - type: object
        required:
        - data
        properties:
          data:
            type: array
            items:
              $ref: '#/components/schemas/Source'
    Link:
      type: object
      required:
      - href
      properties:
        href:
          type: string
    OperationUsage:
      type:
      - object
      - 'null'
      properties:
        amount_usd:
          type: string
          pattern: ^-?\d+(?:\.\d+)?$
        charged:
          type: boolean
    Links:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/Link'
    DiscoveryOperationResult:
      type: object
      properties:
        outcome:
          type: string
          x-extensible-enum:
          - suggestions_ready
          - partial
          - no_suggestions
        counts:
          type: object
          properties:
            checked:
              type: integer
              minimum: 0
            ready:
              type: integer
              minimum: 0
            suggestions_ready:
              type: integer
              minimum: 0
        gaps:
          type: array
          maxItems: 12
          items:
            type: string
            maxLength: 240
        stop_reason:
          type: string
          x-extensible-enum:
          - step_limit
          - cost_limit
          - system_error
          - final_selection_invalid
          - stopped
        sources:
          type: object
          required:
          - object
          - agent_id
          - created_by_operation_id
          - href
          properties:
            object:
              type: string
              enum:
              - source_collection
            agent_id:
              $ref: '#/components/schemas/OpaqueId'
            created_by_operation_id:
              $ref: '#/components/schemas/OpaqueId'
            href:
              type: string
        created_pending:
          type: integer
          minimum: 0
          description: Legacy result count.
        matched_existing:
          type: integer
          minimum: 0
          description: Legacy result count.
        skipped:
          type: integer
          minimum: 0
          description: Legacy result count.
        failed:
          type: integer
          minimum: 0
          description: Legacy result count.
    Operation:
      type: object
      required:
      - id
      - object
      - capability
      - status
      - subject
      - created_at
      - updated_at
      - links
      properties:
        id:
          $ref: '#/components/schemas/OpaqueId'
        object:
          type: string
          enum:
          - operation
        capability:
          type: string
          x-extensible-enum:
          - agent_draft
          - agent_chat
          - add_source
          - source_discovery
          - brief_generation
        status:
          type: string
          x-extensible-enum:
          - queued
          - running
          - succeeded
          - failed
        subject:
          $ref: '#/components/schemas/ResourceReference'
        caused_by:
          $ref: '#/components/schemas/ResourceReference'
        progress:
          type:
          - object
          - 'null'
          additionalProperties: true
        result:
          description: Present when durable results exist. The capability determines the result family; fields may be absent on historical Operations.
          anyOf:
          - $ref: '#/components/schemas/AuthoringOperationResult'
          - $ref: '#/components/schemas/DiscoveryOperationResult'
          - $ref: '#/components/schemas/BriefOperationResult'
          - $ref: '#/components/schemas/SourceIngestionOperationResult'
        error:
          $ref: '#/components/schemas/OperationError'
        usage:
          $ref: '#/components/schemas/OperationUsage'
        created_at:
          $ref: '#/components/schemas/Timestamp'
        started_at:
          $ref: '#/components/schemas/Timestamp'
        completed_at:
          $ref: '#/components/schemas/Timestamp'
        updated_at:
          $ref: '#/components/schemas/Timestamp'
        links:
          $ref: '#/components/schemas/Links'
    Timestamp:
      type: string
      format: date-time
    SetSourceStatusInput:
      type: object
      additionalProperties: false
      required:
      - status
      properties:
        status:
          type: string
          enum:
          - approved
          - rejected
    AuthoringOperationResult:
      type:
      - object
      - 'null'
      properties:
        agent:
          $ref: '#/components/schemas/ResourceReference'
        chat:
          $ref: '#/components/schemas/ResourceReference'
        message:
          $ref: '#/components/schemas/ResourceReference'
        references:
          type: array
          items:
            $ref: '#/components/schemas/ResourceReference'
        proposal:
          $ref: '#/components/schemas/ResourceReference'
        action_request:
          $ref: '#/components/schemas/ResourceReference'
        configuration_etag:
          type: string
        before_configuration_etag:
          type:
          - string
          - 'null'
        applied_effects:
          type: array
          items:
            type: string
            x-extensible-enum:
            - agent_configuration_updated
    PageMetadata:
      type: object
      required:
      - data
      - page
      properties:
        data:
          type: array
          items: {}
        page:
          type: object
          required:
          - has_more
          properties:
            next_cursor:
              type:
              - string
              - 'null'
            has_more:
              type: boolean
    BriefOperationResult:
      type: object
      properties:
        brief:
          $ref: '#/components/schemas/ResourceReference'
        href:
          type: string
    ResourceReference:
      type:
      - object
      - 'null'
      additionalProperties: false
      required:
      - object
      - id
      properties:
        object:
          type: string
        id:
          $ref: '#/components/schemas/OpaqueId'
    Problem:
      type: object
      required:
      - type
      - title
      - status
      - code
      properties:
        type:
          type: string
          format: uri-reference
        title:
          type: string
        status:
          type: integer
          minimum: 400
          maximum: 599
        detail:
          type: string
        instance:
          type: string
          format: uri-reference
        code:
          type: string
        request_id:
          type: string
        operation:
          $ref: '#/components/schemas/ResourceReference'
        errors:
          type: array
          items:
            type: object
            required:
            - code
            properties:
              code:
                type: string
              path:
                type: string
                description: JSON Pointer
              message:
                type: string
              actual:
                type: integer
              minimum:
                type: integer
    OpaqueId:
      type: string
      minLength: 1
      maxLength: 255
      description: Opaque identifier; clients must not parse its format.
    DiscoverSourcesInput:
      type: object
      additionalProperties: false
      required:
      - instructions
      properties:
        instructions:
          type: string
          minLength: 1
          maxLength: 16000
        source_types:
          type: array
          uniqueItems: true
          items:
            type: string
        max_candidates:
          type: integer
          minimum: 1
          maximum: 100
          description: Maximum candidate checks, not a target number of suggestions. Defaults to 20 when omitted. May tighten, but never relax, the server budget.
    AddSourceInput:
      description: Supply exactly one identifier. source_id explicitly re-adds and approves a known Source belonging to this Agent, using existing materialized identity without URL ingestion. Normal permissions, upstream Agent access and source limits still apply.
      oneOf:
      - type: object
        additionalProperties: false
        required:
        - url
        properties:
          url:
            type: string
            format: uri
            maxLength: 2048
      - type: object
        additionalProperties: false
        required:
        - agent_id
        properties:
          agent_id:
            $ref: '#/components/schemas/OpaqueId'
      - type: object
        additionalProperties: false
        required:
        - source_id
        properties:
          source_id:
            $ref: '#/components/schemas/OpaqueId'
    Source:
      type: object
      required:
      - id
      - object
      - agent_id
      - status
      - source_type
      - created_at
      - links
      properties:
        id:
          $ref: '#/components/schemas/OpaqueId'
        object:
          type: string
          enum:
          - source
        agent_id:
          $ref: '#/components/schemas/OpaqueId'
        status:
          type: string
          x-extensible-enum:
          - pending
          - approved
          - rejected
          - deleted
        source_type:
          type: string
        title:
          type:
          - string
          - 'null'
        url:
          type:
          - string
          - 'null'
        source_agent_id:
          $ref: '#/components/schemas/OpaqueId'
        created_by_operation_id:
          $ref: '#/components/schemas/OpaqueId'
        created_at:
          $ref: '#/components/schemas/Timestamp'
        links:
          $ref: '#/components/schemas/Links'
    OperationAccepted:
      type: object
      required:
      - operation
      properties:
        operation:
          $ref: '#/components/schemas/Operation'
    SourceStatusInput:
      type: string
      enum:
      - pending
      - approved
      - rejected
      - deleted
  responses:
    Problem:
      description: RFC 9457 problem response
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    OperationAccepted:
      description: Asynchronous work admitted
      headers:
        Location:
          description: Canonical Operation URL
          schema:
            type: string
        Retry-After:
          description: Suggested poll delay in integer seconds
          schema:
            type: integer
            minimum: 0
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/OperationAccepted'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: ZeroNoise API credential or OAuth access token