List Sessions
Session Management
List Sessions
Get all sessions for the authenticated user.
GET
List Sessions
Overview
Returns a list of all sessions belonging to the authenticated user, including both active and completed sessions.Request
Bearer token for authentication
Response
Returns an array of session objects.Unique identifier for the session
The agent model being used
Current session statusPossible values:
initializing- Session is being set upready- Ready to receive messagesrunning- Actively executing a taskpaused- Execution is pausedcompleted- Task finished successfullyerror- Session encountered an errorterminated- Session has been deleted
ISO 8601 timestamp of session creation
Example Requests
Use Cases
Monitor Active Sessions
Clean Up Old Sessions
Session Dashboard
Build a dashboard showing all user sessions with their current status and creation time.Best Practices
Use this endpoint to prevent duplicate session creation by checking for existing active sessions