# Status da sincronização Chatwoot

`GET /chatwoot/sync/status`

Pasta: **Integração Chatwoot**

## Autenticação

```http
token: {{token}}
```

## Descrição

# Status da sincronização Chatwoot

Mostra o estado do sync histórico (status, cursor, erro, última sync e contagem local de mensagens).

## Endpoint

`GET {{baseUrl}}/chatwoot/sync/status`

## Autenticação

Envie o token da instância no header `token: {{token}}`.

## Exemplo de Requisição

```bash
curl --request GET '{{baseUrl}}/chatwoot/sync/status' \
  --header 'token: {{token}}'
```

## Resposta de Sucesso

```json
{
  "success": true,
  "status": {
    "sync_status": "idle",
    "sync_cursor": "",
    "sync_error": "",
    "synced_at": null,
    "messages_local": 120
  }
}
```

## Erros comuns

- `401 Unauthorized`: o header `token` não foi enviado ou é inválido.
- `400 Bad Request`: JSON inválido ou campo obrigatório ausente.
- `500 Internal Server Error`: instância desconectada ou a operação falhou no WhatsApp.

## Observações

Se não houver config Chatwoot, retorna `sync_status: idle`.

## cURL

```bash
curl -X GET "{{baseUrl}}/chatwoot/sync/status" \
  -H "token: {{token}}"
```

---

[Índice da pasta](./index.md) · [Índice geral](../index.md) · [UI](https://gozap.dev/docs?op=integracao-chatwoot/status-da-sincronizacao-chatwoot)
