API: how to recover the contact assigned to a task?




In hubspot forms, I can link a task to a contact: task%20hubspot

Now I need to import tasks from an ERP to hubspot database, and of course I want to link each task to an hubspot contact using email address of contact for example.
But in your api description https://developers.hubspot.com/docs/methods/calendar/create-task I cannot find any field related to contact table.
See in below the list of fields available in you documentation. Did I missing something ?

Thanks for your assistance.


Hi @Mathilde,

I think the mixup here is between calendar task and CRM tasks. You'll want to work with CRM tasks, which are a type of engagement:



Oh yes, indeed.

Mea culpa. Thanks for your answer.