Wenbu Agent API

The Agent API from Wenbu, for agent.

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 1

POST /api/v1/agent Run one bounded Wenbu Agent turn with real tools and streamed artifacts #

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/wenbu-app:wenbu-app-agent-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

wenbu-app-agent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Wenbu · 问卜 Agent API
  version: 1.5.0
  description: Free, transparent cultural calculation tools. No predictive validity claims.
  license:
    name: MIT
    identifier: MIT
servers:
- url: https://wenbu.app
tags:
- name: Agent
paths:
  /api/v1/agent:
    post:
      operationId: run_agent_turn
      summary: Run one bounded Wenbu Agent turn with real tools and streamed artifacts
      description: 'Explicit consent to send selected context to DeepSeek. Unauthenticated external calls have no saved application history; first-party verified email accounts can opt into cloud records. Body <=98304 bytes. Browser trials/accounts have twelve turns per Shanghai day with trial usage carried over at sign-in and additional network/global limits. Unauthenticated external clients retain the per-network allowance; at most five model calls and 12 tool executions per turn, 120-second deadline. Shared site model budget 1000, Agent sub-budget 600. Each attempted model call counts, including failures. Research covers a curated catalogue, not unrestricted web search. Stream errors can occur after HTTP 200: only a done event confirms terminal status; waiting and limited are not complete.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                message:
                  type: string
                  minLength: 1
                  maxLength: 3000
                consent:
                  const: true
                locale:
                  type: string
                  enum:
                  - zh
                  - en
                  default: zh
                mode:
                  type: string
                  enum:
                  - explore
                  - research
                  default: explore
                newDraw:
                  type: boolean
                  default: false
                  description: True only after the user explicitly requests a new random result.
                history:
                  type: array
                  maxItems: 16
                  description: At most 28000 characters combined; never system or tool roles.
                  items:
                    type: object
                    additionalProperties: false
                    properties:
                      role:
                        enum:
                        - user
                        - assistant
                      content:
                        type: string
                        maxLength: 7000
                    required:
                    - role
                    - content
                context:
                  type: object
                  additionalProperties: false
                  properties:
                    note:
                      type: string
                      maxLength: 5000
                      default: ''
                    reports:
                      type: array
                      maxItems: 2
                      description: Prior drafts for revision, never verified evidence. Combined summary/section headings/bodies/questions/visual text <=1800 characters per report.
                      items:
                        type: object
                        additionalProperties: false
                        properties:
                          title:
                            type: string
                            minLength: 1
                            maxLength: 100
                          summary:
                            type: string
                            minLength: 1
                            maxLength: 450
                          sections:
                            type: array
                            minItems: 1
                            maxItems: 4
                            items:
                              type: object
                              additionalProperties: false
                              properties:
                                heading:
                                  type: string
                                  minLength: 1
                                  maxLength: 100
                                body:
                                  type: string
                                  minLength: 1
                                  maxLength: 700
                                sourceIds:
                                  type: array
                                  maxItems: 6
                                  items:
                                    type: string
                                    maxLength: 120
                              required:
                              - heading
                              - body
                          questions:
                            type: array
                            maxItems: 3
                            items:
                              type: string
                              maxLength: 100
                          visual:
                            type: object
                            additionalProperties: false
                            properties:
                              type:
                                enum:
                                - comparison
                                - steps
                              title:
                                type: string
                                minLength: 1
                                maxLength: 80
                              items:
                                type: array
                                minItems: 2
                                maxItems: 4
                                items:
                                  type: object
                                  additionalProperties: false
                                  properties:
                                    label:
                                      type: string
                                      minLength: 1
                                      maxLength: 48
                                    detail:
                                      type: string
                                      minLength: 1
                                      maxLength: 160
                                    sourceIds:
                                      type: array
                                      maxItems: 4
                                      items:
                                        type: string
                                        minLength: 1
                                        maxLength: 120
                                  required:
                                  - label
                                  - detail
                              note:
                                type: string
                                maxLength: 160
                                default: ''
                            required:
                            - type
                            - title
                            - items
                        required:
                        - title
                        - summary
                        - sections
                    birth:
                      type: object
                      additionalProperties: false
                      properties:
                        date:
                          type: string
                          pattern: ^\d{4}-\d{2}-\d{2}$
                          description: Gregorian date, 1901–2099
                        time:
                          anyOf:
                          - type: string
                            pattern: ^([01]\d|2[0-3]):[0-5]\d$
                          - type: 'null'
                        timezone:
                          type: string
                          minLength: 1
                          maxLength: 80
                        dayBoundary:
                          enum:
                          - midnight
                          - zi
                        solarTime:
                          type: boolean
                        longitude:
                          type: number
                          minimum: -180
                          maximum: 180
                        sex:
                          enum:
                          - male
                          - female
                      required:
                      - date
                      - time
                      - timezone
                      - dayBoundary
                      - solarTime
                    readings:
                      type: array
                      maxItems: 6
                      items:
                        type: object
                        additionalProperties: false
                        properties:
                          kind:
                            enum:
                            - bazi
                            - ziwei
                            - iching
                            - tarot
                          input:
                            description: Original calculation input. For I Ching, original six lines required; for tarot, original cards [{id:0..77,reversed:boolean}], 1 or 3 unique cards.
                        required:
                        - kind
                        - input
                    sourceIds:
                      type: array
                      maxItems: 12
                      items:
                        type: string
                        maxLength: 120
                      description: Known source IDs are verified again. A client-provided ID never establishes that an external source was read.
                  required: []
              required:
              - message
              - consent
      responses:
        '200':
          description: 'SSE JSON events: start, delta, tool_start, tool_end, plan, source, artifact, question, context, error, done. See /agent-protocol.md. Hidden model reasoning is never emitted.'
          content:
            text/event-stream:
              schema:
                type: string
        '403':
          description: Browser origin rejected
        '413':
          description: Body exceeds 96 KiB
        '422':
          description: Invalid request, missing consent or invalid original chart context
        '429':
          description: Network or shared daily limit reached
        '503':
          description: Model or quota configuration unavailable
      tags:
      - Agent