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

# Get a sandbox



## OpenAPI

````yaml https://api.thundercompute.com:8443/openapi.json get /sandboxes/{id}
openapi: 3.1.0
info:
  contact:
    email: support@thundercompute.com
    name: Thunder Compute API Support
    url: https://thundercompute.com/support
  description: Retrieve current GPU availability using mode-less spec keys
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: http://swagger.io/terms/
  title: Thunder Compute API
  version: '1.0'
servers:
  - description: Production server
    url: https://api.thundercompute.com:8443/v1
  - description: Production server
    url: https://api.thundercompute.com:8443
security: []
externalDocs:
  description: ''
  url: ''
paths:
  /sandboxes/{id}:
    get:
      tags:
        - Sandboxes
      summary: Get a sandbox
      parameters:
        - description: Sandbox ID
          in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/thundertypes.SandboxGetResponse'
          description: OK
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/thundertypes.ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/thundertypes.ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/thundertypes.ErrorResponse'
          description: Not Found
      security:
        - ApiKeyAuth: []
components:
  schemas:
    thundertypes.SandboxGetResponse:
      properties:
        created_at:
          type: string
        expires_at:
          type: string
        failure:
          type: string
        failure_code:
          description: >-
            FailureCode and Failure explain a failed sandbox. Without them a
            caller

            sees only "failed" and cannot tell a capacity refusal from a broken

            control plane, which are acted on very differently.
          type: string
        id:
          type: string
        lifetime:
          $ref: '#/components/schemas/thundertypes.SandboxLifetime'
        logs:
          items:
            $ref: '#/components/schemas/thundertypes.SandboxLog'
          type: array
          uniqueItems: false
        name:
          type: string
        network_policy:
          $ref: '#/components/schemas/thundertypes.SandboxNetworkPolicy'
        spec:
          $ref: '#/components/schemas/thundertypes.SandboxResourceSpec'
        ssh:
          $ref: '#/components/schemas/thundertypes.SandboxSSHConnection'
        status:
          $ref: '#/components/schemas/thundertypes.SandboxStatus'
        stopped_at:
          type: string
      required:
        - created_at
        - id
        - lifetime
        - name
        - network_policy
        - spec
        - status
      type: object
    thundertypes.ErrorResponse:
      properties:
        code:
          example: 400
          type: integer
        error:
          example: invalid_request
          type: string
        message:
          example: The request is malformed
          type: string
      type: object
    thundertypes.SandboxLifetime:
      properties:
        enforce_ttl:
          type: boolean
        max_grace_seconds:
          type: integer
        max_ttl_seconds:
          type: integer
      type: object
    thundertypes.SandboxLog:
      properties:
        data:
          $ref: '#/components/schemas/thundertypes.SandboxLogData'
        event:
          $ref: '#/components/schemas/thundertypes.SandboxLogEvent'
        id:
          type: string
        sandbox_id:
          type: string
        timestamp:
          type: string
      required:
        - event
        - id
        - sandbox_id
        - timestamp
      type: object
    thundertypes.SandboxNetworkPolicy:
      properties:
        cidr_allowlist:
          items:
            type: string
          type: array
          uniqueItems: false
        domain_allowlist:
          items:
            type: string
          type: array
          uniqueItems: false
        internet_access:
          $ref: '#/components/schemas/thundertypes.SandboxInternetAccess'
      required:
        - internet_access
      type: object
    thundertypes.SandboxResourceSpec:
      properties:
        cpu_count:
          type: integer
        gpu_count:
          type: integer
        gpu_type:
          $ref: '#/components/schemas/thundertypes.SandboxGPUType'
        memory_gib:
          type: integer
        storage_gib:
          type: integer
      required:
        - cpu_count
        - memory_gib
        - storage_gib
      type: object
    thundertypes.SandboxSSHConnection:
      properties:
        host:
          type: string
        port:
          type: integer
        user:
          type: string
      type: object
    thundertypes.SandboxStatus:
      enum:
        - created
        - ready
        - finished
        - failed
      type: string
      x-enum-varnames:
        - SandboxStatusCreated
        - SandboxStatusReady
        - SandboxStatusFinished
        - SandboxStatusFailed
    thundertypes.SandboxLogData:
      properties:
        message:
          type: string
        node_name:
          type: string
        phase:
          type: string
      type: object
    thundertypes.SandboxLogEvent:
      enum:
        - created
        - scheduled
        - started
        - ready
        - finished
        - failed
        - info
      type: string
      x-enum-varnames:
        - SandboxLogEventCreated
        - SandboxLogEventScheduled
        - SandboxLogEventStarted
        - SandboxLogEventReady
        - SandboxLogEventFinished
        - SandboxLogEventFailed
        - SandboxLogEventInfo
    thundertypes.SandboxInternetAccess:
      enum:
        - closed
        - open
        - restricted
      type: string
      x-enum-varnames:
        - SandboxInternetAccessClosed
        - SandboxInternetAccessOpen
        - SandboxInternetAccessRestricted
    thundertypes.SandboxGPUType:
      enum:
        - A6000
        - A100
        - H100
        - A6000
        - A100
        - H100
      type: string
      x-enum-varnames:
        - SandboxGPUTypeA6000
        - SandboxGPUTypeA100
        - SandboxGPUTypeH100
  securitySchemes:
    ApiKeyAuth:
      description: >-
        Bearer token authentication. Provide your API token prefixed with
        "Bearer ", e.g. "Bearer your-api-token".
      in: header
      name: Authorization
      type: apiKey

````