agent_sessions

list the authenticated user's agent sessions

Changed on

Retrieve a list of the authenticated user's agent sessions.

Agent Sessions Overview:

  • Agent sessions represent coding conversation transcripts uploaded from CLI tools (like Claude Code).
  • Used by the developer portal to render interactive walkthroughs or session summaries.
  • Requires authentication.
get/api/agent_sessions

Request

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

Response

successful

idinteger required
slugstring required
titlestring required
tool_namestring required

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

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

Changes