Skip to main content

Endpoint

PATCH /v1/webhooks/:id
Escopo necessário: write:webhooks Envie apenas os campos que deseja alterar.

Corpo da requisição

CampoTipoDescrição
namestringNome descritivo
urlstringNova URL HTTPS
eventsstring[]Nova lista de eventos (substitui completamente)
statusstringactive para reativar, paused para pausar
Ao definir status: "active", o contador de consecutive_failures é zerado automaticamente.

Exemplo — Pausar webhook

curl -X PATCH https://api.socialsell.ai/v1/webhooks/664m8n9o0p1q2r3s4t5u6v7w \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"status": "paused"}'

Exemplo — Adicionar evento

curl -X PATCH https://api.socialsell.ai/v1/webhooks/664m8n9o0p1q2r3s4t5u6v7w \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "events": ["contact.created", "contact.updated", "deal.won", "deal.lost"]
  }'