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

# Activate Failover Service

> Activates the WAN Failover service for a specified site. This is the first step to enabling SD-WAN capabilities. Activating the service automatically creates two default, unconfigured WAN tunnels.



## OpenAPI

````yaml /api/en/wan-failover.yaml post /failover/{site_id}/configs
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/{site_id}/configs:
    post:
      tags:
        - Failover Service
      summary: Activate Failover Service
      description: >-
        Activates the WAN Failover service for a specified site. This is the
        first step to enabling SD-WAN capabilities. Activating the service
        automatically creates two default, unconfigured WAN tunnels.
      operationId: activateFailover
      parameters:
        - $ref: '#/components/parameters/SiteId'
      responses:
        '201':
          description: Failover service successfully activated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailoverSubscription'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Conflict - The Failover service is already active on this site.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  parameters:
    SiteId:
      name: site_id
      in: path
      required: true
      description: The unique identifier for the site.
      schema:
        type: string
        format: uuid
        example: 9c69345c-8d39-4786-9f17-8153c988c89a
  schemas:
    FailoverSubscription:
      type: object
      properties:
        subscription_id:
          type: string
          format: uuid
          description: >-
            The unique identifier for the activated Failover service
            subscription on this site. Will be `null` if the service is not
            active.
          nullable: true
          example: 9c693485-0552-474c-a7c8-7b969a5330a1
    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'
    Forbidden:
      description: >-
        Forbidden - The authenticated user does not have permission to perform
        this action.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: >-
        Not Found - The requested resource (e.g., site_id, tunnel_id) does not
        exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ServerError:
      description: Internal Server Error - An unexpected error occurred on the server.
      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>'

````