Skip to main content
POST
/
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]
}

Documentation Index

Fetch the complete documentation index at: https://docs.buntime.sh/llms.txt

Use this file to discover all available pages before exploring further.

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]
}