Skip to content
Hoody.com

Sessions preserve cookies across multiple HTTP requests, enabling stateful interactions with APIs that rely on authentication tokens, CSRF cookies, or multi-step workflows. Use these endpoints to inspect, snapshot, or delete session state stored by the container.

Session lifecycle:

  • Created automatically on first use with a session_id
  • Cookies updated after each request that uses the session
  • Persists until explicitly deleted via the delete endpoint

Retrieve a list of all active cookie sessions, sorted by last used time. Sessions enable stateful HTTP interactions by preserving cookies across multiple requests, essential for authentication flows and stateful APIs.

NameInTypeRequiredDescription
pagequeryintegerNo1-based page number
limitqueryintegerNoItems per page (current handler returns all items when omitted)

This endpoint accepts no request body.

Terminal window
curl -X GET "https://{projectId}-{containerId}-curl-1.{server}.containers.hoody.com/api/v1/curl/sessions?page=1&limit=20" \
-H "Authorization: Bearer <token>"

Retrieve complete details of a specific cookie session including all stored cookies, creation time, and last usage timestamp.

Use cases:

  • Inspect authentication cookies
  • Debug session state issues
  • Verify cookie persistence
NameInTypeRequiredDescription
idpathstringYesSession identifier (caller-provided string)

This endpoint accepts no request body.

Terminal window
curl -X GET "https://{projectId}-{containerId}-curl-1.{server}.containers.hoody.com/api/v1/curl/sessions/sess_8f3e9a2b1c4d5e6f" \
-H "Authorization: Bearer <token>"

Retrieve only the cookie snapshot from a session (without metadata). Unique cookie names are returned as plain keys; if the same cookie name exists under multiple domain or path scopes, the snapshot uses scope-qualified keys like name@example.com/ to avoid silently dropping entries.

NameInTypeRequiredDescription
idpathstringYesSession identifier

This endpoint accepts no request body.

Terminal window
curl -X GET "https://{projectId}-{containerId}-curl-1.{server}.containers.hoody.com/api/v1/curl/sessions/sess_8f3e9a2b1c4d5e6f/cookies" \
-H "Authorization: Bearer <token>"

Permanently delete a session and all its stored cookies. This action cannot be undone.

NameInTypeRequiredDescription
idpathstringYesSession identifier to delete

This endpoint accepts no request body.

Terminal window
curl -X DELETE "https://{projectId}-{containerId}-curl-1.{server}.containers.hoody.com/api/v1/curl/sessions/sess_8f3e9a2b1c4d5e6f" \
-H "Authorization: Bearer <token>"