---
title: "Um webhook"
method: GET
path: "/v1/webhooks/{id}"
tags: ["Webhooks"]
---

# Um webhook

`GET /v1/webhooks/{id}`

## Request

- Base URL: `https://api.sudrel.com.br/api`
- URL: `https://api.sudrel.com.br/api/v1/webhooks/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Response `200`

OK

- Webhook
  - `id` string
  - `url` string
  - `eventos` string[]
  - `ativo` boolean
  - `ambiente` 'producao' | 'sandbox'
  - `cabecalhos` object[]: Só os nomes; o valor nunca volta.
    - `nome` string
  - `segredo_anterior_valido_ate` string, date-time, nullable
  - `ultimo_sucesso_em` string, date-time, nullable
  - `aviso_falha_enviado_em` string, date-time, nullable
  - `criado_em` string, date-time
  - `links` object
    - `self` string
    - `entregas` string

## Other responses

- `401`: `nao_autenticado`: chave de API ausente, inválida ou revogada.
- `429`: `limite_de_requisicoes` (`retentavel: true`): 120 requisições por minuto por chave, janela fixa de 60 s. Sem `Retry-After`: espere a virada do minuto e repita a MESMA requisição (com a mesma `Idempotency-Key`).

---

[API](https://skmtc.dev/sudrel/apis/api-publica-sudrel-nfs-e-nf-e-e-ct-e.md) · [All operations](https://skmtc.dev/sudrel/apis/api-publica-sudrel-nfs-e-nf-e-e-ct-e/llms.txt) · [OpenAPI document](https://skmtc.dev/sudrel/apis/api-publica-sudrel-nfs-e-nf-e-e-ct-e/revisions/efd7baba9e37?raw)
