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

# Connect to a box



## OpenAPI

````yaml /api-reference/openapi/box.openapi.json post /boxes/{containerId}/connect
openapi: 3.0.0
info:
  title: levers9 box API
  version: 1.0.0
  description: >-
    REST view of the levers9 box gRPC service, served by the controlplane on
    port 1994 under /api/v1/controlplane. Authenticate with `Authorization:
    Bearer <token>`. The older /pods paths still answer.
servers:
  - url: https://levers9.uselevers.com
    description: local controlplane
  - url: https://api.uselevers.com
    description: hosted
security:
  - bearer: []
tags:
  - name: BoxService
paths:
  /boxes/{containerId}/connect:
    post:
      tags:
        - BoxService
      summary: Connect to a box
      operationId: BoxService_SandboxConnect
      parameters:
        - name: containerId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BoxServiceSandboxConnectBody'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/boxBoxSandboxConnectResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rpcStatus'
components:
  schemas:
    BoxServiceSandboxConnectBody:
      type: object
    boxBoxSandboxConnectResponse:
      type: object
      properties:
        ok:
          type: boolean
        errorMsg:
          type: string
        stubId:
          type: string
    rpcStatus:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/protobufAny'
    protobufAny:
      type: object
      properties:
        '@type':
          type: string
      additionalProperties: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.