Skip to main content
POST
/
api
/
v1
/
processes
/
{pid}
/
signal
Send a signal
curl --request POST \
  --url https://{sandbox_id_or_name}.sandbox.tensorlake.ai/api/v1/processes/{pid}/signal \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "signal": 123
}'
{
  "success": true
}
Send a POSIX signal to a running process.

Endpoint

POST /api/v1/processes/{pid}/signal

Example Request

curl -X POST https://<sandbox-id>.sandbox.tensorlake.ai/api/v1/processes/42/signal \
  -H "Authorization: Bearer $TENSORLAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"signal": 15}'

Request Body

{
  "signal": 15
}
Common values include 15 for SIGTERM and 9 for SIGKILL.

Response

Tensorlake returns 200 OK:
{
  "success": true
}
If the process does not exist, Tensorlake returns 404 Not Found. Invalid signals or signals sent to non-running processes return 400 Bad Request.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

pid
integer<int32>
required

The operating system PID of the process.

Body

application/json
signal
integer<int32>
required

Response

Signal delivered successfully

success
boolean
required