Asset path for image in webhook

Hi, I have seen posts asking this previously but I don’t understand the answer. I have a webhook setup like this…


and the image field in the payload looks like this
image
I would like to get the path of the image if possible instead of just the upload id, how do I get this into the payload?

Hi @jterry,

Sorry for the hassle here, but after your webhook handler receives the upload ID, you have to make a manual lookup call to the CMA to look up that ID and gets its URL back:

https://www.datocms.com/docs/content-management-api/resources/upload/self#basic-example

Or you can use the CDA if you prefer:
https://www.datocms.com/docs/content-delivery-api/filtering-uploads#id