# Consultar endpoint (https://docs.pongzap.com/referencia/webhooks/consultar-endpoint)

`GET https://api.pongzap.com/v1/webhook_endpoints/{webhook_endpoint_id}`

Um endpoint, sem o `secret`.

## Parâmetros

- `webhook_endpoint_id` (path, string, obrigatório): ID do endpoint (`we_…`).

## Respostas

- `200`: O endpoint.
- `401`: Sem credencial válida (`unauthorized`): chave ausente, inválida ou revogada, ou sessão expirada, encerrada ou usada numa escrita sem `X-Pongzap-Client`.
- `404`: O recurso não existe ou não é da sua organização (`instance_not_found`, `message_not_found`, `scheduled_message_not_found`, `chat_not_found`, `pairing_not_found`, `api_key_not_found`, `webhook_endpoint_not_found`, `unsubscribe_token_not_found`, `organization_not_found`, `media_not_found`, `partner_not_found`, `payout_not_found`, `subscription_not_found`), ou a rota não existe (`route_not_found`).
- `default`: Erro inesperado (`internal_error`) ou serviço indisponível (`service_unavailable`, com `Retry-After`).

Corpo do `200`:

- `object` ("webhook_endpoint", obrigatório)
- `id` (string, obrigatório)
- `url` (string (uri), obrigatório): Endereço HTTPS público que recebe os eventos por `POST`.
- `description` (string | null, obrigatório)
- `enabled_events` ("*" | "instance.status_updated" | "instance.pairing_updated" | "message.received" | "message.sent_from_device" | "message.status_updated"[], obrigatório)
- `status` ("enabled" | "disabled", obrigatório): - `enabled`: recebe os eventos. - `disabled`: pausado; não recebe nada até voltar a `enabled`.
- `created_at` (string (date-time), obrigatório): RFC 3339, em UTC.
- `updated_at` (string (date-time), obrigatório): RFC 3339, em UTC.