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

# Detalhes do Evento de Webhook

> Busque um evento de webhook pelo uuid com payload, tentativas e última resposta do endpoint

## Visão Geral

Retorna o evento completo — payload entregue, contador de tentativas e código HTTP da última resposta do seu endpoint. É a chamada que alimenta a página de detalhes do evento no dashboard.

## Exemplo de Requisição

```bash cURL theme={null}
curl https://garu.com.br/api/v1/webhook-events/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer sk_live_sua_chave_api"
```

```javascript JavaScript theme={null}
import { Garu } from '@garuhq/node';

const garu = new Garu({ apiKey: process.env.GARU_API_KEY });

const event = await garu.webhookEvents.get('a1b2c3d4-e5f6-7890-abcd-ef1234567890');
console.log(event.status, event.attempts);
console.log(event.payload); // o objeto completo enviado ao seu endpoint
```

```python Python theme={null}
import os
import requests

response = requests.get(
    "https://garu.com.br/api/v1/webhook-events/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    headers={"Authorization": f"Bearer {os.environ['GARU_API_KEY']}"},
)
event = response.json()
print(event["status"], event["responseStatus"])
```

## Parâmetros de Path

**uuid** `string` *required*

UUID do evento, devolvido por `GET /api/v1/webhook-events`.

## Resposta

```json theme={null}
{
  "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "webhookEndpoint": {
    "id": 7,
    "url": "https://example.com/webhooks/garu",
    "description": "Produção",
    "enabled": true,
    "events": ["transaction.payment.succeeded"]
  },
  "eventType": "transaction.payment.succeeded",
  "status": "failed",
  "attempts": 7,
  "lastAttemptAt": "2026-05-18T14:22:11.000Z",
  "nextRetryAt": null,
  "responseStatus": 503,
  "responseBody": "Service Unavailable",
  "manualResendOf": null,
  "createdAt": "2026-05-18T14:22:00.000Z",
  "payload": {
    "id": "evt_1a2b3c",
    "type": "transaction.payment.succeeded",
    "timestamp": "2026-05-18T14:22:10Z",
    "data": {
      "object": {
        "id": 999,
        "value": 49.9,
        "paymentMethod": "pix",
        "customer": { "email": "joao@email.com" }
      }
    }
  }
}
```

### Campos

| Campo | Tipo | Descrição |
| - | - | - |
| `status` | string | `pending`, `success` ou `failed` |
| `attempts` | number | Quantas tentativas foram feitas até agora |
| `lastAttemptAt` | string\|null | ISO timestamp da última tentativa (sucesso ou falha) |
| `responseStatus` | number\|null | HTTP da última resposta (ex: `200`, `503`, `404`) |
| `responseBody` | string\|null | Body da última resposta, truncado |
| `manualResendOf` | string\|null | `uuid` do evento original, quando este registro for um clone de reenvio manual (`POST /resend`). `null` em eventos originais. |
| `nextRetryAt` | string\|null | Próximo retry agendado, se status `pending` e ainda em janela de retry |
| `payload` | object | Payload completo — o mesmo JSON que foi enviado ao seu endpoint |

> [!TIP]
>
> Para reenviar este evento, prefira `POST /api/v1/webhook-events/:uuid/resend` — clona o evento e preserva o original. Veja [Reenviar (clonando)](https://docs.garu.com.br/api-reference/webhooks/eventos/resend.md). O endpoint `/retry` (legado) segue disponível.


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