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

# List snapshots

> A project's snapshots, newest first.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/snapshots
openapi: 3.1.0
info:
  title: envlink API
  version: 1.0.0
  description: >-
    Lease build environments, wire them to your sandbox, and keep snapshots and
    artifacts.
servers:
  - url: https://envlink-api.projectinwork.com
security:
  - bearerAuth: []
tags:
  - name: Environments
  - name: Templates
  - name: Sandboxes
  - name: Snapshots
  - name: Artifacts
  - name: Projects
  - name: Tokens
  - name: Usage
  - name: Account
paths:
  /v1/snapshots:
    get:
      tags:
        - Snapshots
      summary: List snapshots
      description: A project's snapshots, newest first.
      parameters:
        - name: project
          in: query
          schema:
            type: string
          description: The project; `default` when empty.
        - name: prefix
          in: query
          schema:
            type: string
          description: Only keys that start with this.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  project:
                    type: string
                  snapshots:
                    type: array
                    items:
                      $ref: '#/components/schemas/Snapshot'
components:
  schemas:
    Snapshot:
      type: object
      properties:
        project:
          type: string
        key:
          type: string
          examples:
            - main
        share:
          type: string
          examples:
            - src
        root:
          type: string
          description: The root tree's keyed ID.
        keyVersion:
          type: integer
        segments:
          type: array
          items:
            $ref: '#/components/schemas/Segment'
        files:
          type: integer
        bytes:
          type: integer
        objects:
          type: integer
        sealedBytes:
          type: integer
        lease:
          type: string
        createdBy:
          type: string
        created:
          type: string
          format: date-time
    Segment:
      type: object
      properties:
        name:
          type: string
        size:
          type: integer
        objects:
          type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A CLI token or an organization API key.

````

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