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

# Desligando Instância

Este endpoint permite desligar uma instância que está conectada ou desconectada.

Ao ser ligada novamente, a instância pode retornar já conectada, mantendo a sessão anterior. Em alguns casos, se a instância ficar desligada por muito tempo ou se o WhatsApp desconectar dispositivos inativos, ela poderá retornar desconectada ao ser ligada.

> [!NOTE]
>
> Disponível apenas para instâncias não oficiais. Instâncias oficiais (WhatsApp Cloud API) rodam na infraestrutura da Meta, estão sempre disponíveis e não podem ser ligadas, desligadas ou reiniciadas. A requisição retorna `400` com o código `waba_feature_not_supported`.


## OpenAPI

````yaml POST /wa/instances/{instance_id}/power-off
openapi: 3.1.0
info:
  title: Zapster API
  description: ''
  version: 1.0.0
servers:
  - url: https://api.zapsterapi.com/v1
    description: Produção
security: []
tags: []
paths:
  /wa/instances/{instance_id}/power-off:
    post:
      tags: []
      summary: Ligando Instância
      parameters:
        - name: instance_id
          in: path
          description: ID da instância.
          required: true
          example: ozj35qv418rpmlrb
          schema:
            type: string
      responses:
        '204':
          description: No Content
        '400':
          description: >-
            A instância é oficial (WhatsApp Cloud API) e não suporta controle de
            energia
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          example: waba_feature_not_supported
                        message:
                          type: string
                          example: >-
                            The feature "power on, power off and restart" is not
                            supported by WABA instances. Official instances are
                            managed by the WhatsApp Cloud API and are always
                            available.
      deprecated: false
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.