# Get an agent session
Source: https://docs.file.ai/api-reference/endpoint/get-an-agent-session

> Returns one session and the status of its most recent run.

get /prod/v2/agent/sessions/{session_id}

Returns one session and the status of its most recent run.

run_status is how you tell whether the session can take a turn: QUEUED
and RUNNING mean a run is in flight and asking is a 409; every other
value — including null, for a session that has never run — means it is
free.

A run whose worker died sends no terminal event, so a run that stopped
reporting is reconciled to STALE when you read the session. Reading it
is therefore how a session stuck behind a dead run becomes usable again.
