diff --git a/proxy/webhook2api.php b/proxy/webhook2api.php index 7579223..df93aa3 100644 --- a/proxy/webhook2api.php +++ b/proxy/webhook2api.php @@ -153,6 +153,9 @@ function webhook2api_processConfiguration($configuration, $post_input) { civiproxy_log("Webhook2API[{$configuration['name']}]: Missing api_key."); return ["Configuration error", 403]; } + $params['api_key'] = $configuration['api_key']; + + // run API call $result = civicrm_api3($configuration['entity'], $configuration['action'], $params); // process result