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

# Session Data Recorded for LLM Calls

> See what Eden AI records about each LLM call to group it into a session: ids and step counts, never prompt or answer text, and how an admin turns it off.

**Session Data Recorded for LLM Calls**

See what Eden AI records about each LLM call to group it into a session: ids and step counts, never prompt or answer text, and how an admin turns it off.

To show the calls of one conversation together in Monitoring, Eden AI records a few facts about each LLM call next to its request log entry. None of them is prompt or answer text.

## What is recorded

| Fact | Where it comes from |
| - | - |
| Session id | The `session_id` body field, the `x-session-id` header, or the session a coding agent sends on its own (a header such as `x-claude-code-session-id`, Codex's `session-id` or `x-session-affinity`, or Claude Code's `metadata.user_id`) |
| Grouped session id | When a call names no session: the id of the session Eden AI groups it into, starting with `~`, stored with the request |
| End user id | `user`, or Anthropic's `metadata.user_id`, as you send it |
| Agent ids | The subagent, turn and compaction markers a coding agent sends (Claude Code, Codex) |
| Trace ids | A W3C `traceparent` header you send, or the `trace` body field ([Trace export](https://www.edenai.co/docs/v3/organization/trace-export.md#without-a-tracer)), whose label is kept only as its hash |
| Step | For a chat completion, a response or a message: how many messages the call carried, and whether it answered a user or tool results. Other LLM calls (embeddings, moderation, images, speech) record no step. |
| Link hashes | Keyed hashes of the conversation's opening and of the last answer, so a call can be tied to the one it continues. They hold no text, and they are keyed with a secret only Eden AI holds, so they cannot be read back without it. |
| Tool names | The names of the tools a call used, **only when the request is saved** ([Log Retention](https://www.edenai.co/docs/v3/data-governance/data-retention.md)). Otherwise only how many there were. |

## Expert models

Calls to expert models through `/v3/universal-ai` (OCR, speech, image, translation...) join a session and a trace the same way: send the same `session_id` body field or `x-session-id` header, and the same `traceparent` or `trace` field. Only those ids are recorded for them. Monitoring lists them in the session with what they were billed for, such as pages or characters. [Trace export](https://www.edenai.co/docs/v3/organization/trace-export.md) sends them too, without their input or output.

## What is not recorded

* Prompt or answer text, or tool arguments, unless you turned on Log Retention.
* Anything for calls that are not LLM calls, beyond the ids you send.

Under [zero data retention](https://www.edenai.co/docs/v3/data-governance/compliance-policies.md), requests are never saved, so tool names are never recorded: only their number, the ids and the hashes.

## Turn it off

An organization admin can turn it off in **Settings > Sessions & Traces > Group calls into sessions**, for the whole organization. From then on these facts are not recorded for any call of the organization, and Monitoring lists no new sessions. The trace ids you send (a `traceparent`, or a `trace` field's label, kept only as a keyed hash) are still kept, since Monitoring's Traces view and trace export read them. A label is never kept as you wrote it, but put no personal data in it: its hash still tells two calls with the same label apart from others. The setting does not change routing, billing or [trace export](https://www.edenai.co/docs/v3/organization/trace-export.md), which still sends the sessions you name. It sends a session Eden AI grouped only while the setting is on, since that is when Eden AI groups one.

## How long it is kept

These facts are stored with your request log entries and, like them, kept with no expiry.

To group calls that name no session, Eden AI also keeps the link hashes of recent calls in its cache for 24 hours, then deletes them. A call that continues a conversation after that starts a new session.


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