> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oxenty.api.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Reiniciar Sessão

> Reinicia uma sessão conectada sem perder autenticação

Reinicia uma sessão WhatsApp conectada. Útil para resolver problemas de conexão sem precisar escanear o QR code novamente.

## Path Parameters

<ParamField path="id" type="string" required>
  ID da sessão (UUID).
</ParamField>

## Resposta

<ResponseField name="success" type="boolean">
  Se o restart foi iniciado.
</ResponseField>

<ResponseField name="message" type="string">
  Mensagem de status.
</ResponseField>

<RequestExample>
  ```bash cURL theme={"system"}
  curl -X POST "https://api.oxenty.api.br/api/sessions/550e8400-e29b-41d4-a716-446655440000/restart" \
    -H "X-API-Key: YOUR_API_KEY"
  ```

  ```typescript TypeScript theme={"system"}
  await client.sessions.restart('550e8400-e29b-41d4-a716-446655440000');
  ```

  ```python Python theme={"system"}
  client.sessions.restart('550e8400-e29b-41d4-a716-446655440000')
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={"system"}
  {
    "success": true,
    "message": "Restart initiated"
  }
  ```
</ResponseExample>

<Tip>
  Use este endpoint quando a sessão está conectada mas apresentando comportamento irregular, como mensagens não sendo enviadas ou eventos não sendo recebidos.
</Tip>
