UBIK Agent will launch soon, join the waitlist to get access!
Python
import requests url = "https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/stop" headers = {"X-API-KEY": "<api-key>"} response = requests.post(url, headers=headers) print(response.text)
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Stops the ongoing agent generation for the specified session. If a tool call is in progress, the system will wait for its completion before stopping to ensure state consistency. An ‘agent_stop_requested’ event will be emitted in the session stream.
Successful Response
Was this page helpful?