Need to pass Contact Id from hubspot ui extension to my REST api.

Hello Hubspot community,
Im trying to send Contact Id and contact ownerId from my ui extension to my rest api for some additional changes:

Screenshot 2025-05-06 at 12.01.46 PM.png

i want to pass `119374226148`, to my rest api

please help me out, thank you

Can you show me your code and where you are getting stuck at?
Here is some great documentation that shows what is accessible via the context param
Here are a bunch of examples
This will get you the contact ID of the current record you are in:

context.crm.objectId

To pass this information to your own rest api, you will need to create an api call to take care of that. I like using axios to send those out.