Bearer pela sua API Key real (vk_live_* produção, vk_test_* sandbox). Crie a chave em https://app.dotfy.com.br/dashboard/chaves-api. Sem o header → 401. Com chave inválida/revogada → 401. Com chave sem o escopo necessário → 403 insufficient_scope.curl --location --globoff --request PATCH '/api/webhook-endpoints/{{endpoint_id}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Backend produção (v2)",
"url": "https://api.suaempresa.com.br/v2/webhooks/dotfy",
"events": ["EVENT:CHARGE_PAID"],
"isActive": true
}'{
"success": true,
"data": {
"id": "clwh0001",
"name": "Backend produção (v2)",
"url": "https://api.suaempresa.com.br/v2/webhooks/dotfy",
"events": [
"EVENT:CHARGE_PAID"
],
"isActive": true,
"updatedAt": "2026-05-07T11:00:00.000Z"
}
}