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.
Authorization
rsk_Bearer Rensei API key. Format: rsk_live_<random>. Generated in Settings or via POST /api/org/{orgId}/keys. Used by CLI (af), daemon, and programmatic integrations.
In: header
Path Parameters
16-char public session hash.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/public/sessions/string/stop"{
"stopped": true,
"sessionId": "string",
"previousStatus": "pending",
"newStatus": "string"
}{
"error": "Session not found"
}{
"error": "Session not found"
}{
"error": "Session not found"
}Send a prompt to a running session
Re-queues the session with the supplied prompt text so the running (or paused) agent picks it up on its next poll cycle. Also resets terminal-state sessions to `pending` before re-dispatching.
Get session activity time-series
Three access modes: 1. Worker JWT with `?sessionId=<rawLinearSessionId>`. 2. Unauthenticated with `?sessionId=<rawId>&sessionHash=<32-hex>`. 3. Authenticated CLI/dashboard with `?sessionId=<rawOrHashedId>` + `rsk_` bearer or session cookie.