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

# Get the sandbox identity and resolved policy



## OpenAPI

````yaml /openapi.json get /api/sandbox
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 14.0.2
servers: []
security: []
paths:
  /api/sandbox:
    get:
      tags:
        - sandbox
      summary: Get the sandbox identity and resolved policy
      operationId: get_api_sandbox
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/SandboxInfo'
                required:
                  - data
                type: object
          description: Success.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SandboxInfo:
      description: >-
        Sandbox identity plus the always-present resolved ``policy``.

        ``provider``/``module`` are ``null`` and ``sessions`` is 0 when no
        provider is

        registered (``present`` false).
      properties:
        module:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Module
        policy:
          $ref: '#/components/schemas/SandboxPolicy'
        present:
          title: Present
          type: boolean
        provider:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Provider
        sessions:
          title: Sessions
          type: integer
      required:
        - present
        - sessions
        - policy
      title: SandboxInfo
      type: object
    Error:
      properties:
        code:
          description: >-
            Stable machine-readable reason a client keys a dedicated error state
            on, present on refusals that opt in (e.g. a 501 not-configured
            refusal). Optional: absent when the error carries only a
            human-readable message.
          type: string
        error:
          type: string
      required:
        - error
      type: object
    SandboxPolicy:
      description: >-
        The resolved sandbox policy surfaced to external consumers: the network

        ``egress`` ceiling, the ``isolation`` floor, the ``scrub_transcript``
        flag and

        the ``durable`` gate. Present regardless of whether a provider is
        registered.
      properties:
        durable:
          title: Durable
          type: boolean
        egress:
          title: Egress
          type: string
        isolation:
          title: Isolation
          type: string
        scrub_transcript:
          title: Scrub Transcript
          type: boolean
      required:
        - egress
        - isolation
        - scrub_transcript
        - durable
      title: SandboxPolicy
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````