> ## Documentation Index
> Fetch the complete documentation index at: /llms.txt
> Use this file to discover all available pages before exploring further.

# Answer

> A short answer in which every claim points at the passage it rests on, as markdown or as JSON.

## What it is for

Answer searches, reads and writes a short answer. Every claim in it points at a passage quoted word for word, with the kind of source and a link to the place on the page.

You choose the depth: Quick, Auto or Deep. Deeper answers read more before they are written. Long research streams in as it is written, so you can start reading before it ends.

## When an agent should use it

* When it needs the answer, not a list of pages.
* When it must cite what it says and cannot spend tokens reading whole pages.
* When the result goes into code: ask for JSON instead of markdown.

If it wants to pick the sources itself, use [Search](/tools/search.md) and [Read](/tools/read.md) instead.

## Example

```http Request
POST /answer
Content-Type: application/json

{
  "question": "Is a day on Venus longer than its year?",
  "return": "json"
}
```

```json Response
{
  "answer": "Yes, if you mean one full rotation. Venus takes about 243 Earth days [1] to turn once, but only 225 [2] to orbit the Sun.",
  "claims": [
    {
      "text": "243 Earth days",
      "source": "UCLA Newsroom · How long is a day on Venus? Scientists crack mysteries of our closest neighbor",
      "kind": "University news release about its own team’s study, April 29, 2021",
      "passage": "The new radar measurements show that an average day on Venus lasts 243.0226 Earth days — roughly two-thirds of an Earth year.",
      "link": "https://newsroom.ucla.edu/releases/cracking-the-mysteries-of-venus#:~:text=The%20new%20radar%20measurements%20show,of%20an%20Earth%20year"
    },
    {
      "text": "225",
      "source": "NASA Science · Venus Facts",
      "kind": "NASA reference page",
      "passage": "For one thing, your “day” would be 243 Earth days long — longer even than a Venus year (one trip around the Sun), which takes only 225 Earth days.",
      "link": "https://science.nasa.gov/venus/venus-facts/#h-orbit-and-rotation:~:text=For%20one%20thing,only%20225%20Earth%20days"
    }
  ]
}
```

## What comes back

As markdown, an answer has the same layout as the saved answers you can fetch today: the answer with numbered claims, then one numbered source per claim. The [Quickstart](/quickstart.md) walks through it.

As JSON, the answer is a string and each claim carries:

* **text**: the words in the answer it backs,
* **source**: the publication and the page title,
* **kind**: the type of source,
* **passage**: the sentence, word for word,
* **link**: the address, with a text fragment that opens at the passage.

The `[1]` in the answer is the first claim in the list. As designed, you can also give a JSON shape of your own and get the answer in it.

A response is designed to end with a receipt: the characters on the pages read against the characters returned.
