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

# Session Termination Reasons

> Understand why a session ended: the exit status and termination reason shown on the sessions page, grouped by integration

An exit status tells you the broad category of how a session ended. You can
see it in Anam Lab and in the response from
[`GET /v1/sessions/{id}`](/docs/api-reference/sessions/get-session).

A termination reason gives you the specific cause. Anam Lab shows it as a
chip on the [sessions page](https://lab.anam.ai/sessions) only for the reasons
listed below. When a reason is not listed, the session shows its exit status
alone.

## LiveKit

| Reason                                                | Exit status                | What it means                                                                                                                                                                                                                                                                                                                             |
| ----------------------------------------------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Duplicate identity** (`livekit_duplicate_identity`) | Client configuration error | LiveKit removed the avatar because another participant joined the room with the avatar's identity. This usually means the session was started twice for the same room, or a participant identity or token was reused. Start one Anam session per room and give every participant a unique identity.                                       |
| **Room not found** (`livekit_room_not_found`)         | Client configuration error | The avatar could not join because the LiveKit room named in its token does not exist: it was never created, was already closed, or the token's room grant names a different room. Create the room (or let the first participant create it) before starting the Anam session, and check that the room name in the session request matches. |

## Related

<CardGroup cols={3}>
  <Card title="LiveKit configuration" icon="video" href="/docs/integrations/livekit/configuration">
    Configure LiveKit rooms, credentials, and avatar sessions.
  </Card>

  <Card title="Session performance" icon="gauge-high" href="/docs/resources/session-performance">
    Understand the latency indicators shown for your sessions.
  </Card>

  <Card title="Get a session" icon="brackets-curly" href="/docs/api-reference/sessions/get-session">
    Retrieve a session's exit status and other details through the API.
  </Card>
</CardGroup>
