Rotacionar secret

Gera novo secret (retornado só nesta resposta).

POSThttps://external-api.lip7.com.br/api/external/webhooks/{id}/rotate-secret
Escopowebhooks:manageSíncrono — responde 200 com os dados

Idempotency-Key obrigatório

Envie o header Idempotency-Key. Sem ele a API responde 400 IDEMPOTENCY_KEY_REQUIRED.

Path params
idstringobrigatório

webhookId.

Replay idempotente não re-revela o secret (usage guarda { rotated: true }).

Requisição
curl -X POST "https://external-api.lip7.com.br/api/external/webhooks/{id}/rotate-secret" \
  -H "x-api-key: lip_SUA_CHAVE" \
  -H "Idempotency-Key: chave-unica-001"
Resposta
{
  "success": true,
  "data": {
    "id": "wh_...",
    "secret": "hex...",
    "requestId": "..."
  }
}