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

# Webhook Recebimento + Entrega

> Configura URL que recebe tanto mensagens recebidas quanto entregues

## Descrição

Configura uma única URL que receberá notificações tanto de mensagens recebidas quanto de mensagens entregues. Ideal para centralizar o processamento de eventos em um único endpoint.

## Request

### Headers

```
Client-Token: SEU_CLIENT_TOKEN
Content-Type: application/json
```

### Body

```json theme={null}
{
  "value": "https://seusite.com/webhook/all"
}
```

| Campo   | Tipo   | Obrigatório | Descrição                                                              |
| ------- | ------ | ----------- | ---------------------------------------------------------------------- |
| `value` | string | Sim         | URL do seu servidor que receberá notificações de recebimento e entrega |

## Response

### Sucesso (200)

```json theme={null}
{
  "success": true
}
```

## Exemplo cURL

```bash theme={null}
curl -X PUT 'https://api.bliper.io/instances/{INSTANCE_ID}/token/{INSTANCE_TOKEN}/update-webhook-received-delivery' \
  -H 'Client-Token: SEU_CLIENT_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"value": "https://seusite.com/webhook/all"}'
```

<Tip>Use este webhook se quiser centralizar o recebimento e entrega em uma única URL.</Tip>
