curl --location --request PUT 'https://platform-api.convirza.com/v3/webhooks/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"webhook_name": "Lead Webhook",
"webhook_endpoint": "https://example.com/webhook",
"description": "Sends lead data to CRM system",
"format": "JSON",
"method": "GET",
"include_data_append": true,
"include_dni_logs": false,
"include_indicator_scores": true,
"include_ivr_keypresses": false,
"webhook_status": "active",
"static_parameters": [
{
"field_name": "api_key",
"field_value": "sk_live_1234567890",
"field_Name": "api_key",
"field_Value": "sk_live_1234567890"
}
],
"webhook_Name": "Lead Notification Webhook",
"webhook_Endpoint": "https://api.example.com/webhooks/leads",
"include_Data_Append": false,
"include_DNI_Logs": false,
"include_Indicator_Scores": false,
"include_IVR_Keypresses": false,
"static_Parameter": [
{
"field_name": "api_key",
"field_value": "sk_live_1234567890",
"field_Name": "api_key",
"field_Value": "your-api-key-here"
}
]
}'