Rensei docs
API ReferenceWorker Protocol

Fetch latest recovery packet for crash resumption

Returns the most recently generated recovery packet for this session. Pass `?resume=true` to additionally mark the packet as consumed so the chain does not re-use it. Auth: WorkOS session cookie (`getUser()`). Dashboard/browser only.

GET
/api/sessions/{id}/recovery-packet

Authorization

cookieAuth
wos-session<token>

WorkOS AuthKit session cookie. Required by browser-facing dashboard routes (recovery-packet, recovery-chain). Not usable from CLI or programmatic callers without an active WorkOS browser session.

In: cookie

Path Parameters

id*string

Query Parameters

resume?string

When "true", marks the packet as resumed.

Value in"true"

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/sessions/string/recovery-packet"
{}
{
  "error": "Session not found"
}
{
  "error": "Session not found"
}