> For the complete documentation index, see [llms.txt](https://poe-developers.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://poe-developers.gitbook.io/documentation/server-bots/poe-protocol-specification/requests.md). Agents can also search and read this documentation through its [MCP server](https://poe-developers.gitbook.io/documentation/~gitbook/mcp).

# Requests

The Poe server will send an HTTP POST request to the bot servers URL with content type `application/json`. The body will be a JSON dictionary with the following keys:

* `version` *(string)*: The API version that the server is using.
* `type` *(string)*: This is one of the following strings:
  * `query`: Called when the user makes a query to the bot (i.e., they send a message).
  * `settings`: Query the bot for its desired settings.
  * `report_feedback`: Report to the bot server when certain events happen (e.g., the user likes a message).
  * `report_error`: Report to the bot server when an error happens that is attributable to the bot (e.g., it uses the protocol incorrectly).
  * Additional request types may be added in the future. Bot servers should ignore any request types they do not understand, ideally by sending a `501 Not Implemented` HTTP response.

Each of the request types is discussed in detail below:

<table data-view="cards"><thead><tr><th align="center"></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center"><strong>query</strong></td><td><em>request type</em></td><td><a href="https://poe-developers.gitbook.io/documentation/server-bots/poe-protocol-specification/requests/query.md">query</a></td></tr><tr><td align="center"><strong>settings</strong></td><td><em>request type</em></td><td><a href="https://poe-developers.gitbook.io/documentation/server-bots/poe-protocol-specification/requests/settings.md">settings</a></td></tr><tr><td align="center"><strong>report_feedback</strong></td><td><em>request type</em></td><td><a href="https://poe-developers.gitbook.io/documentation/server-bots/poe-protocol-specification/requests/report_feedback.md">report_feedback</a></td></tr><tr><td align="center"><strong>report_error</strong></td><td><em>request type</em></td><td><a href="https://poe-developers.gitbook.io/documentation/server-bots/poe-protocol-specification/requests/report_error.md">report_error</a></td></tr></tbody></table>
