> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorlake.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Signal

> Send a POSIX signal such as `SIGTERM` or `SIGKILL` to a running process.

Send a POSIX signal to a running process.

## Endpoint

```http theme={null}
POST /api/v1/processes/{pid}/signal
```

## Example Request

```bash theme={null}
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

```json theme={null}
{
  "signal": 15
}
```

Common values include `15` for `SIGTERM` and `9` for `SIGKILL`.

## Response

Tensorlake returns `200 OK`:

```json theme={null}
{
  "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`.


## OpenAPI

````yaml post /api/v1/processes/{pid}/signal
openapi: 3.1.0
info:
  title: Tensorlake API
  description: >-
    Tensorlake Cloud APIs for Sandboxes, Document Ingestion, and Serverless
    Workflows
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.tensorlake.ai/
security:
  - bearerAuth: []
tags:
  - name: Tensorlake Cloud API
    description: >-
      Tensorlake Cloud APIs for Sandboxes, Document Ingestion, and Serverless
      Workflows
paths:
  /api/v1/processes/{pid}/signal:
    servers:
      - url: https://{identifier}.sandbox.tensorlake.ai
        description: >-
          Example sandbox proxy host for a specific running sandbox. For
          programmatic access, use the sandbox's `ingress_endpoint`.
        variables:
          identifier:
            default: example-sandbox
            description: The sandbox ID or sandbox name.
    parameters:
      - name: pid
        in: path
        description: The operating system PID of the process.
        required: true
        schema:
          type: integer
          format: int32
    post:
      tags:
        - sandbox-processes
      summary: Send a signal
      description: Send a POSIX signal such as `SIGTERM` or `SIGKILL` to a running process.
      operationId: sandbox_process_signal
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SandboxProcessSignalRequest'
      responses:
        '200':
          description: Signal delivered successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxProcessSignalResponse'
        '400':
          description: Invalid signal or process is not running
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxProxyError'
        '404':
          description: Process not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxProxyError'
components:
  schemas:
    SandboxProcessSignalRequest:
      type: object
      required:
        - signal
      properties:
        signal:
          type: integer
          format: int32
    SandboxProcessSignalResponse:
      type: object
      required:
        - success
      properties:
        success:
          type: boolean
    SandboxProxyError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        code:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````