Peeve Ask API

Ask the agent a question from your backend and get a grounded answer.

GitHub OpenAPI

Operations 1

POST /v1/answer Ask the agent a question #

Specifications

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/peeve-ai:peeve-ai-ask-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

peeve-ai-ask-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Peeve Ask API
  version: '2026-08-17'
  description: 'The `/v1` API. Server-to-server only — no CORS headers are sent, no `Origin` is checked, and publishable keys are rejected everywhere.


    Most endpoints take a **API token** (`pv_ut_…`), which carries its owner''s live workspace role. `/v1/users` and `/v1/answer` take the **workspace secret key** (`sk_…`). The credential and the required role are stated on every operation — they are not uniform.'
servers:
- url: https://api.peeve.ai
security:
- userToken: []
tags:
- name: Ask
  description: Ask the agent a question from your backend and get a grounded answer.
paths:
  /v1/answer:
    post:
      operationId: answer
      summary: Ask the agent a question
      tags:
      - Ask
      security:
      - secretKey: []
      description: 'Ask the agent a question from your backend and get a grounded answer — the same headless answerer that serves email, WhatsApp, Messenger and Instagram.


        **Credential: workspace secret key (`sk_…`)**


        > **Warning**

        >

        > **This returns an answer, not a plan.** It cannot click, type, scroll or drive a UI — there is no browser on the server. It is deliberately not a server-side `/api/act`. Anything that would need a live page **escalates**, exactly as it does on email and WhatsApp. A consumer that ignores the `escalate` branch has a latent bug.


        Answers are metered and consume credits like any other conversation turn, and the kill switch silences this endpoint along with every other channel.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - message
              properties:
                message:
                  type: string
                  description: The question, in the end user's words.
                external_user_id:
                  type: string
                  description: Your id for the person asking, so the answer is grounded in who they are.
                conversation_id:
                  type: string
                  format: uuid
                  description: Continue an existing conversation. Omit to start one.
            example:
              message: How do I add a teammate?
              external_user_id: user_8412
      responses:
        '200':
          description: A discriminated union on `path`. **Handle both branches.**
          content:
            application/json:
              schema:
                oneOf:
                - type: object
                  title: answer
                  properties:
                    path:
                      type: string
                      const: answer
                    say:
                      type: string
                      description: The grounded answer.
                    conversation_id:
                      type: string
                      format: uuid
                - type: object
                  title: escalate
                  properties:
                    path:
                      type: string
                      const: escalate
                    reason:
                      type: string
                      description: Why it could not be answered here.
                    conversation_id:
                      type: string
                      format: uuid
              examples:
                answered:
                  summary: Answered
                  value:
                    path: answer
                    say: You can add a teammate under Settings → Team.
                    conversation_id: 00000000-0000-4000-8000-000000000000
                escalated:
                  summary: Escalated — needs a human or a live page
                  value:
                    path: escalate
                    reason: needs a live page
                    conversation_id: 00000000-0000-4000-8000-000000000000
        '400':
          description: Malformed JSON, or `message` missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyError'
              example:
                error: message is required
        '401':
          description: Not a valid secret key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyError'
        '402':
          description: Out of credits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyError'
        '403':
          description: The workspace is not entitled to serve — kill switch, expired trial or lapsed subscription.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyError'
              example:
                error: workspace_inactive
                reason: kill_switch
        '429':
          description: Rate limited.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyError'
        '503':
          description: Could not open the conversation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyError'
      x-mint:
        metadata:
          description: Ask the Peeve agent a question from your backend and get a grounded answer. It returns an answer, never a UI action, and uses credits like any turn.
components:
  schemas:
    LegacyError:
      type: object
      description: '`/v1/users` and `/v1/answer` predate the envelope and return this flat shape.'
      properties:
        error:
          type: string
        reason:
          type: string
  securitySchemes:
    userToken:
      type: http
      scheme: bearer
      description: 'An API token (`pv_ut_…`) as `Authorization: Bearer pv_ut_…`. `X-Peeve-Key` is accepted too. **Never a query parameter** — URLs end up in proxy logs and `Referer` headers.


        The token carries its owner''s **live** workspace role, re-read on every call.'
    secretKey:
      type: http
      scheme: bearer
      description: 'The workspace secret key (`sk_…`) as `Authorization: Bearer sk_…`. `X-Peeve-Key` is accepted too.'