Source for deals created via the API

We have a server API integration that creates deals, contacts, and companies based on some actions happening on our website. When this happens, these objects are created with an original source type of “Offline sources”. My CRM team is hoping we can populate these object source with the proper data.

After some research, it seems like some users have been able to resolve this issue for contacts specifically by using the Forms API and passing context.hutk with the hubspotutk cookie.

Because we’re using the contacts, companies, and deals APIs using the hubspot/api-client package, and have no other issues except the object source, we’d prefer to not use the forms API and try to hack a solution together from that.

Does anyone know if it is possible to use the hubspotutk cookie manually with these other APIs? Either directly (in the create/update requests), or indirectly using an association?

@tjoyce , dear sir, how would you tackle this question?

If I’m not mistaken @jonsakas - You can use the forms API just to pass the email address to HS and get the contact ready to recieve more data… You don’t need to pass anything else, but I’m hoping that at least pushing the email address into the portal first and then you should be able to sync the contact instead of create the contact.