# List agent sessions
Source: https://docs.file.ai/api-reference/endpoint/list-agent-sessions

> Lists the sessions belonging to this API key's workspace, newest first.

get /prod/v2/agent/sessions

Lists the sessions belonging to this API key's workspace, newest first.

Cursor-paginated: read pagination.nextCursor from the response and send
it back as ?cursor= for the next page, until hasMore is false. A cursor
is bound to the workspace it was minted for.

Rows carry no run status — resolving it costs a query per session. Read a
single session when you need to know whether it can take a turn.
