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

# List project snapshots

> List recent VM snapshots built for a project.



## OpenAPI

````yaml https://api.tembo.io/public-api/openapi/public get /v1/projects/{projectId}/snapshots
openapi: 3.1.0
info:
  title: Tembo Public API
  description: >-
    Manage agents, sessions, repositories, and organization resources with the
    Tembo API.
  version: 1.0.0
servers:
  - url: https://api.tembo.io
    description: Tembo API
  - url: https://{deployment-origin}/api/public-api
    description: Self-hosted Tembo
    variables:
      deployment-origin:
        default: tembo.example.com
        description: Hostname of your self-hosted Tembo deployment
security: []
paths:
  /v1/projects/{projectId}/snapshots:
    get:
      tags:
        - Projects
      summary: List project snapshots
      description: List recent VM snapshots built for a project.
      operationId: listProjectSnapshots
      parameters:
        - in: path
          name: projectId
          schema:
            type: string
            minLength: 1
            maxLength: 255
          required: true
        - in: query
          name: cursor
          schema:
            type: string
            minLength: 1
            maxLength: 255
          description: >-
            Continuation cursor from the previous response nextCursor. Omit for
            the first page; null nextCursor means there are no more pages.
        - in: query
          name: limit
          schema:
            default: 50
            type: integer
            minimum: 1
            maximum: 100
          description: >-
            Maximum number of items to return in one page. Use nextCursor from
            the response to fetch more items.
      responses:
        '200':
          description: List project snapshots
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        createdAt:
                          type: string
                          format: date-time
                          pattern: >-
                            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                        id:
                          type: string
                          minLength: 1
                          maxLength: 255
                        isActive:
                          type: boolean
                        name:
                          type:
                            - string
                            - 'null'
                        pinnedAt:
                          anyOf:
                            - type: string
                              format: date-time
                              pattern: >-
                                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                            - type: 'null'
                        updatedAt:
                          type: string
                          format: date-time
                          pattern: >-
                            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                        automaticSizing:
                          type: boolean
                        buildDurationMs:
                          anyOf:
                            - type: number
                              minimum: 0
                            - type: 'null'
                        builtAt:
                          anyOf:
                            - type: string
                              format: date-time
                              pattern: >-
                                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                            - type: 'null'
                        cpu:
                          anyOf:
                            - type: integer
                              exclusiveMinimum: 0
                              maximum: 9007199254740991
                            - type: 'null'
                        diskSizeGb:
                          anyOf:
                            - type: number
                              exclusiveMinimum: 0
                            - type: 'null'
                        hasSetupScript:
                          type:
                            - boolean
                            - 'null'
                        includesRepos:
                          type:
                            - boolean
                            - 'null'
                        isKvm:
                          type:
                            - boolean
                            - 'null'
                        memoryMb:
                          anyOf:
                            - type: integer
                              exclusiveMinimum: 0
                              maximum: 9007199254740991
                            - type: 'null'
                        projectId:
                          type: string
                          minLength: 1
                          maxLength: 255
                        rebuildOfSnapshotId:
                          anyOf:
                            - type: string
                              minLength: 1
                              maxLength: 255
                            - type: 'null'
                        repositoryIds:
                          anyOf:
                            - type: array
                              items:
                                type: string
                                minLength: 1
                                maxLength: 255
                            - type: 'null'
                        setupScript:
                          anyOf:
                            - type: string
                              maxLength: 100000
                            - type: 'null'
                        size:
                          anyOf:
                            - type: string
                              enum:
                                - nano
                                - micro
                                - small
                                - medium
                                - large
                                - xl
                                - xxl
                                - ultra
                            - type: 'null'
                        sizeBytes:
                          anyOf:
                            - type: string
                              pattern: ^\d+$
                            - type: 'null'
                        trigger:
                          anyOf:
                            - type: string
                              enum:
                                - manual
                                - scheduled
                                - rebuild
                                - manager_reconcile
                                - admin
                            - type: 'null'
                      required:
                        - createdAt
                        - id
                        - isActive
                        - name
                        - pinnedAt
                        - updatedAt
                        - automaticSizing
                        - buildDurationMs
                        - builtAt
                        - cpu
                        - diskSizeGb
                        - hasSetupScript
                        - includesRepos
                        - isKvm
                        - memoryMb
                        - projectId
                        - rebuildOfSnapshotId
                        - repositoryIds
                        - setupScript
                        - size
                        - sizeBytes
                        - trigger
                      additionalProperties: false
                  nextCursor:
                    anyOf:
                      - type: string
                        minLength: 1
                        maxLength: 255
                      - type: 'null'
                required:
                  - items
                  - nextCursor
                additionalProperties: false
        '400':
          description: >-
            Invalid request or missing required organization or user
            information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Project resource not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '409':
          description: Project resource conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '500':
          description: Project operation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
      security:
        - apiKey: []
      x-codeSamples:
        - lang: typescript
          label: TypeScript SDK
          source: |
            import Tembo from '@tembo-io/sdk';

            const client = new Tembo();

            const snapshot = await client.projects.snapshots.list('projectId', {
              limit: 50,
            });
        - lang: rust
          label: Rust SDK
          source: >
            use tembo_rs::*;


            let client = Tembo::from_env()?;


            let response =
            client.projects().snapshots().list("example").send().await?;
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````

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