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

# List Backups for a Site

> Retrieves a list of all available configuration backup files for a specific site, sorted from newest to oldest. This allows you to see the entire history of captured configurations for a device.



## OpenAPI

````yaml /api/en/backups.yaml get /backup/{siteId}
openapi: 3.0.3
info:
  title: Altostrat Backups API
  version: 1.0.0
  description: >-
    Manage and retrieve configuration backups for MikroTik sites through the
    public `/backup` gateway path. Use these endpoints to list backup files,
    request a new backup, download a backup, and discover subnets from captured
    configuration data.
servers:
  - url: https://v1.api.altostrat.io
    description: Production API Server
security:
  - BearerAuth: []
tags:
  - name: Backups
    description: Manage and retrieve configuration backups for individual sites.
paths:
  /backup/{siteId}:
    get:
      tags:
        - Backups
      summary: List Backups for a Site
      description: >-
        Retrieves a list of all available configuration backup files for a
        specific site, sorted from newest to oldest. This allows you to see the
        entire history of captured configurations for a device.
      operationId: listSiteBackups
      parameters:
        - name: siteId
          in: path
          required: true
          description: The unique identifier for the site.
          schema:
            type: string
            format: uuid
            example: a1b2c3d4-e5f6-7890-1234-567890abcdef
      responses:
        '200':
          description: A successful response returning a list of backup file metadata.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BackupFile'
        '401':
          description: >-
            Unauthorized - Authentication credentials are required and are
            missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: >-
            Forbidden - You do not have permission to access backups for this
            site.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found - The specified site does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth:
            - backup:view
components:
  schemas:
    BackupFile:
      type: object
      description: Metadata for a single backup file.
      properties:
        filename:
          type: string
          description: The unique filename of the backup file, serving as its ID.
          example: 1732567800.rsc
        size:
          type: string
          description: The human-readable size of the backup file.
          example: 12.3KB
        date:
          type: string
          description: >-
            The date the backup was created, formatted according to the user's
            preferences.
          example: 29/10/2025
        time:
          type: string
          description: >-
            The time the backup was created, formatted according to the user's
            preferences and timezone.
          example: '12:50:00'
        created_at:
          type: string
          format: date-time
          description: The full ISO 8601 timestamp of when the backup was created.
          example: '2025-10-29T12:50:00.000000Z'
    ErrorResponse:
      type: object
      properties:
        type:
          type: string
          description: A broad category for the error (e.g., 'invalid_request_error').
          example: invalid_request_error
        code:
          type: string
          description: A short, unique string identifying the specific error.
          example: parameter_missing
        message:
          type: string
          description: A human-readable description of what went wrong.
          example: The 'name' parameter is required for this request.
        doc_url:
          type: string
          format: uri
          description: >-
            A direct link to the documentation page for this specific error
            code.
          example: https://docs.altostrat.io/errors/parameter_missing
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A bearer token is required for all API requests. Obtain a token via the
        Altostrat Authentication API.

````