agent_sessions

show details for an agent session

Changed on

Retrieve details for a single agent session by unique slug or ID.

Integration Tip:

  • Returns the complete session structure including parsed message logs, token counts, slices, and tool execution metadata.
get/api/agent_sessions/{id}

Request

  • Base URL
    https://dev.to
  • Auth
    • API key in header api-key
    • or HTTP bearer

Path parameters

idstring required

The unique slug or ID of the agent session.

Response

successful

idinteger required
slugstring required
titlestring required
tool_namestring required

Tool that produced the session (e.g. claude_code, codex)

total_messagesinteger required
curated_countinteger required

Number of curated messages selected for display

publishedboolean required
metadataobject nullable

Session metadata (tool-specific)

messagesobject[] required

All normalized messages in the session

slicesobject[] required

Named slices grouping message ranges

created_atstring date-time required
updated_atstring date-time required
urlstring url required

Changes

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status