---
title: "Agent Ask"
method: POST
path: "/v1/agent/ask"
tags: ["agent"]
---

# Agent Ask

`POST /v1/agent/ask`

## Request

- Base URL: `https://api.june.januraine.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.june.januraine.ai/v1/agent/ask`
- Auth: none declared

## Headers

- `X-Canvas` string, nullable
- `X-API-Key` string, nullable
- `Authorization` string, nullable

## Request body

- AgentAskIn: Mirrors the standalone ``AskIn`` minus ``canvas`` — canvas selection is the ``X-Canvas`` HEADER via the shared ``get_ctx`` (one tenancy mechanism, no parallel path). Module-level so FastAPI resolves the postponed annotation.
  - `question` string, required
  - `agentic` boolean
  - `limit` integer
  - `max_sources` integer
  - `token_budget` integer
  - `enumerate` boolean
  - `terms` string[]
  - `regex` string, nullable
  - `subtype` string, nullable
  - `node_types` string[], nullable
  - `cap` integer
  - `history` AgentHistoryTurn[]
    - `role` 'user' | 'assistant', required
    - `text` string, required
  - `seeds` AgentSeed[]
    - `node_id` string, uuid, required
    - `node_type` string, required
  - `context` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/januraine/apis/june-ai.md) · [All operations](https://skmtc.dev/januraine/apis/june-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/januraine/apis/june-ai/revisions/097b95b163c7?raw)
