Sessions persist cookies and authentication state across multiple HTTP requests, enabling stateful interactions with APIs that require login flows or session-based authentication. Each session stores a cookie jar that is automatically updated after each request, allowing subsequent requests to reuse authentication tokens and session identifiers.
Use the session management endpoints to inspect existing sessions, retrieve stored cookies for debugging, or clean up sessions that are no longer needed.
Session lifecycle:
Created automatically on first request that includes a session_id
Cookies are updated after each request that uses the session
Persists until explicitly deleted via the delete endpoint
Retrieve a paginated list of all active cookie sessions, sorted by last used time.
Name In Type Required Description pagequery integer No 1-based page number limitquery integer No Items per page (when omitted, the handler returns all items)
"id" : " sess_a1b2c3d4e5f6 " ,
"session_token" : " abc123def456 " ,
"created_at" : " 2026-01-15T10:30:00Z " ,
"last_used" : " 2026-01-15T14:22:18Z " ,
"domain" : " api.example.com " ,
"id" : " sess_f6e5d4c3b2a1 " ,
"csrf_token" : " tok_9988776655 "
"created_at" : " 2026-01-14T09:15:42Z " ,
"last_used" : " 2026-01-15T08:05:11Z "
"error" : " STORAGE_ERROR " ,
"message" : " Failed to read sessions "
Error Code Title Description Resolution STORAGE_ERRORStorage read failed Unable to read sessions from persistent storage Check storage permissions and disk availability
for session in client.curl.sessions. listIterator ():
print ( session.id , session.last_used )
# With explicit pagination
for session in client.curl.sessions. listIterator ( page = 1 , limit = 20 ):
Retrieve complete details for a specific cookie session, including all stored cookies, creation time, and last usage timestamp.
Name In Type Required Description idpath string Yes Session identifier (caller-provided string)
"id" : " sess_a1b2c3d4e5f6 " ,
"session_token" : " abc123def456 " ,
"created_at" : " 2026-01-15T10:30:00Z " ,
"last_used" : " 2026-01-15T14:22:18Z " ,
"domain" : " api.example.com " ,
"value" : " Bearer xyz789 " ,
"domain" : " api.example.com " ,
"error" : " SESSION_NOT_FOUND " ,
"message" : " Session not found "
Error Code Title Description Resolution SESSION_NOT_FOUNDSession does not exist No session found with the provided ID Verify session ID using listSessions or create new session
"error" : " STORAGE_ERROR " ,
"message" : " Failed to read session "
Error Code Title Description Resolution STORAGE_ERRORStorage read failed Failed to read session data from storage Check storage integrity and retry
session = client.curl.sessions. get ( " sess_a1b2c3d4e5f6 " )
Retrieve only the cookie snapshot from a session, without metadata. Unique cookie names are returned as plain keys. When the same cookie name exists under multiple domain/path scopes, the snapshot uses scope-qualified keys such as name@example.com/ to avoid silently dropping entries.
Name In Type Required Description idpath string Yes Session identifier
"session_token" : " abc123def456 " ,
"csrf_token@example.com/" : " tok_9988776655 "
"error" : " SESSION_NOT_FOUND " ,
"message" : " Session not found "
Error Code Title Description Resolution SESSION_NOT_FOUNDSession does not exist No session found with the provided ID Verify session ID using listSessions
"error" : " STORAGE_ERROR " ,
"message" : " Failed to read cookies "
Error Code Title Description Resolution STORAGE_ERRORStorage read failed Failed to read session cookies from storage Check storage permissions and retry
cookies = client.curl.sessions. getCookies ( " sess_a1b2c3d4e5f6 " )
Permanently delete a session and all its stored cookies. This action cannot be undone.
Name In Type Required Description idpath string Yes Session identifier to delete
"id" : " sess_a1b2c3d4e5f6 "
"error" : " SESSION_NOT_FOUND " ,
"message" : " Session not found "
Error Code Title Description Resolution SESSION_NOT_FOUNDSession does not exist Cannot delete session that doesn’t exist Verify session ID using listSessions endpoint
"error" : " STORAGE_ERROR " ,
"message" : " Failed to delete session "
Error Code Title Description Resolution STORAGE_ERRORStorage delete failed Session exists but could not be deleted from storage Check storage permissions and retry operation
client.curl.sessions. delete ( " sess_a1b2c3d4e5f6 " )