Stop a running session
Sends a stop signal to the session: flips Redis status to `stopped`, releases queue/claim/lock, and emits a "Stop signal received" activity to the tracker. A session live on an ADOPTED session-shim lineage (its host daemon restarted and re-owned the harness) cannot be terminalized by the caller: the common release predicate holds its claim until that lineage's own terminal proof arrives. For that case the stop is DELIVERED (relay kill toward the active carrier plus the cooperative Redis rail) and the route answers 202 with `stopped:false, delivered:true, pending:"terminal_evidence"`; the session goes terminal when the daemon posts the group-reaped tombstone. 409 is reserved for a hold nothing can be delivered through (a quarantined or still-preparing lineage, or a restart hold window): retry.
AuthorizationBearer <rsk_live_*>Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.
id*stringSession id in ANY namespace: the canonical session id, the 16-char public session hash, or the tracker AgentSession id. All three resolve to the same row inside the caller's organization.
Session stopped.
application/json- response
stopped*booleansessionId*stringpreviousStatus*AgentSessionStatusFSM states for an agent session:
pending- queued, waiting for a workerclaimed- worker has claimed but not yet startedrunning- agent actively processingfinalizing- cleanup in progresscompleted- finished successfully (terminal)failed- encountered an error (terminal)stopped- stopped by user (terminal)
"pending""claimed""running""finalizing""completed""failed""stopped"newStatus*stringcurl -X POST 'https://app.rensei.ai/api/public/sessions/string/stop'{ "stopped": true, "sessionId": "string", "previousStatus": "pending", "newStatus": "string"}Get Sentry issues linked to a session
Returns up to 25 Sentry issues correlated with this session via the session's time range and associated project. Returns `{ configured: false, issues: [] }` when the org has no Sentry connection rather than erroring. The session must belong to the authenticated org.
Real-time fleet statistics (org-scoped)
Returns live worker fleet and session queue metrics for the active org. Requires a session cookie or `rsk_` API key - despite the `/api/public` prefix, this endpoint is not anonymous.