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

# List snapshots for a job



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/jobs/{name}/backups
openapi: 3.1.0
info:
  description: >-
    snapr is a self-hosted backup service. This document describes its JSON HTTP
    API.
  title: snapr API
  version: dev
servers: []
security: []
paths:
  /api/v1/jobs/{name}/backups:
    get:
      tags:
        - Backups
      summary: List snapshots for a job
      operationId: listJobBackups
      parameters:
        - description: Job name as declared in snapr.yaml
          in: path
          name: name
          required: true
          schema:
            description: Job name as declared in snapr.yaml
            examples:
              - postgres-nightly
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListBackupsOutputBody'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - session: []
components:
  schemas:
    ListBackupsOutputBody:
      additionalProperties: false
      properties:
        backups:
          items:
            $ref: '#/components/schemas/BackupFile'
          type:
            - array
            - 'null'
        job:
          type: string
      required:
        - job
        - backups
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    BackupFile:
      additionalProperties: false
      properties:
        createdAt:
          type: string
        fullDownloadSupported:
          type: boolean
        id:
          type: string
        isSplit:
          type: boolean
        jobName:
          type: string
        name:
          type: string
        partsCount:
          format: int64
          type: integer
        path:
          type: string
        size:
          format: int64
          type: integer
        storageType:
          type: string
      required:
        - id
        - jobName
        - name
        - path
        - size
        - createdAt
        - storageType
        - isSplit
        - fullDownloadSupported
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    session:
      description: Session JWT issued by POST /auth/login. Public endpoints ignore it.
      in: cookie
      name: snapr_session
      type: apiKey

````