Skip to main content
POST
https://api.buntime.sh
/
execution
/
kill
curl -X POST https://api.buntime.sh/execution/kill \
  -H "Authorization: Bearer $BUNTIME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sessionId": "ses_abc123", "pid": 1234}'
{
  "killed": 1,
  "pids": [1234]
}

Request

sessionId
string
required
Session ID containing the process
pid
integer
Specific process ID to kill. If omitted, kills all processes.
Authorization
string
required
Bearer token with your API key

Response

killed
integer
Number of processes killed
pids
array
Array of killed process IDs

Example

curl -X POST https://api.buntime.sh/execution/kill \
  -H "Authorization: Bearer $BUNTIME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sessionId": "ses_abc123", "pid": 1234}'
{
  "killed": 1,
  "pids": [1234]
}