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

Occasional Contributor

Hi,

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.

Reply
0 Upvotes
2 Replies 2
HubSpot Moderator

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:

Engagements overview

An overview of engagements and the Engagements API

Reply
0 Upvotes
Occasional Contributor

Hi,

Oh yes, indeed.

Mea culpa. Thanks for your answer.