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

# Get hosted clone session status



## OpenAPI

````yaml /api-reference/openapi.json get /api/sessions/{sessionId}
openapi: 3.1.0
info:
  title: Archal API
  summary: >-
    Public API for Archal CLI, session, trace, result, and runtime clone
    integrations.
  description: >-
    Archal provisions service-shaped clones of third-party services so AI agents
    can be tested before they touch production. This spec covers Archal-owned
    control-plane endpoints and the runtime proxy shape agents use to call clone
    APIs.
  version: 0.3.0
servers:
  - url: https://archal.ai
    description: Archal web and CLI API
  - url: https://api.archal.ai
    description: Hosted runtime proxy
security:
  - archalToken: []
tags:
  - name: Auth
    description: CLI and device authentication.
  - name: Catalog
    description: Clone and scenario discovery.
  - name: Sessions
    description: Hosted clone session lifecycle.
  - name: Results
    description: Run, trace, and test-result reporting.
  - name: Runtime
    description: Direct calls into a running clone.
paths:
  /api/sessions/{sessionId}:
    get:
      tags:
        - Sessions
      summary: Get hosted clone session status
      operationId: getSession
      parameters:
        - $ref: '#/components/parameters/SessionId'
      responses:
        '200':
          description: Current session status and endpoints.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionSummary'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    SessionId:
      name: sessionId
      in: path
      required: true
      schema:
        type: string
        examples:
          - env_12345
  schemas:
    SessionSummary:
      type: object
      required:
        - sessionId
        - status
        - cloneIds
        - endpoints
        - apiBaseUrls
        - createdAt
        - expiresAt
      properties:
        sessionId:
          type: string
        status:
          type: string
          examples:
            - starting
            - running
            - ended
            - failed
        alive:
          type: boolean
        cloneIds:
          type: array
          items:
            type: string
        endpoints:
          type: object
          additionalProperties:
            type: string
            format: uri
        mcp:
          type: object
          additionalProperties:
            type: string
            format: uri
        apiBaseUrls:
          type: object
          additionalProperties:
            type: string
            format: uri
        resolvedSeeds:
          type: object
          additionalProperties:
            type: string
        evidence:
          $ref: '#/components/schemas/JsonObject'
        runtimeProvider:
          type: string
        scenarioId:
          type:
            - string
            - 'null'
        batchId:
          type:
            - string
            - 'null'
        createdAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        endedAt:
          type:
            - string
            - 'null'
          format: date-time
        lastError:
          type:
            - string
            - 'null'
      additionalProperties: true
    JsonObject:
      type: object
      additionalProperties: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        message:
          type: string
        detail:
          type: string
      additionalProperties: true
  responses:
    Unauthorized:
      description: Missing, invalid, or expired Archal token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: Authenticated user cannot access the requested resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    archalToken:
      type: http
      scheme: bearer
      bearerFormat: Archal API token

````