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

> Read the captured combined output for a process.

Read output that has already been captured for a process.

## Endpoint

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

## Example Request

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

## Response

Tensorlake returns `200 OK`:

```json theme={null}
{
  "pid": 42,
  "lines": [
    "Serving HTTP on 0.0.0.0 port 8080",
    "127.0.0.1 - - [06/Apr/2026 22:20:00] \"GET / HTTP/1.1\" 200 -"
  ],
  "line_count": 2
}
```

`/output` returns the combined captured lines from stdout and stderr and does not include per-line stream tags.

If you need a single stream, use [Get Process Stdout](/api-reference/v2/processes/stdout) or [Get Process Stderr](/api-reference/v2/processes/stderr). If you need stream-tagged live events, use [Follow Process Output](/api-reference/v2/processes/follow-output).


## OpenAPI

````yaml get /api/v1/processes/{pid}/output
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}/output:
    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 combined process output
      description: Read the captured combined output for a process.
      operationId: sandbox_process_output
      responses:
        '200':
          description: Captured output
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxProcessOutputResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxProxyError'
components:
  schemas:
    SandboxProcessOutputResponse:
      type: object
      required:
        - pid
        - lines
        - line_count
      properties:
        pid:
          type: integer
          format: int32
        lines:
          type: array
          items:
            type: string
        line_count:
          type: integer
          format: int32
    SandboxProxyError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        code:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````