API referenceChanging a session
Stop the turn
POST
Stops the turn and drops waiting messages. On a flow run's own session it also stops the run and every session it started.
bearerheader
AuthorizationBearer <token>An API token
id*stringA session id
Stopped
application/json- response
ok*unknowncurl -X POST 'http://127.0.0.1:7777/sessions/ses_6c1f2a0b9d3e4f5a6b7c/cancel'Example Response
{ "ok": true}Switch a session's model POST
From its next model call on. Without `thinking`, the level stays if the model takes it, else `off`.
List steps stopped after repeated crashes GET
Steps the server stopped running because a crash cut them off five times in a row. They wait until someone retries them. Empty when nothing is stopped.