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

# Deletar Webhook

> Remova um webhook e interrompa as entregas para a URL.

Remove um webhook da conta. Os próximos eventos deixam de ser entregues na URL, e a vaga no limite de 5 webhooks fica livre.

```
DELETE /v1/webhook/{id}
```

## Requisição

```bash theme={null}
curl -X DELETE 'https://api.nasten.net/v1/webhook/42' \
  -H 'Authorization: Bearer <seu_token>'
```

**id** `integer` *required*

Id numérico do webhook (da [listagem](https://nasten.mintlify.site/pages/webhook/list.md)).

## Resposta: `200 OK`

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

## Erros

| Status | Mensagem | Causa |
| - | - | - |
| `400` | `Id inválido` | O `id` não é um número inteiro positivo |
| `404` | `Webhook não encontrado` | Webhook inexistente ou de outra empresa |

> [!NOTE]
>
> Não há rota de edição de webhook na API. Para mudar URL, eventos ou filtro de produtos, remova e crie de novo, ou edite pelo painel. Para só parar de receber sem apagar, desligue o webhook pelo painel: com `isActive: false` ele não recebe nenhum evento.


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