Are you sure you got the right URL of your Azure Functions? It seems not as Pipedrive can’t talk to your endpoint.
Take the right URL from the portal, and test if you’re actually hitting the Azure Functions endpoint with Pipedrive. Try with a dummy function that only returns a successful response (200 HTTP Code).
You are providing the wrong URL when creating the Pipedrive client:
https://oauth.pipedrive.com. It should be something like
https://mycompany.pipedrive.com. Check your Pipedrive settings for your Pipedrive domain.
Here is how I use it in my Azure Functions:
public async Task<IActionResult> Run([HttpTrigger(AuthorizationLevel.Function, "post", Route = null)]HttpRequest req, ILogger log)
log.LogInformation("[WebhookDealUpdate] HTTP trigger function processed a request.");
string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
var pipedriveApiUrl = "https://mycompany.hopfab.com";
var pipedriveApiToken = "token";
IPipedriveClient client = new PipedriveClient(new ProductHeaderValue("MyCompany.Pipedrive"), new Uri(pipedriveApiUrl))
Credentials = new Credentials(pipedriveApiToken, AuthenticationType.ApiToken)
IWebhookResponse<WebhookDeal> data = null;
data = client.Webhook.ParseWebhookDealResponse(requestBody);
catch (Exception e)
throw new Exception("Unable to deserialize the deal", e);