Rensei docs
API ReferenceInteractive sessions

Re-bind a paused-but-alive interactive session back to active.

Manual counterpart to the relay host_connected CAS: flips a paused/unknown row back to active on evidence other than a live relay handshake (the caller - rensei session rebind - has already verified the local session-shim registry record and harness pid are alive). Idempotent: rebinding an already-active session returns rebound:false with status active and no write. Refuses (409) a terminal row (ended/failed) or one with recorded terminal evidence for this session's shim lineage - a resolved recovery obligation, OR a restart-fence-linked terminal observation, whichever exists - never resurrects either. Single-session granularity only.

POST
/api/interactive-sessions/{id}/rebind

Authorization

headerAuthorizationBearer <rsk_live_*>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

Path Parameters

id*string

The session id (agent_sessions.session_id).

Length1 <= length

Response Body

Rebound, or already active.

application/json
  1. response
sessionId*string
rebound*boolean

True only when this call actually flipped the row to active.

status*string
previousStatus*|

The status before this call, or null when already active.

Example Request
curl -X POST 'https://app.rensei.ai/api/interactive-sessions/string/rebind'
Example Response
{  "sessionId": "string",  "rebound": true,  "status": "active",  "previousStatus": "string"}