> ## 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.

# Get Process

> Retrieve process metadata and current status for a sandbox process.

Get the current status and metadata for one process.

## Endpoint

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

## Example Request

```bash theme={null}
curl https://<sandbox-id>.sandbox.tensorlake.ai/api/v1/processes/42 \
  -H "Authorization: Bearer $TENSORLAKE_API_KEY"
```

## Response

Tensorlake returns `200 OK` with the process metadata:

```json theme={null}
{
  "handle": 1,
  "pid": 42,
  "status": "running",
  "exit_code": null,
  "signal": null,
  "stdin_writable": false,
  "command": "python",
  "args": ["-m", "http.server", "8080"],
  "started_at": 1710000000000,
  "ended_at": null
}
```

`handle` is a daemon-local stable identifier. Route paths use the operating-system `pid`.

If the process does not exist, Tensorlake returns `404 Not Found`.


## OpenAPI

````yaml get /api/v1/processes/{pid}
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}:
    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
    get:
      tags:
        - sandbox-processes
      summary: Get a process
      description: Retrieve process metadata and current status for a sandbox process.
      operationId: sandbox_process_get
      responses:
        '200':
          description: Process metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxProcessInfo'
        '404':
          description: Process not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxProxyError'
components:
  schemas:
    SandboxProcessInfo:
      type: object
      required:
        - handle
        - pid
        - status
        - stdin_writable
        - command
        - args
        - started_at
      properties:
        handle:
          type: integer
          format: int64
        pid:
          type: integer
          format: int32
        status:
          $ref: '#/components/schemas/SandboxProcessStatus'
        exit_code:
          type:
            - integer
            - 'null'
          format: int32
        signal:
          type:
            - integer
            - 'null'
          format: int32
        stdin_writable:
          type: boolean
        command:
          type: string
        args:
          type: array
          items:
            type: string
        started_at:
          type: integer
          format: int64
        ended_at:
          type:
            - integer
            - 'null'
          format: int64
    SandboxProxyError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        code:
          type: string
    SandboxProcessStatus:
      type: string
      enum:
        - running
        - exited
        - signaled
        - oom_killed
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````