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

# Request a New Backup

> Asynchronously triggers a new configuration backup for the specified site. The backup process runs in the background. This endpoint returns immediately with a status indicating the request has been accepted for processing.



## OpenAPI

````yaml /api/en/backups.yaml post /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}:
    post:
      tags:
        - Backups
      summary: Request a New Backup
      description: >-
        Asynchronously triggers a new configuration backup for the specified
        site. The backup process runs in the background. This endpoint returns
        immediately with a status indicating the request has been accepted for
        processing.
      operationId: requestSiteBackup
      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:
        '202':
          description: Accepted - The backup request has been successfully queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Backup requested
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '403':
          $ref: '#/components/responses/ForbiddenError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '500':
          $ref: '#/components/responses/ServerError'
      security:
        - BearerAuth:
            - backup:create
components:
  responses:
    UnauthorizedError:
      description: >-
        Unauthorized - Authentication credentials are required and are missing
        or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ForbiddenError:
      description: Forbidden - You do not have permission to perform this action.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFoundError:
      description: Not Found - The requested resource could not be found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ServerError:
      description: >-
        Internal Server Error - We had a problem with our server. Try again
        later.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    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.

````