End a terminal session
Ends a live session wherever it runs; the process relaying it closes the exec within seconds and records `exec.ended` with reason `terminated` and who ended it. Needs `org:manage`, or being the person who opened the session.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
sessionId*stringuuidIdempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255The session is ending.
curl -X POST 'https://wardn.example.com/api/v1/exec-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/terminate'Read a terminal session GET
Previous Page
Read a terminal session's recording GET
The session's output as it was shown, one JSON object per line: `t` seconds since the session started, `s` the stream (`o` stdout, `e` stderr) and `d` the bytes in base64. Keystrokes are not recorded; with a TTY the terminal's echo of them is. Each chunk is checked against its digest. Needs `audit:r