> ## 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 discovered site subnets

> Returns the subnet routes discovered from the latest configuration data for a site. SDX uses this when you attach site subnets to captive portal, VPN, CVE scan, and other network services.



## OpenAPI

````yaml /api/en/backups.yaml get /backup/{siteId}/subnets
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}/subnets:
    get:
      tags:
        - Backups
      summary: List discovered site subnets
      description: >-
        Returns the subnet routes discovered from the latest configuration data
        for a site. SDX uses this when you attach site subnets to captive
        portal, VPN, CVE scan, and other network services.
      operationId: listBackupSubnets
      parameters:
        - name: siteId
          in: path
          required: true
          description: The unique identifier for the site.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: A list of discovered subnet routes.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    route:
                      type: string
                      example: 192.168.88.0/24
                    interface:
                      type: string
                      nullable: true
                      example: bridge
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '403':
          $ref: '#/components/responses/ForbiddenError'
        '404':
          $ref: '#/components/responses/NotFoundError'
      security:
        - BearerAuth:
            - backup:view
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'
  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.

````