Working on Script to update Sendgrid contacts when airtable record changes

Hi! Need some clues to figure this out…

We need to develop a script that updates our sendgrid contact fields through API (last_order, etc) when a record changes on airtable.

Anyone know where to begin or have similar code?

thank you!