Webhooks do not include the actual content of attachments, only their
metadata. You must call the [Attachments
API to retrieve the
content. This design choice supports large attachments in serverless
environments that have limited request body sizes.
download_url that you can use to download the actual content.
Note that the download_url is valid for 1 hour. After that, you will need to call the
Attachments API
again to get a new download_url. You can also check the expires_at field on
each attachment to see exactly when it will expire.
Here’s an example of getting attachment data in a Next.js application:
app/api/events/route.ts