Skip to main content
Every session the Registry holds is readable by ID. This guide shows you how to list sessions for a registered agent, read a single session’s metadata, and retrieve its full transcript.

Before you begin

Before you start, make sure you have:
  • Bearer credential and shell variables: ATLAN_GATEWAY_URL and ATLAN_TOKEN set in your shell. See Connect to Agent Registry.
  • Agent ID: The AGENT_ID of a registered agent whose sessions you want to inspect.
  • Session ID (optional): If you already know which session to read, export SESSION_ID now. If not, the first step below retrieves it.

Inspect your sessions

1

List sessions for your agent

Filter sessions by agent to see all runs the Registry has recorded for it. Pass subject_kind and subject_id as query parameters.
The response is a paginated list. Each item includes the session id, name, session_status, model_id, stop_reason, and source_created_at. Pick the session ID you want to inspect and set it:
2

Read session metadata

A session record holds everything about the run except its messages: which agent ran, which model was used, how it ended, and when it happened.
Key fields to look at:
3

Retrieve transcript

Messages are stored separately from session metadata. Retrieve them in one call by session ID.
Messages are ordered by sequence_number. Each message has a message_role (user or assistant) and a content field with the turn text.Confirm the message count, roles, and order match what you expect. If messages are missing, check whether they were recorded with the correct session_id path and sequence_number.

See also

Work with agents: explore the full agent and session API, including status filtering, bulk operations, and the session lifecycle. Errors and retries: error codes, causes, and when to retry.