Rensei docs

Mark an execution shell handled (or un-handled) for the calling viewer.

Per-viewer inbox state for one execution shell. VIEWER STATE ONLY: it records that a person dealt with the row and never acknowledges, closes, stops or otherwise touches the execution itself, and it advances no event or a2a cursor. Idempotent - repeating the same value is a no-op that returns the same body. The shell’s organization is resolved from the shell, not from the caller’s active workspace, because a user-scoped inbox routinely shows rows from other organizations. A caller who cannot see the shell receives 404.

POST
/api/execution-shells/{id}/handled

Authorization

headerAuthorizationBearer <WorkOS user access token>

WorkOS user access token created by the Rensei CLI. The authenticated organization is resolved from membership and may be narrowed with X-Rensei-Org.

Path Parameters

id*string

Shell id: session:<sessionId>, instance:<instanceId> or interactive:<sessionId>.

Length1 <= length

Request Body

application/json
  1. body
handled*boolean

true records the row as handled by this viewer; false clears it.

Response Body

The viewer state now recorded for this shell.

application/json
  1. response
id*string
orgId*string
handledAt*|

ISO-8601 when handled, null when cleared. Mirrors the list row’s field.

Example Request
curl -X POST 'https://app.rensei.ai/api/execution-shells/string/handled' \  -H 'Content-Type: application/json' \  -d '{  "handled": true}'
Example Response
{  "id": "string",  "orgId": "string",  "handledAt": "string"}