---
title: "Post Agent Answer"
method: POST
path: "/api/agent/answer"
tags: ["agent"]
---

# Post Agent Answer

`POST /api/agent/answer`

## Request

- Base URL: `https://basisprotocol.xyz` (the document declares no server; this is the origin it was published from)
- URL: `https://basisprotocol.xyz/api/agent/answer`
- Auth: none declared

Answer a query from attested state, or refuse (ratified envelope).

Anonymous callers are subject to the public spend guard
(app/agent/public_limits.py); hitting a limit returns a normal
refused-shaped envelope, never an error status. ``?include=receipt``
adds the public receipt fields (never the salt or caller_hash).

## Query parameters

- `include` string, nullable

## Request body

- AnswerRequest
  - `query` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/basisprotocol/apis/basis-protocol-api.md) · [All operations](https://skmtc.dev/basisprotocol/apis/basis-protocol-api/llms.txt) · [OpenAPI document](https://skmtc.dev/basisprotocol/apis/basis-protocol-api/revisions/c0067366b9c0?raw)
