Project webhook for leads creation not triggering

Hi!
I’ve set up a project using the cli. The project contains a webhook that should trigger when a Lead is created. But it never triggers?
I’m probably doing something very obviously wrong but I have been staring at this for hours and would really appreciate some help.
It works fine if I use objectType contact. But I really want to get it up and running with the lead object. Triggering the webhook with the “Test this subscription” feature under the webhook details also works.
I’m running the whole setup in a developer test account.
Is the issue that leads are not supported for webhooks yet? In that case, are custom fields on Contacts supported for webhooks? (I couldn’t get that working either)

Webhook conf:

{
 "uid": "hubspot_leads_webhooks",
 "type": "webhooks",
 "config": {
 "settings": {
 "targetUrl": "https://webhook.site/97558b73-b094-419b-91e5-017e48712892",
 "maxConcurrentRequests": 10
 },
 "subscriptions": {
 "crmObjects": [
 {
 "subscriptionType": "object.creation",
 "objectType": "lead",
 "active": true
 }
 ]
 }
 }
}

app conf:

{
 "uid": "hubspot_leads_app",
 "type": "app",
 "config": {
 "description": "An example to demonstrate how to build a static private app with developer projects.",
 "name": "hubspot-leads-Application",
 "distribution": "private",
 "auth": {
 "type": "static",
 "requiredScopes": [
 "oauth",
 "crm.objects.contacts.read",
 "crm.objects.contacts.write",
 "crm.objects.leads.read",
 "crm.objects.leads.write"
 ],
 "optionalScopes": [],
 "conditionallyRequiredScopes": []
 },
 "permittedUrls": {
 "fetch": ["https://api.hubapi.com"],
 "iframe": [],
 "img": []
 },
 "support": {
 "supportEmail": "support@example.com",
 "documentationUrl": "https://example.com/docs",
 "supportUrl": "https://example.com/support",
 "supportPhone": "+18005555555"
 }
 }
}

Hi there @michkrej

Thanks for sharing the config — I’ll pull in a few Community members who are deep in Developer Projects + Webhooks + the Leads object to confirm whether objectType: “lead” is currently supported (and what the right setup is if not).
@CBN @RubenBurdin @SteveHTM have you seen webhooks not firing for Lead object creation in dev test accounts even though the “Test this subscription” works? Any known limitations for Leads webhooks, or recommended alternatives (e.g., contact custom properties / associations) in the meantime?

Appreciate any insight you can share.

Best, Victor

We do not use Leads so not really able to help here @Victor_Becerra and @michkrej.

One tip could be to include lead.propertyChanged so see if the object was created earlier.

This did not work sadly. But configuring a webhook for lead creation in a legacy app did! So I’ll take that as a win.