Agents
Kill a run
Forcefully kills a specific running agent instance. The kill operation behaves differently based on the current state:
- First call — initiates a graceful stop (equivalent to the stop-run endpoint).
- Second call — if the run is still stopping, forces immediate termination of the server process.
Use this endpoint when a normal stop is not responding or when you need to force-terminate a stuck Run.
POST
Kill a running agent
Authorizations
API Key authorization header. Example: "Authorization: ApiKey {your-api-key}"
OAuth 2.0 Bearer token. Example: "Authorization: Bearer {access-token}"
Path Parameters
The ID of the agent that contains the run
The ID of the run to kill
Response
The kill command was successfully sent