ZeroNoise AI Chats API

Agent authoring, feedback, proposals, and action requests.

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 11

GET /agents/{agent_id}/chats List Agent Chats #
POST /agents/{agent_id}/chats Create Agent Chat #
GET /chats/{chat_id} Get Chat #
GET /chats/{chat_id}/messages List Chat Messages #
POST /chats/{chat_id}/messages Send Chat Message #
GET /chats/{chat_id}/proposals List Chat Proposals #
GET /chats/{chat_id}/proposals/{proposal_id} Get Chat Proposal #
POST /chats/{chat_id}/proposals/{proposal_id}/decision Decide Chat Proposal #
GET /chats/{chat_id}/action-requests List Chat Action Requests #
GET /chats/{chat_id}/action-requests/{request_id} Get Chat Action Request #
POST /chats/{chat_id}/action-requests/{request_id}/decision Decide Chat Action Request #

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-chats-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-chats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ZeroNoise Chats 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: Chats
  description: Agent authoring, feedback, proposals, and action requests.
paths:
  /agents/{agent_id}/chats:
    parameters:
    - $ref: '#/components/parameters/AgentId'
    get:
      tags:
      - Chats
      summary: List Agent Chats
      operationId: listAgentChats
      parameters:
      - $ref: '#/components/parameters/Cursor'
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Initial draft Chat and established Agent authoring Chats
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatPage'
        default:
          $ref: '#/components/responses/Problem'
    post:
      tags:
      - Chats
      summary: Create Agent Chat
      operationId: createAgentChat
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '201':
          description: Established-Agent authoring Chat; the Agent must already be finalized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Chat'
        default:
          $ref: '#/components/responses/Problem'
  /chats/{chat_id}:
    parameters:
    - $ref: '#/components/parameters/ChatId'
    get:
      tags:
      - Chats
      summary: Get Chat
      operationId: getChat
      responses:
        '200':
          description: Chat metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Chat'
        default:
          $ref: '#/components/responses/Problem'
  /chats/{chat_id}/messages:
    parameters:
    - $ref: '#/components/parameters/ChatId'
    get:
      tags:
      - Chats
      summary: List Chat Messages
      operationId: listChatMessages
      parameters:
      - $ref: '#/components/parameters/Cursor'
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Typed Chat messages
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessagePage'
        default:
          $ref: '#/components/responses/Problem'
    post:
      tags:
      - Chats
      summary: Send Chat Message
      operationId: sendChatMessage
      x-zeronoise-credits: spends
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatMessageInput'
      responses:
        '202':
          $ref: '#/components/responses/OperationAccepted'
        default:
          $ref: '#/components/responses/Problem'
  /chats/{chat_id}/proposals:
    parameters:
    - $ref: '#/components/parameters/ChatId'
    get:
      tags:
      - Chats
      summary: List Chat Proposals
      operationId: listChatProposals
      parameters:
      - $ref: '#/components/parameters/Cursor'
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Transcript-backed proposals
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - page
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Proposal'
                  page:
                    $ref: '#/components/schemas/PageMetadata/properties/page'
        default:
          $ref: '#/components/responses/Problem'
  /chats/{chat_id}/proposals/{proposal_id}:
    parameters:
    - $ref: '#/components/parameters/ChatId'
    - $ref: '#/components/parameters/ProposalId'
    get:
      tags:
      - Chats
      summary: Get Chat Proposal
      operationId: getChatProposal
      responses:
        '200':
          description: Proposal projection
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Proposal'
        default:
          $ref: '#/components/responses/Problem'
  /chats/{chat_id}/proposals/{proposal_id}/decision:
    parameters:
    - $ref: '#/components/parameters/ChatId'
    - $ref: '#/components/parameters/ProposalId'
    post:
      tags:
      - Chats
      summary: Decide Chat Proposal
      operationId: decideChatProposal
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProposalDecisionInput'
      responses:
        '200':
          description: Proposal outcome
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Proposal'
        default:
          $ref: '#/components/responses/Problem'
  /chats/{chat_id}/action-requests:
    parameters:
    - $ref: '#/components/parameters/ChatId'
    get:
      tags:
      - Chats
      summary: List Chat Action Requests
      operationId: listChatActionRequests
      parameters:
      - $ref: '#/components/parameters/Cursor'
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Transcript-backed action requests
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - page
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ActionRequest'
                  page:
                    $ref: '#/components/schemas/PageMetadata/properties/page'
        default:
          $ref: '#/components/responses/Problem'
  /chats/{chat_id}/action-requests/{request_id}:
    parameters:
    - $ref: '#/components/parameters/ChatId'
    - $ref: '#/components/parameters/ActionRequestId'
    get:
      tags:
      - Chats
      summary: Get Chat Action Request
      operationId: getChatActionRequest
      responses:
        '200':
          description: Action request projection
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionRequest'
        default:
          $ref: '#/components/responses/Problem'
  /chats/{chat_id}/action-requests/{request_id}/decision:
    parameters:
    - $ref: '#/components/parameters/ChatId'
    - $ref: '#/components/parameters/ActionRequestId'
    post:
      tags:
      - Chats
      summary: Decide Chat Action Request
      operationId: decideChatActionRequest
      x-zeronoise-credits: conditional
      x-zeronoise-credits-when: decision is approve
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActionRequestDecisionInput'
      responses:
        '200':
          description: Declined action request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionRequest'
        '202':
          $ref: '#/components/responses/OperationAccepted'
        default:
          $ref: '#/components/responses/Problem'
