diff --git a/Pluggy.SDK/PluggyAPI.cs b/Pluggy.SDK/PluggyAPI.cs index d51acd6..2458be0 100644 --- a/Pluggy.SDK/PluggyAPI.cs +++ b/Pluggy.SDK/PluggyAPI.cs @@ -301,14 +301,16 @@ public async Task FetchWebhook(Guid id) /// /// Webhook url /// Webhook event + /// Optional headers for webhook notifications /// - public async Task CreateWebhook(string url, WebhookEvent _event) + public async Task CreateWebhook(string url, WebhookEvent _event, Dictionary headers = null) { - var body = new Dictionary + var body = new Dictionary { { "url", url }, - { "event", _event.Value } - }; + { "event", _event.Value }, + { "headers", headers } + }.RemoveNulls(); return await httpService.PostAsync(URL_WEBHOOKS, body); }