Webhook with dynamic endpoints parameters

Is there any way to define a dynamic webhook endpoint with some parameters from the context of the hits/aggs that trigged the alert ?

Example : my alert is looking for a specific device with some condition, when it’s found, i need to POST to a dynamic webhook URL like https://api/v1/{{ctx.results.0.aggregations.deviceID.value}} /restart?status={{ctx.results.0.hits.hits.0._source.actual_status}}