Webhook: Content Model With Reference Field Lacks New Content Type on Update

I have a content model which includes a Reference Field with validation to allow only a specific set of content types.

On webhook update, currently there is no way of knowing the content type of this field after it is updated without incurring the cost of another call. Are there plans / is it possible to include the new content type for reference fields on update?

Thanks in advance

Hi Christopher!

Thanks for your question, and welcome to Contentful Community.

You’re correct that the webhook payload does not resolve linked content from reference fields. To fetch that additional data, you could use a serverless function (AWS Lambda, Google Cloud Functions) to receive the Contentful webhook, employ the Javascript client library to grab the linked data, and then send it along to your final endpoint as needed.

Hope that helps!