components:
  schemas:
    Chat:
      type: object
      description: ZeroNoise-guided Agent authoring conversation, not a public Agent Q&A session.
      required:
      - id
      - object
      - agent_id
      - kind
      - created_at
      - links
      properties:
        id:
          $ref: '#/components/schemas/OpaqueId'
        object:
          type: string
          enum:
          - chat
        agent_id:
          $ref: '#/components/schemas/OpaqueId'
        kind:
          type: string
          x-extensible-enum:
          - agent_draft
          - agent_chat
        title:
          type:
          - string
          - 'null'
        created_at:
          $ref: '#/components/schemas/Timestamp'
        updated_at:
          $ref: '#/components/schemas/Timestamp'
        links:
          $ref: '#/components/schemas/Links'
    TextContent:
      type: object
      required:
      - type
      - text
      properties:
        type:
          type: string
          enum:
          - text
        text:
          type: string
    AgentSchedulePatch:
      type: object
      additionalProperties: false
      properties:
        frequency:
          type: string
          enum:
          - daily
          - weekly
        time:
          type: string
          pattern: ^(?:[01]\d|2[0-3]):[0-5]\d$
        weekday:
          type:
          - string
          - 'null'
          enum:
          - monday
          - tuesday
          - wednesday
          - thursday
          - friday
          - saturday
          - sunday
          - null
        timezone:
          type: string
          minLength: 1
          maxLength: 255
    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
    MessagePage:
      allOf:
      - $ref: '#/components/schemas/PageMetadata'
      - type: object
        required:
        - data
        properties:
          data:
            type: array
            items:
              $ref: '#/components/schemas/Message'
    ChatMessageInput:
      type: object
      additionalProperties: false
      required:
      - text
      properties:
        text:
          type: string
          minLength: 1
          maxLength: 32000
        intent:
          type:
          - string
          - 'null'
          enum:
          - edit_agent
          - discover_sources
          - null
        references:
          type: array
          maxItems: 20
          items:
            $ref: '#/components/schemas/ResourceReference'
    OperationError:
      type:
      - object
      - 'null'
      required:
      - code
      - message
      properties:
        code:
          type: string
        message:
          type: string
    Link:
      type: object
      required:
      - href
      properties:
        href:
          type: string
    AgentConfigurationPatch:
      type: object
      additionalProperties: false
      description: Sparse RFC 7396 merge patch over AgentConfiguration.
      properties:
        name:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 120
        description:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 2000
        goal:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 4000
        instructions:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 16000
        discovery_instructions:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 16000
        output:
          $ref: '#/components/schemas/AgentOutputPatch'
        tasks:
          $ref: '#/components/schemas/AgentTasksPatch'
        schedule:
          $ref: '#/components/schemas/AgentSchedulePatch'
        transcription_mode:
          type: string
          enum:
          - budget
          - premium
        briefing_preset:
          type: string
          enum:
          - economy
          - standard
          - advanced
          - expert
        evidence_capabilities:
          $ref: '#/components/schemas/AgentEvidenceCapabilitiesPatch'
    OperationUsage:
      type:
      - object
      - 'null'
      properties:
        amount_usd:
          type: string
          pattern: ^-?\d+(?:\.\d+)?$
        charged:
          type: boolean
    Proposal:
      type: object
      required:
      - id
      - object
      - chat_id
      - agent_id
      - status
      - base_configuration_etag
      - changes
      properties:
        id:
          $ref: '#/components/schemas/OpaqueId'
        object:
          type: string
          enum:
          - proposal
        chat_id:
          $ref: '#/components/schemas/OpaqueId'
        agent_id:
          $ref: '#/components/schemas/OpaqueId'
        status:
          type: string
          x-extensible-enum:
          - pending_review
          - stale
          - applied
          - declined
          - failed
        summary:
          type: string
        base_configuration_etag:
          type: string
        changes:
          $ref: '#/components/schemas/AgentConfigurationPatch'
        changed_paths:
          type: array
          items:
            type: string
        outcome:
          type:
          - object
          - 'null'
          additionalProperties: true
    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.
    Links:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/Link'
    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'
    ActionRequestOverrides:
      type: object
      additionalProperties: false
      properties:
        instructions:
          type: string
          minLength: 1
          maxLength: 16000
        source_types:
          type: array
          uniqueItems: true
          items:
            type: string
    Message:
      type: object
      required:
      - id
      - object
      - chat_id
      - role
      - content
      - created_at
      properties:
        id:
          $ref: '#/components/schemas/OpaqueId'
        object:
          type: string
          enum:
          - message
        chat_id:
          $ref: '#/components/schemas/OpaqueId'
        role:
          type: string
          x-extensible-enum:
          - user
          - assistant
        content:
          type: array
          items:
            $ref: '#/components/schemas/MessageContent'
        created_at:
          $ref: '#/components/schemas/Timestamp'
    Timestamp:
      type: string
      format: date-time
    ActionRequestDecisionInput:
      type: object
      additionalProperties: false
      required:
      - decision
      properties:
        decision:
          type: string
          enum:
          - approve_and_start
          - decline
        input:
          $ref: '#/components/schemas/ActionRequestOverrides'
    AgentTasksPatch:
      type: object
      additionalProperties: false
      properties:
        extract_information:
          $ref: '#/components/schemas/AgentTaskPatch'
        generate_brief:
          $ref: '#/components/schemas/AgentTaskPatch'
    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.
    TypedReferenceContent:
      type: object
      required:
      - type
      - ref
      properties:
        type:
          type: string
          enum:
          - resource_change
          - resource_ref
          - proposal
          - action_request
          - operation_ref
        ref:
          $ref: '#/components/schemas/ResourceReference'
        summary:
          type:
          - string
          - 'null'
    ChatPage:
      allOf:
      - $ref: '#/components/schemas/PageMetadata'
      - type: object
        required:
        - data
        properties:
          data:
            type: array
            items:
              $ref: '#/components/schemas/Chat'
    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.
    ActionRequest:
      type: object
      required:
      - id
      - object
      - chat_id
      - agent_id
      - action
      - status
      - input
      properties:
        id:
          $ref: '#/components/schemas/OpaqueId'
        object:
          type: string
          enum:
          - action_request
        chat_id:
          $ref: '#/components/schemas/OpaqueId'
        agent_id:
          $ref: '#/components/schemas/OpaqueId'
        action:
          type: string
          x-extensible-enum:
          - discover_sources
        status:
          type: string
          x-extensible-enum:
          - pending_review
          - started
          - declined
          - failed
        input:
          $ref: '#/components/schemas/DiscoverSourcesInput'
        operation_id:
          $ref: '#/components/schemas/OpaqueId'
    ProposalDecisionInput:
      type: object
      additionalProperties: false
      required:
      - decision
      properties:
        decision:
          type: string
          enum:
          - approve_and_apply
          - decline
    OperationAccepted:
      type: object
      required:
      - operation
      properties:
        operation:
          $ref: '#/components/schemas/Operation'
    AgentOutputPatch:
      type: object
      additionalProperties: false
      properties:
        style:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 4000
        language:
          type:
          - string
          - 'null'
          pattern: ^[a-z]{2}$
    AgentTaskPatch:
      type: object
      additionalProperties: false
      properties:
        instructions:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 16000
    MessageContent:
      oneOf:
      - $ref: '#/components/schemas/TextContent'
      - $ref: '#/components/schemas/TypedReferenceContent'
    AgentEvidenceCapabilitiesPatch:
      type: object
      additionalProperties: false
      properties:
        external_web:
          type: string
          enum:
          - disabled
          - on_demand
        image_analysis:
          type: string
          enum:
          - disabled
          - on_demand
  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'
    ProposalId:
      name: proposal_id
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/OpaqueId'
    Cursor:
      name: cursor
      in: query
      schema:
        type: string
        maxLength: 512
    ChatId:
      name: chat_id
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/OpaqueId'
    ActionRequestId:
      name: request_id
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/OpaqueId'
  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