standard-azureS
Apify & Crawlee3y ago
3 replies
standard-azure

Is there a way to add a header the ad-hoc webhook?

One might suspect something like this should be possible:

await Actor.addWebhook({ eventTypes: ['ACTOR.RUN.SUCCEEDED'], requestUrl: process.env.RUN_SUCCEEDED_WEBHOOK_URL, idempotencyKey: process.env.APIFY_ACTOR_RUN_ID, headers: { 'Authorization': Bearer ${process.env.APIFY_API_TOKEN}, } })

But it seems it's not possible at all? So we are supposed to add a secret to the URL I guess to add Authorization?
Was this page helpful?