---
title: "Proxy Otto Chat Request"
method: POST
path: "/api/otto/ask"
tags: ["v2", "otto"]
---

# Proxy Otto Chat Request

`POST /api/otto/ask`

Proxy requests to Otto API while adding necessary security headers and logging.
Requires an authenticated user.

## Request body

- ChatRequest
  - `query` string, required
  - `conversation_history` Message[], required
    - `query` string, required
    - `response` string, required
  - `message_id` string, required
  - `include_graph_data` boolean
  - `graph_id` string, nullable

## Response `200`

Successful Response

- ApiResponse
  - `answer` string, required
  - `documents` Document[], required
    - `url` string, required
    - `relevance_score` number, required
  - `success` boolean, required

## Other responses

- `401` — Authentication required
- `422` — Validation Error

---

[API](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/versions/382041c7ecb2/schema)
