Pingwa Ask API
The Ask API from Pingwa — 1 operation(s) for ask.
The Ask API from Pingwa — 1 operation(s) for ask.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/pingwa-dev:pingwa-dev-ask-api"
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.
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: 3.2.0
info:
title: pingwa Ask API
version: 0.1.0
tags:
- name: Ask
paths:
/v1/ask:
post:
summary: Ask
description: 'Send a question and block until the human replies (or timeout). A timeout does
NOT cancel the ask — a late reply still correlates and is retrievable via
GET /v1/messages/{id}/reply or /v1/inbox. Idempotency-Key dedupes the SEND: a
replay re-enters the wait on the original question, never asking twice.
embed-01: a partner key''s ask goes to the person only, with at least one button (422
partner_ask_needs_buttons: it is answered only by a tap or a quote, never by unquoted
text, correlation rule 2), its text starts with ": " and the partner pays
(send_notification''s `partner`).'
operationId: ask_v1_ask_post
parameters:
- name: Idempotency-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Idempotency-Key
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AskIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Ask V1 Ask Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Ask
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
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
AskIn:
properties:
text:
type: string
maxLength: 1024
minLength: 1
title: Text
buttons:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Buttons
timeout:
anyOf:
- type: integer
- type: 'null'
title: Timeout
to:
anyOf:
- type: string
- items:
type: string
type: array
- type: 'null'
title: To
description: 'Who gets it: "me" (default: the sending number''s own phone), "team" (that number plus every active member) or a list of up to 25 member ids / names / "me". A send to the team or to members answers 202 {group_id, recipients: [{member_id, name, message_id, billing_class, status}], skipped}: no top-level `message_id` (use each recipient''s own `message_id`). On /v1/ask the answer also has a top-level `message_id` (the first recipient''s `message_id`; any message id of the group works with GET /v1/messages/{id}/reply).'
timeout_ok:
type: boolean
title: Timeout Ok
description: 'Default false: no answer within `timeout` is 408 ask_timeout. True: it is 200 {"message_id", "answered": false, "reply": null} (a team ask also has group_id, recipients, skipped; mode "all" has answers, pending, unreachable) for callers that treat a 4xx as a failed step. The question was sent and stays open; read the answer with GET /v1/messages/{message_id}/reply?wait=<s>.'
default: false
mode:
anyOf:
- type: string
enum:
- first
- all
- type: 'null'
title: Mode
escalate:
anyOf:
- items:
properties:
to:
anyOf:
- type: string
description: '"me" or "team"'
- items:
type: string
type: array
description: member ids or names, and/or "me"
after_s:
type: integer
maximum: 21600.0
minimum: 60.0
description: seconds after the original send; each step at least 60 s after the previous one
additionalProperties: false
type: object
required:
- to
- after_s
type: array
maxItems: 3
minItems: 1
- type: string
description: a policy name (POST /v1/team/policies)
- type: 'null'
title: Escalate
description: 'teams-04: escalate while nobody answers: steps [{"to", "after_s"}] (1-3) or a policy name. Responses add `escalation` [{step, state, due_at, reason}]; state: pending | sent | cancelled | stopped.'
type: object
required:
- text
title: AskIn