---
title: "Answer"
method: POST
path: "/v1/answer"
tags: ["Answer"]
---

# Answer

`POST /v1/answer`

## Request body

- AnswerRequest — Request body model for the /answer endpoint.
  - `citations` CitationConfig — Configuration for citation behavior in the /answer endpoint.
    - `enabled` boolean — Include citations in the answer. When false, returns plain answer without [N] markers.
    - `format` 'marker' | 'annotation' — Citation format: 'marker' embeds [N] in text; 'annotation' returns text with inline markdown links and character-range citations.
    - `include_description` boolean — Include description/snippet in each citation object. Default returns only index, url, title.
  - `query` string, required — Question to answer using web search results

## Response `200`

Successful Response

- AnswerResponse — Response model for the /answer endpoint.
  - `answer` string, required — LLM-generated answer to the query
  - `citations` union, required — Sources referenced in the answer. Shape depends on citations.format: 'marker' includes index, 'annotation' includes start_index/end_index character ranges.
    - AnswerMarkerCitation[]
      - `description` string, nullable — Snippet/description from the search result
      - `index` integer, required — 1-based citation index matching [N] markers in the answer text
      - `title` string, required
      - `url` string, required
    - AnswerAnnotationCitation[]
      - `description` string, nullable — Snippet/description from the search result
      - `end_index` integer, required — Exclusive end character offset of the inline link in the answer text
      - `start_index` integer, required — Inclusive start character offset of the inline link in the answer text
      - `title` string, required
      - `type` 'url_citation'
      - `url` string, required
  - `request_id` string, required — Unique identifier for this request (UUID)

---

[API](https://skmtc.net/nimbleway/apis/api-gateway.md) · [All operations](https://skmtc.net/nimbleway/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nimbleway/api-gateway/revisions/9bfe220b7a29/schema)
