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

# Get process by identifier

> Get information about a process by its PID or name



## OpenAPI

````yaml /reference/sandbox-api/openapi.json get /process/{identifier}
openapi: 3.0.0
info:
  description: API for manipulating filesystem, processes and network.
  title: Sandbox API
  contact: {}
  version: 0.0.1
servers:
  - url: https://{sandbox_host}
    description: >-
      Host from the sandbox's returned url, without the scheme or trailing
      slash.
    variables:
      sandbox_host:
        default: sandbox.example.com
security:
  - BearerAuth: []
paths:
  /process/{identifier}:
    get:
      tags:
        - process
      summary: Get process by identifier
      description: Get information about a process by its PID or name
      parameters:
        - description: Process identifier (PID or name)
          name: identifier
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Process information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProcessResponse'
        '404':
          description: Process not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ProcessResponse:
      type: object
      required:
        - command
        - completedAt
        - exitCode
        - logs
        - name
        - pid
        - startedAt
        - status
        - stderr
        - stdout
        - workingDir
      properties:
        command:
          type: string
          example: ls -la
        completedAt:
          description: >-
            Completion time, same format as startedAt. Empty string while the
            process runs
          type: string
          example: Wed, 01 Jan 2023 12:01:00 GMT
        exitCode:
          type: integer
          example: 0
        keepAlive:
          description: Whether scale-to-zero is disabled for this process
          type: boolean
          example: false
        logs:
          type: string
          example: logs output
        maxRestarts:
          type: integer
          example: 3
        name:
          type: string
          example: my-process
        pid:
          type: string
          example: '1234'
        restartCount:
          type: integer
          example: 2
        restartOnFailure:
          type: boolean
          example: true
        startedAt:
          description: >-
            Start time as an HTTP date (RFC 1123, e.g. Wed, 01 Jan 2023 12:00:00
            GMT)
          type: string
          example: Wed, 01 Jan 2023 12:00:00 GMT
        status:
          type: string
          enum:
            - failed
            - killed
            - stopped
            - running
            - completed
          example: running
        stderr:
          type: string
          example: stderr output
        stdin:
          description: Whether the process was started with a writable stdin pipe
          type: boolean
          example: false
        stdout:
          type: string
          example: stdout output
        workingDir:
          type: string
          example: /home/user
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: Error message
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Sandbox access token created through POST /v1/token.

````