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

# Get authenticated user/org info.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/whoami
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/whoami:
    get:
      tags:
        - Account & System
      summary: Get authenticated user/org info.
      operationId: whoami
      responses:
        '200':
          description: The principal behind the presented API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhoamiResponse'
        '401':
          description: Missing or invalid API key
components:
  schemas:
    WhoamiResponse:
      type: object
      description: >-
        Response body for the caller-identity endpoint.


        Identifies the principal (user + organization) behind the bearer token
        used

        for the request, plus minimal metadata about the API key itself.


        The endpoint is read-only and requires only a valid API key — useful for

        answering questions like "whose account does this key belong to?"
        without

        needing direct database access. Modeled after GitHub's `GET /user`.
      required:
        - api_key
        - user
        - org
      properties:
        api_key:
          $ref: '#/components/schemas/WhoamiApiKey'
        org:
          $ref: '#/components/schemas/WhoamiOrg'
        user:
          $ref: '#/components/schemas/WhoamiUser'
    WhoamiApiKey:
      type: object
      required:
        - id
        - label
        - created_at
        - project_restricted
        - project_ids
      properties:
        created_at:
          type: string
          format: date-time
        expires_at:
          type:
            - string
            - 'null'
          format: date-time
        id:
          type: string
          format: uuid
        label:
          type: string
        max_memory_mib:
          type:
            - integer
            - 'null'
          format: int64
        max_vcpus:
          type:
            - integer
            - 'null'
          format: int32
        project_ids:
          type: array
          items:
            type: string
            format: uuid
          description: >-
            Active projects granted to a restricted key. Empty is meaningful
            when

            `project_restricted` is true.
        project_restricted:
          type: boolean
          description: False for backward-compatible organization-wide keys.
    WhoamiOrg:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
    WhoamiUser:
      type: object
      required:
        - id
        - email
        - user_name
      properties:
        email:
          type: string
        id:
          type: string
          format: uuid
        user_name:
          type: string
  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.