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

# Logs

> Find a single request in the dashboard, read what it cost and why, and export the list as CSV or JSON.

The **Logs** page lists every request of the last 31 days, newest first, with every kind of model in one table. Use it to find one request, see what it cost and why, and export a period for your own analysis.

## Before you begin

Admins see Logs, and a member sees them only for the workspaces they administer; see [Roles](https://docs.naga.ac/account/organizations.md#roles). Logs open on the workspace you're in, and **All workspaces** shows the whole account.

Logs show request and response bodies only when [request logging](https://docs.naga.ac/account/privacy-and-logging.md#request-logging) is on in the workspace.

## Find a request

1. Open **Workspace → Logs**.
2. Narrow the list with the filters above the table: period, kind, model, key, workspace, member, outcome, or request ID.
   The page address keeps the filters, so you can share a filtered list.
3. To find a request from your own logs, filter by the `x-request-id` header of its response.

The workspace filter shows on the account's Logs. The member filter shows once keys from more than one person are in the list. A chart above the table shows the requests of the period over time, colored by outcome; hover over a bar for its counts.

## Read a row

A row has its time, the model with an icon for its kind, usage, duration, cost, and API key. A request that didn't succeed carries a tag before the model:

| Tag | Meaning |
| - | - |
| **Error** | The request failed. |
| **Canceled** | Your client closed the connection. |
| **Cut off** | The model stopped early, for example at the output token limit. |

Usage is in the unit the model bills: tokens for a text model, characters for speech, images for an image model, and seconds for video. The left of the arrow is what you sent, and the right is what the model returned. Hover over it for each billed unit.

A video that's still being generated has no row yet. It shows in an **In progress** strip above the table, with its stage, length, resolution, and time so far. When it finishes, its row appears.

## Open a request's details

1. Click a row, or move to it with Tab and press Enter or Space.
   The details open in a panel on the right. The page address keeps the open request, so you can share a link to it.
2. Read the sections you need:
   * **Timing**: for a streamed answer, the time to the first token and the output speed, drawn as bars.
   * The section for the model's kind: what the request asked for, such as the image size or the video resolution.
   * **How the cost was calculated**: each billed unit with its quantity, unit price and amount, which add up to the cost. When a video costs more than the price NagaAI quoted at submission, a **Price cap** line takes off the difference.
   * **Content**, with request logging on: the response, the images, or the inputs. For a video, it shows the prompt and plays the finished clip for the 7 days NagaAI keeps the file.
3. To read a long conversation, select **Prompt**.
   A large window opens, where you can search the messages, filter them by role, and copy one. A one-line prompt shows in place.
4. To save the raw request and response, select **Download JSON**.

Arrows at the bottom of the panel step to the previous or next request on the page.

## Export the list

Select **Export** to download up to 10,000 rows of the list as filtered, as CSV, or JSON.

## See also

* [Metrics](https://docs.naga.ac/account/metrics.md): spend and errors as charts.
* [Privacy and logging](https://docs.naga.ac/account/privacy-and-logging.md): what NagaAI keeps and for how long.
* [Errors](https://docs.naga.ac/build/error-handling.md): what a failed request's status means.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.