jterry
October 9, 2024, 6:50am
1
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
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?
roger
October 9, 2024, 7:52am
2
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