> ## 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.

# Return current VM allocations for the authenticated organization.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/usage
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/usage:
    get:
      tags:
        - Account & System
      summary: Return current VM allocations for the authenticated organization.
      operationId: current_usage
      parameters:
        - name: limit
          in: query
          description: Allocation page size. Defaults to 50; the maximum is 100.
          required: false
          schema:
            type: integer
            format: int64
        - name: cursor
          in: query
          description: Opaque position returned as `next_cursor` by the preceding page.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Current VM allocation page grouped by API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentUsageResponse'
        '400':
          description: Invalid limit or cursor
        '401':
          description: A user API key is required
        '500':
          description: Current allocation lookup failed
components:
  schemas:
    CurrentUsageResponse:
      type: object
      required:
        - as_of
        - vm_count
        - active_totals
        - api_keys
        - next_cursor
      properties:
        active_totals:
          $ref: '#/components/schemas/AllocationTotals'
          description: Resources configured for node-assigned VMs only.
        api_keys:
          type: array
          items:
            $ref: '#/components/schemas/ApiKeyAllocations'
          description: API keys represented by this page of VM allocations.
        as_of:
          type: string
          format: date-time
        next_cursor:
          type:
            - string
            - 'null'
        vm_count:
          type: integer
          format: int64
          description: All non-deleted VMs in the organization, including sleeping VMs.
    AllocationTotals:
      type: object
      required:
        - vm_count
        - vcpus
        - memory_mib
      properties:
        memory_mib:
          type: integer
          format: int64
          description: Memory configured across those node-assigned VMs, in MiB.
        vcpus:
          type: integer
          format: int64
          description: vCPUs configured across those node-assigned VMs.
        vm_count:
          type: integer
          format: int64
          description: Number of VMs currently assigned to a node.
    ApiKeyAllocations:
      type: object
      required:
        - api_key_id
        - label
        - vm_count
        - active_totals
        - vms
      properties:
        active_totals:
          $ref: '#/components/schemas/AllocationTotals'
          description: >-
            Resources configured across all node-assigned VMs owned by this API
            key.
        api_key_id:
          type: string
          format: uuid
        label:
          type: string
        vm_count:
          type: integer
          format: int64
          description: All non-deleted VMs owned by this API key, including sleeping VMs.
        vms:
          type: array
          items:
            $ref: '#/components/schemas/VmAllocation'
          description: This page's VM allocations for the API key. One key may span pages.
    VmAllocation:
      type: object
      required:
        - vm_id
        - vcpus
        - memory_mib
        - consuming_compute
      properties:
        consuming_compute:
          type: boolean
          description: >-
            True when assigned to a node (including running or paused); false
            when sleeping.
        memory_mib:
          type: integer
          format: int64
        vcpus:
          type: integer
          format: int64
        vm_id:
          type: string
          format: uuid
  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.