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

# Look up a tenant OCI image by exact source digest.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/images/by-source
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/images/by-source:
    get:
      tags:
        - Images
      summary: Look up a tenant OCI image by exact source digest.
      operationId: v2_find_image_by_source
      parameters:
        - name: kind
          in: query
          description: Media identity namespace of the exact verified source alias.
          required: true
          schema:
            $ref: '#/components/schemas/AssertedOciImageSourceIdentityKind'
        - name: digest
          in: query
          description: Exact server-verified Docker config or selected-manifest digest.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Exact verified source-alias resolution
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FindTenantOciImageBySourceResponse'
        '400':
          description: Invalid source identity
        '401':
          description: Missing or invalid API key
        '503':
          description: No current compatible guest platform is registered
components:
  schemas:
    AssertedOciImageSourceIdentityKind:
      type: string
      enum:
        - config
        - manifest
    FindTenantOciImageBySourceResponse:
      type: object
      description: |-
        Exact source-alias resolution. The echoed identity is a protocol witness
        that lets callers reject a successful response to a different lookup.
      required:
        - matched_source_identity
      properties:
        image:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TenantOciImageResponse'
        matched_source_identity:
          $ref: '#/components/schemas/AssertedOciImageSourceIdentityRequest'
    TenantOciImageResponse:
      type: object
      required:
        - image_id
        - name
        - source_digest
        - identity_sha256
        - rootfs_content_sha256
        - rootfs_size_bytes
        - guest_platform_id
        - image_process_spec
        - holdopen_applied
        - architecture
        - created_at
      properties:
        architecture:
          type: string
        client_source_identity:
          type:
            - string
            - 'null'
          description: |-
            Legacy diagnostic copy of the importing client's asserted source
            identity. New cache lookup uses server-verified revision aliases.
        created_at:
          type: string
          format: date-time
        exposed_tcp_ports:
          type:
            - array
            - 'null'
          items:
            type: integer
            format: int32
            minimum: 0
          description: >-
            TCP ports the image declares with `EXPOSE`, ascending, keeping at
            most

            the lowest 64. `null` when the image's artifact was converted before

            ports were recorded.
        guest_platform_id:
          type: string
          format: uuid
        holdopen_applied:
          type: boolean
        identity_sha256:
          type: string
        image_id:
          type: string
          format: uuid
        image_process_spec: {}
        name:
          type: string
        rootfs_content_sha256:
          type: string
        rootfs_size_bytes:
          type: integer
          format: int64
        source_digest:
          type: string
          description: >-
            Immutable source digest. Strict local uploads use the verified
            Docker

            config and public images use the selected registry manifest.
            Historical

            upload rows retain their archive digest.
    AssertedOciImageSourceIdentityRequest:
      type: object
      required:
        - kind
        - digest
      properties:
        digest:
          type: string
          description: |-
            Canonical lowercase `sha256:` digest selected from the local image
            store.
        kind:
          $ref: '#/components/schemas/AssertedOciImageSourceIdentityKind'
          description: |-
            Media identity represented by `digest`. Config and manifest digests
            intentionally occupy separate namespaces.
      additionalProperties: false
  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.