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

# Read one computer's durable metadata and current runtime state.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/computers/{computer_id}
openapi: 3.1.0
info:
  title: Vers API
  description: >-
    REST API for creating, checkpointing, branching, and managing Vers computers
    and projects.
  version: 2.0.0
servers:
  - url: https://api.vers.sh
    description: Vers API
security:
  - bearerAuth: []
tags:
  - name: Computers
    description: Create, inspect, execute commands in, sleep, wake, and delete computers.
  - name: Branches
    description: Branch one or more computers from a live computer, checkpoint, or tag.
  - name: Checkpoints
    description: Capture, inspect, tag, and delete whole-computer checkpoints.
  - name: Projects
    description: >-
      Organize computers into projects with private service networks and grouped
      restores.
  - name: Operations
    description: Inspect and stream status events for asynchronous durable operations.
  - name: Images
    description: >-
      Import and manage custom OCI images, system images, and registry
      artifacts.
  - name: Repositories
    description: Manage checkpoint repositories, tags, and public catalog entries.
  - name: Domains
    description: Register and manage custom domains.
  - name: Environment Variables
    description: Manage account-level environment variables applied to new computers.
  - name: Account & System
    description: Inspect API key identity, usage, and control-plane health.
paths:
  /api/v2/computers/{computer_id}:
    get:
      tags:
        - Computers
      summary: Read one computer's durable metadata and current runtime state.
      operationId: get_computer
      parameters:
        - name: computer_id
          in: path
          description: Computer identity
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Current computer metadata and runtime state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComputerResponse'
        '401':
          description: Missing or invalid API key
        '404':
          description: Computer not found or not visible to the caller
        '500':
          description: Durable metadata or runtime state lookup failed
        '502':
          description: Runtime owner is missing, stale, or unreachable
components:
  schemas:
    ComputerResponse:
      type: object
      description: |-
        Current tenant-visible representation of one v2 computer.

        Durable metadata is read from PostgreSQL. `state` is observed on the
        runtime-owning node when the computer is active, so this response never
        exposes the internal `remote` routing sentinel as a lifecycle state.
      required:
        - computer_id
        - owner_id
        - created_at
        - keep_alive
        - state
        - vcpu_count
        - mem_size_mib
      properties:
        computer_id:
          type: string
          format: uuid
        created_at:
          type: string
          format: date-time
        ip:
          type:
            - string
            - 'null'
          description: Private guest-network address assigned to this computer.
        keep_alive:
          type: boolean
          description: Whether inactivity-based automatic sleep is disabled.
        labels:
          type:
            - object
            - 'null'
          additionalProperties:
            type: string
          propertyNames:
            type: string
        mem_size_mib:
          type: integer
          format: int32
          description: Allocated memory in MiB, from the durable computer record.
        owner_id:
          type: string
          format: uuid
        parent_checkpoint_id:
          type:
            - string
            - 'null'
          format: uuid
          description: Checkpoint this computer was restored from, if any.
        project_id:
          type:
            - string
            - 'null'
          format: uuid
          description: Owning project. `None` identifies an Uncategorized computer.
        state:
          $ref: '#/components/schemas/VmState'
        vcpu_count:
          type: integer
          format: int32
          description: Allocated vCPUs, from the durable computer record.
    VmState:
      type: string
      description: >-
        The state of a VM


        Serializes to a flat lowercase string (`"running"`, `"sleeping"`, …),
        which

        `/status` and the API tests depend on — keep new variants unit-shaped.
      enum:
        - starting
        - booting
        - running
        - paused
        - sleeping
        - recovery_required
        - dead
        - deleting
        - deleted
        - remote
        - indeterminate
        - temporarily_unavailable
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Vers API key (`VERS_API_KEY`) sent as `Authorization: Bearer <key>`.'

````

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