> ## 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 Sites with Failover Service

> Retrieves a list of all sites associated with the authenticated user that have the WAN Failover service currently activated.



## OpenAPI

````yaml /api/en/wan-failover.yaml get /failover/service-counts
openapi: 3.0.3
info:
  title: Altostrat WAN Failover API
  version: 1.0.0
  description: >-
    Manage SDX WAN failover service state and WAN tunnel configuration through
    the portal-facing `/failover` and `/wan` gateway paths.
servers:
  - url: https://v1.api.altostrat.io
security:
  - BearerAuth: []
tags:
  - name: Failover Service
    description: Activate and manage the WAN Failover service for a specific site.
  - name: WAN Tunnels
    description: >-
      Manage individual WAN connections (tunnels) for a site's failover
      configuration.
  - name: Helper Endpoints
    description: >-
      Utility endpoints for discovering router information to aid in
      configuration.
paths:
  /failover/service-counts:
    get:
      tags:
        - Failover Service
      summary: List Sites with Failover Service
      description: >-
        Retrieves a list of all sites associated with the authenticated user
        that have the WAN Failover service currently activated.
      operationId: getServiceCounts
      responses:
        '200':
          description: A list of sites with the failover service enabled.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FailoverServiceSite'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    FailoverServiceSite:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The unique identifier of the failover service instance.
          example: 9c693485-0552-474c-a7c8-7b969a5330a1
        site_id:
          type: string
          format: uuid
          description: The unique identifier for the site where the service is active.
          example: 9c69345c-8d39-4786-9f17-8153c988c89a
    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_invalid
        message:
          type: string
          description: A human-readable description of what went wrong.
          example: The value for 'type' must be one of the supported connection types.
        doc_url:
          type: string
          description: >-
            A direct link to the documentation page for this specific error
            code.
          example: https://docs.altostrat.io/errors/parameter_invalid
  responses:
    Unauthorized:
      description: Unauthorized - The API key is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your JWT in the format: Bearer <token>'

````