This connector is optimized for AI agents. For the data replication connector, see Hubspot .
This is the full reference documentation for the Hubspot agent connector.
Supported entities and actions
The Hubspot connector supports the following entities and actions.
Entity Actions Contacts List , Create , Get , Update , API Search , Context Store Search Companies List , Create , Get , Update , API Search , Context Store Search Deals List , Create , Get , Update , API Search , Context Store Search Tickets List , Create , Get , Update , API Search , Context Store Search Notes List , Create , Get , Update , Delete , Context Store Search Calls List , Create , Get , Update , Delete , Context Store Search Emails List , Create , Get , Update , Delete , Context Store Search Meetings List , Create , Get , Update , Delete , Context Store Search Tasks List , Create , Get , Update , Delete , Context Store Search Schemas List , Get Objects List , Get Associations List , Create , Delete
Returns a paginated list of contacts
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "contacts",
"action": "list"
}'
Python SDK
await hubspot . contacts . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "contacts",
"action": "list"
}'
Parameters
Parameter Name Type Required Description limitintegerNo The maximum number of results to display per page. afterstringNo The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results. associationsstringNo A comma separated list of associated object types to include in the response. Valid values are contacts, deals, tickets, and custom object type IDs or fully qualified names (e.g., "p12345_cars"). propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of companies that can be read by a single request. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Field Name Type Description next_cursorstringnext_linkstring
Create a new contact in HubSpot CRM with the provided properties.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "contacts",
"action": "create",
"params": {
"properties": {
"email": "<str>"
}
}
}'
Python SDK
await hubspot . contacts . create (
properties = {
"email" : "<str>"
}
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "contacts",
"action": "create",
"params": {
"properties": {
"email": "<str>"
}
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Contact properties to set properties.emailstringYes Contact email address (required, used as unique identifier) properties.firstnamestringNo Contact first name properties.lastnamestringNo Contact last name properties.phonestringNo Contact phone number properties.companystringNo Company name associated with the contact properties.websitestringNo Contact website URL properties.lifecyclestagestringNo Lifecycle stage (e.g., subscriber, lead, marketingqualifiedlead, salesqualifiedlead, opportunity, customer, evangelist, other) properties.jobtitlestringNo Contact job title properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this contact
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Get a single contact by ID
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "contacts",
"action": "get",
"params": {
"contactId": "<str>"
}
}'
Python SDK
await hubspot . contacts . get (
contact_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "contacts",
"action": "get",
"params": {
"contactId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description contactIdstringYes Contact ID propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. associationsstringNo A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. idPropertystringNo The name of a property whose values are unique for this object. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Update an existing contact's properties by ID. Only the specified properties will be updated.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "contacts",
"action": "update",
"params": {
"properties": {},
"contactId": "<str>"
}
}'
Python SDK
await hubspot . contacts . update (
properties = { } ,
contact_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "contacts",
"action": "update",
"params": {
"properties": {},
"contactId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Contact properties to update properties.emailstringNo Contact email address properties.firstnamestringNo Contact first name properties.lastnamestringNo Contact last name properties.phonestringNo Contact phone number properties.companystringNo Company name associated with the contact properties.websitestringNo Contact website URL properties.lifecyclestagestringNo Lifecycle stage (e.g., subscriber, lead, marketingqualifiedlead, salesqualifiedlead, opportunity, customer, evangelist, other) properties.jobtitlestringNo Contact job title properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this contact contactIdstringYes Contact ID
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Search for contacts by filtering on properties, searching through associations, and sorting results.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "contacts",
"action": "api_search"
}'
Python SDK
await hubspot . contacts . api_search ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "contacts",
"action": "api_search"
}'
Parameters
Parameter Name Type Required Description filterGroupsarray<object>No Up to 6 groups of filters defining additional query criteria. filterGroups.filtersarray<object>No filterGroups.filters.operator"BETWEEN" | "CONTAINS_TOKEN" | "EQ" | "GT" | "GTE" | "HAS_PROPERTY" | "IN" | "LT" | "LTE" | "NEQ" | "NOT_CONTAINS_TOKEN" | "NOT_HAS_PROPERTY" | "NOT_IN"No filterGroups.filters.propertyNamestringNo The name of the property to apply the filter on. filterGroups.filters.valuestringNo The value to match against the property. filterGroups.filters.valuesarray<string>No The values to match against the property. propertiesarray<string>No A list of property names to include in the response. limitintegerNo Maximum number of results to return afterstringNo A paging cursor token for retrieving subsequent pages. sortsarray<object>No Sort criteria sorts.propertyNamestringNo sorts.direction"ASCENDING" | "DESCENDING"No querystringNo The search query string, up to 3000 characters.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Field Name Type Description totalintegernext_cursorstringnext_linkstring
Contacts Context Store Search
Search and filter contacts records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "contacts",
"action": "context_store_search",
"params": {
"query": {
"filter": {
"eq": {
"archived": true
}
}
}
}
}'
Python SDK
await hubspot . contacts . context_store_search (
query = { "filter" : { "eq" : { "archived" : True } } }
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "contacts",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description archivedbooleanBoolean flag indicating whether the contact has been archived or deleted companiesarrayAssociated company records linked to this contact createdAtstringTimestamp indicating when the contact was first created in the system idstringUnique identifier for the contact record propertiesobjectKey-value object storing all contact properties and their values. properties.associatedcompanyidstringID of the associated company properties.createdatestringDate the contact was created properties.emailstringContact email address properties.firstnamestringContact first name properties.hs_object_idstringHubSpot object ID properties.hubspot_owner_idstringID of the HubSpot owner assigned to this contact properties.lastmodifieddatestringLast modified date of the contact properties.lastnamestringContact last name updatedAtstringTimestamp indicating when the contact record was last modified
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].archivedbooleanBoolean flag indicating whether the contact has been archived or deleted data[].companiesarrayAssociated company records linked to this contact data[].createdAtstringTimestamp indicating when the contact was first created in the system data[].idstringUnique identifier for the contact record data[].propertiesobjectKey-value object storing all contact properties and their values. data[].properties.associatedcompanyidstringID of the associated company data[].properties.createdatestringDate the contact was created data[].properties.emailstringContact email address data[].properties.firstnamestringContact first name data[].properties.hs_object_idstringHubSpot object ID data[].properties.hubspot_owner_idstringID of the HubSpot owner assigned to this contact data[].properties.lastmodifieddatestringLast modified date of the contact data[].properties.lastnamestringContact last name data[].updatedAtstringTimestamp indicating when the contact record was last modified
Companies
Companies List
Retrieve all companies, using query parameters to control the information that gets returned.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "companies",
"action": "list"
}'
Python SDK
await hubspot . companies . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "companies",
"action": "list"
}'
Parameters
Parameter Name Type Required Description limitintegerNo The maximum number of results to display per page. afterstringNo The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results. associationsstringNo A comma separated list of associated object types to include in the response. Valid values are contacts, deals, tickets, and custom object type IDs or fully qualified names (e.g., "p12345_cars"). propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of companies that can be read by a single request. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Field Name Type Description next_cursorstringnext_linkstring
Companies Create
Create a new company in HubSpot CRM with the provided properties.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "companies",
"action": "create",
"params": {
"properties": {
"name": "<str>"
}
}
}'
Python SDK
await hubspot . companies . create (
properties = {
"name" : "<str>"
}
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "companies",
"action": "create",
"params": {
"properties": {
"name": "<str>"
}
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Company properties to set properties.namestringYes Company name (required) properties.domainstringNo Company domain name (e.g., example.com) properties.descriptionstringNo Company description properties.phonestringNo Company phone number properties.industrystringNo Company industry (e.g., COMPUTER_SOFTWARE, INFORMATION_TECHNOLOGY_AND_SERVICES, INTERNET, FINANCIAL_SERVICES, MARKETING_AND_ADVERTISING, EDUCATION_MANAGEMENT) properties.citystringNo Company city properties.statestringNo Company state/region properties.countrystringNo Company country properties.zipstringNo Company postal/zip code properties.numberofemployeesstringNo Number of employees properties.annualrevenuestringNo Annual revenue properties.lifecyclestagestringNo Lifecycle stage (e.g., subscriber, lead, marketingqualifiedlead, salesqualifiedlead, opportunity, customer, evangelist, other) properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this company properties.websitestringNo Company website URL
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Companies Get
Get a single company by ID
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "companies",
"action": "get",
"params": {
"companyId": "<str>"
}
}'
Python SDK
await hubspot . companies . get (
company_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "companies",
"action": "get",
"params": {
"companyId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description companyIdstringYes Company ID propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. associationsstringNo A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. idPropertystringNo The name of a property whose values are unique for this object. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Companies Update
Update an existing company's properties by ID. Only the specified properties will be updated.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "companies",
"action": "update",
"params": {
"properties": {},
"companyId": "<str>"
}
}'
Python SDK
await hubspot . companies . update (
properties = { } ,
company_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "companies",
"action": "update",
"params": {
"properties": {},
"companyId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Company properties to update properties.namestringNo Company name properties.domainstringNo Company domain name (e.g., example.com) properties.descriptionstringNo Company description properties.phonestringNo Company phone number properties.industrystringNo Company industry (e.g., COMPUTER_SOFTWARE, INFORMATION_TECHNOLOGY_AND_SERVICES, INTERNET, FINANCIAL_SERVICES, MARKETING_AND_ADVERTISING, EDUCATION_MANAGEMENT) properties.citystringNo Company city properties.statestringNo Company state/region properties.countrystringNo Company country properties.zipstringNo Company postal/zip code properties.numberofemployeesstringNo Number of employees properties.annualrevenuestringNo Annual revenue properties.lifecyclestagestringNo Lifecycle stage (e.g., subscriber, lead, marketingqualifiedlead, salesqualifiedlead, opportunity, customer, evangelist, other) properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this company properties.websitestringNo Company website URL companyIdstringYes Company ID
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Companies API Search
Search for companies by filtering on properties, searching through associations, and sorting results.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "companies",
"action": "api_search"
}'
Python SDK
await hubspot . companies . api_search ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "companies",
"action": "api_search"
}'
Parameters
Parameter Name Type Required Description filterGroupsarray<object>No Up to 6 groups of filters defining additional query criteria. filterGroups.filtersarray<object>No filterGroups.filters.operator"BETWEEN" | "CONTAINS_TOKEN" | "EQ" | "GT" | "GTE" | "HAS_PROPERTY" | "IN" | "LT" | "LTE" | "NEQ" | "NOT_CONTAINS_TOKEN" | "NOT_HAS_PROPERTY" | "NOT_IN"No filterGroups.filters.propertyNamestringNo The name of the property to apply the filter on. filterGroups.filters.valuestringNo The value to match against the property. filterGroups.filters.valuesarray<string>No The values to match against the property. propertiesarray<string>No A list of property names to include in the response. limitintegerNo Maximum number of results to return afterstringNo A paging cursor token for retrieving subsequent pages. sortsarray<object>No Sort criteria sorts.propertyNamestringNo sorts.direction"ASCENDING" | "DESCENDING"No querystringNo The search query string, up to 3000 characters.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Field Name Type Description totalintegernext_cursorstringnext_linkstring
Companies Context Store Search
Search and filter companies records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "companies",
"action": "context_store_search",
"params": {
"query": {
"filter": {
"eq": {
"archived": true
}
}
}
}
}'
Python SDK
await hubspot . companies . context_store_search (
query = { "filter" : { "eq" : { "archived" : True } } }
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "companies",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description archivedbooleanIndicates whether the company has been deleted and moved to the recycling bin contactsarrayAssociated contact records linked to this company createdAtstringTimestamp when the company record was created idstringUnique identifier for the company record propertiesobjectObject containing all property values for the company properties.createdatestringDate the company was created properties.domainstringCompany domain name properties.hs_lastmodifieddatestringLast modified date of the company properties.hs_object_idstringHubSpot object ID properties.hubspot_owner_idstringID of the HubSpot owner assigned to this company properties.namestringCompany name updatedAtstringTimestamp when the company record was last modified
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].archivedbooleanIndicates whether the company has been deleted and moved to the recycling bin data[].contactsarrayAssociated contact records linked to this company data[].createdAtstringTimestamp when the company record was created data[].idstringUnique identifier for the company record data[].propertiesobjectObject containing all property values for the company data[].properties.createdatestringDate the company was created data[].properties.domainstringCompany domain name data[].properties.hs_lastmodifieddatestringLast modified date of the company data[].properties.hs_object_idstringHubSpot object ID data[].properties.hubspot_owner_idstringID of the HubSpot owner assigned to this company data[].properties.namestringCompany name data[].updatedAtstringTimestamp when the company record was last modified
Deals
Deals List
Returns a paginated list of deals
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "deals",
"action": "list"
}'
Python SDK
await hubspot . deals . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "deals",
"action": "list"
}'
Parameters
Parameter Name Type Required Description limitintegerNo The maximum number of results to display per page. afterstringNo The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results. associationsstringNo A comma separated list of associated object types to include in the response. Valid values are contacts, deals, tickets, and custom object type IDs or fully qualified names (e.g., "p12345_cars"). propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of companies that can be read by a single request. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Field Name Type Description next_cursorstringnext_linkstring
Deals Create
Create a new deal in HubSpot CRM with the provided properties.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "deals",
"action": "create",
"params": {
"properties": {
"dealname": "<str>"
}
}
}'
Python SDK
await hubspot . deals . create (
properties = {
"dealname" : "<str>"
}
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "deals",
"action": "create",
"params": {
"properties": {
"dealname": "<str>"
}
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Deal properties to set properties.dealnamestringYes Deal name (required) properties.amountstringNo Deal amount properties.dealstagestringNo Deal stage ID (e.g., appointmentscheduled, qualifiedtobuy, presentationscheduled, decisionmakerboughtin, contractsent, closedwon, closedlost) properties.pipelinestringNo Deal pipeline ID (defaults to the default pipeline) properties.closedatestringNo Expected close date (ISO 8601 format, e.g., 2024-12-31T00:00:00.000Z) properties.dealtypestringNo Deal type (e.g., newbusiness, existingbusiness) properties.descriptionstringNo Deal description properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this deal
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Deals Get
Get a single deal by ID
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "deals",
"action": "get",
"params": {
"dealId": "<str>"
}
}'
Python SDK
await hubspot . deals . get (
deal_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "deals",
"action": "get",
"params": {
"dealId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description dealIdstringYes Deal ID propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. associationsstringNo A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. idPropertystringNo The name of a property whose values are unique for this object. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Deals Update
Update an existing deal's properties by ID. Only the specified properties will be updated.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "deals",
"action": "update",
"params": {
"properties": {},
"dealId": "<str>"
}
}'
Python SDK
await hubspot . deals . update (
properties = { } ,
deal_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "deals",
"action": "update",
"params": {
"properties": {},
"dealId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Deal properties to update properties.dealnamestringNo Deal name properties.amountstringNo Deal amount properties.dealstagestringNo Deal stage ID (e.g., appointmentscheduled, qualifiedtobuy, presentationscheduled, decisionmakerboughtin, contractsent, closedwon, closedlost) properties.pipelinestringNo Deal pipeline ID properties.closedatestringNo Expected close date (ISO 8601 format, e.g., 2024-12-31T00:00:00.000Z) properties.dealtypestringNo Deal type (e.g., newbusiness, existingbusiness) properties.descriptionstringNo Deal description properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this deal dealIdstringYes Deal ID
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Deals API Search
Search deals with filters and sorting
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "deals",
"action": "api_search"
}'
Python SDK
await hubspot . deals . api_search ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "deals",
"action": "api_search"
}'
Parameters
Parameter Name Type Required Description filterGroupsarray<object>No Up to 6 groups of filters defining additional query criteria. filterGroups.filtersarray<object>No filterGroups.filters.operator"BETWEEN" | "CONTAINS_TOKEN" | "EQ" | "GT" | "GTE" | "HAS_PROPERTY" | "IN" | "LT" | "LTE" | "NEQ" | "NOT_CONTAINS_TOKEN" | "NOT_HAS_PROPERTY" | "NOT_IN"No filterGroups.filters.propertyNamestringNo The name of the property to apply the filter on. filterGroups.filters.valuestringNo The value to match against the property. filterGroups.filters.valuesarray<string>No The values to match against the property. propertiesarray<string>No A list of property names to include in the response. limitintegerNo Maximum number of results to return afterstringNo A paging cursor token for retrieving subsequent pages. sortsarray<object>No Sort criteria sorts.propertyNamestringNo sorts.direction"ASCENDING" | "DESCENDING"No querystringNo The search query string, up to 3000 characters.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Field Name Type Description totalintegernext_cursorstringnext_linkstring
Deals Context Store Search
Search and filter deals records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "deals",
"action": "context_store_search",
"params": {
"query": {
"filter": {
"eq": {
"archived": true
}
}
}
}
}'
Python SDK
await hubspot . deals . context_store_search (
query = { "filter" : { "eq" : { "archived" : True } } }
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "deals",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description archivedbooleanIndicates whether the deal has been deleted and moved to the recycling bin companiesarrayCollection of company records associated with the deal contactsarrayCollection of contact records associated with the deal createdAtstringTimestamp when the deal record was originally created idstringUnique identifier for the deal record line_itemsarrayCollection of product line items associated with the deal propertiesobjectKey-value object containing all deal properties and custom fields properties.amountstringDeal amount properties.closedatestringExpected close date of the deal properties.createdatestringDate the deal was created properties.dealnamestringDeal name properties.dealstagestringCurrent deal stage properties.hs_lastmodifieddatestringLast modified date of the deal properties.hs_object_idstringHubSpot object ID properties.hubspot_owner_idstringID of the HubSpot owner assigned to this deal properties.pipelinestringDeal pipeline updatedAtstringTimestamp when the deal record was last modified
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].archivedbooleanIndicates whether the deal has been deleted and moved to the recycling bin data[].companiesarrayCollection of company records associated with the deal data[].contactsarrayCollection of contact records associated with the deal data[].createdAtstringTimestamp when the deal record was originally created data[].idstringUnique identifier for the deal record data[].line_itemsarrayCollection of product line items associated with the deal data[].propertiesobjectKey-value object containing all deal properties and custom fields data[].properties.amountstringDeal amount data[].properties.closedatestringExpected close date of the deal data[].properties.createdatestringDate the deal was created data[].properties.dealnamestringDeal name data[].properties.dealstagestringCurrent deal stage data[].properties.hs_lastmodifieddatestringLast modified date of the deal data[].properties.hs_object_idstringHubSpot object ID data[].properties.hubspot_owner_idstringID of the HubSpot owner assigned to this deal data[].properties.pipelinestringDeal pipeline data[].updatedAtstringTimestamp when the deal record was last modified
Tickets
Tickets List
Returns a paginated list of tickets
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "tickets",
"action": "list"
}'
Python SDK
await hubspot . tickets . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tickets",
"action": "list"
}'
Parameters
Parameter Name Type Required Description limitintegerNo The maximum number of results to display per page. afterstringNo The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results. associationsstringNo A comma separated list of associated object types to include in the response. Valid values are contacts, deals, tickets, and custom object type IDs or fully qualified names (e.g., "p12345_cars"). propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of companies that can be read by a single request. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Field Name Type Description next_cursorstringnext_linkstring
Tickets Create
Create a new support ticket in HubSpot CRM with the provided properties.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "tickets",
"action": "create",
"params": {
"properties": {
"subject": "<str>",
"hs_pipeline": "<str>",
"hs_pipeline_stage": "<str>"
}
}
}'
Python SDK
await hubspot . tickets . create (
properties = {
"subject" : "<str>" ,
"hs_pipeline" : "<str>" ,
"hs_pipeline_stage" : "<str>"
}
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tickets",
"action": "create",
"params": {
"properties": {
"subject": "<str>",
"hs_pipeline": "<str>",
"hs_pipeline_stage": "<str>"
}
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Ticket properties to set properties.subjectstringYes Ticket subject line (required) properties.contentstringNo Ticket description/content properties.hs_pipelinestringYes Ticket pipeline ID (required, use '0' for default pipeline) properties.hs_pipeline_stagestringYes Pipeline stage ID (required, e.g., '1' for New in the default pipeline) properties.hs_ticket_prioritystringNo Ticket priority (e.g., LOW, MEDIUM, HIGH) properties.hs_ticket_categorystringNo Ticket category properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this ticket
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Tickets Get
Get a single ticket by ID
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "tickets",
"action": "get",
"params": {
"ticketId": "<str>"
}
}'
Python SDK
await hubspot . tickets . get (
ticket_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tickets",
"action": "get",
"params": {
"ticketId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description ticketIdstringYes Ticket ID propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. associationsstringNo A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. idPropertystringNo The name of a property whose values are unique for this object. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Tickets Update
Update an existing ticket's properties by ID. Only the specified properties will be updated.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "tickets",
"action": "update",
"params": {
"properties": {},
"ticketId": "<str>"
}
}'
Python SDK
await hubspot . tickets . update (
properties = { } ,
ticket_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tickets",
"action": "update",
"params": {
"properties": {},
"ticketId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Ticket properties to update properties.subjectstringNo Ticket subject line properties.contentstringNo Ticket description/content properties.hs_pipelinestringNo Ticket pipeline ID properties.hs_pipeline_stagestringNo Pipeline stage ID properties.hs_ticket_prioritystringNo Ticket priority (e.g., LOW, MEDIUM, HIGH) properties.hs_ticket_categorystringNo Ticket category properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this ticket ticketIdstringYes Ticket ID
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Tickets API Search
Search for tickets by filtering on properties, searching through associations, and sorting results.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "tickets",
"action": "api_search"
}'
Python SDK
await hubspot . tickets . api_search ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tickets",
"action": "api_search"
}'
Parameters
Parameter Name Type Required Description filterGroupsarray<object>No Up to 6 groups of filters defining additional query criteria. filterGroups.filtersarray<object>No filterGroups.filters.operator"BETWEEN" | "CONTAINS_TOKEN" | "EQ" | "GT" | "GTE" | "HAS_PROPERTY" | "IN" | "LT" | "LTE" | "NEQ" | "NOT_CONTAINS_TOKEN" | "NOT_HAS_PROPERTY" | "NOT_IN"No filterGroups.filters.propertyNamestringNo The name of the property to apply the filter on. filterGroups.filters.valuestringNo The value to match against the property. filterGroups.filters.valuesarray<string>No The values to match against the property. propertiesarray<string>No A list of property names to include in the response. limitintegerNo Maximum number of results to return afterstringNo A paging cursor token for retrieving subsequent pages. sortsarray<object>No Sort criteria sorts.propertyNamestringNo sorts.direction"ASCENDING" | "DESCENDING"No querystringNo The search query string, up to 3000 characters.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Field Name Type Description totalintegernext_cursorstringnext_linkstring
Tickets Context Store Search
Search and filter tickets records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "tickets",
"action": "context_store_search",
"params": {
"query": {
"filter": {
"eq": {
"archived": true
}
}
}
}
}'
Python SDK
await hubspot . tickets . context_store_search (
query = { "filter" : { "eq" : { "archived" : True } } }
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tickets",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description archivedbooleanIndicates whether the ticket has been deleted and moved to the recycling bin companiesarrayCollection of company records associated with the ticket contactsarrayCollection of contact records associated with the ticket createdAtstringTimestamp when the ticket record was originally created idstringUnique identifier for the ticket record propertiesobjectObject containing all property values for the ticket properties.contentstringTicket content/description properties.createdatestringDate the ticket was created properties.hs_lastmodifieddatestringLast modified date of the ticket properties.hs_object_idstringHubSpot object ID properties.hs_pipelinestringTicket pipeline properties.hs_pipeline_stagestringCurrent pipeline stage of the ticket properties.hs_ticket_categorystringTicket category properties.hs_ticket_prioritystringTicket priority level properties.subjectstringTicket subject line updatedAtstringTimestamp when the ticket record was last modified
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].archivedbooleanIndicates whether the ticket has been deleted and moved to the recycling bin data[].companiesarrayCollection of company records associated with the ticket data[].contactsarrayCollection of contact records associated with the ticket data[].createdAtstringTimestamp when the ticket record was originally created data[].idstringUnique identifier for the ticket record data[].propertiesobjectObject containing all property values for the ticket data[].properties.contentstringTicket content/description data[].properties.createdatestringDate the ticket was created data[].properties.hs_lastmodifieddatestringLast modified date of the ticket data[].properties.hs_object_idstringHubSpot object ID data[].properties.hs_pipelinestringTicket pipeline data[].properties.hs_pipeline_stagestringCurrent pipeline stage of the ticket data[].properties.hs_ticket_categorystringTicket category data[].properties.hs_ticket_prioritystringTicket priority level data[].properties.subjectstringTicket subject line data[].updatedAtstringTimestamp when the ticket record was last modified
Notes
Notes List
Returns a paginated list of notes
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "notes",
"action": "list"
}'
Python SDK
await hubspot . notes . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "notes",
"action": "list"
}'
Parameters
Parameter Name Type Required Description limitintegerNo The maximum number of results to display per page. afterstringNo The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results. associationsstringNo A comma separated list of associated object types to include in the response. Valid values are contacts, companies, deals, tickets, and custom object type IDs or fully qualified names. propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Field Name Type Description next_cursorstringnext_linkstring
Notes Create
Create a new note in HubSpot CRM. Notes can be associated with contacts,
companies, deals, or tickets by using the associations parameter.
The hs_timestamp property sets when the note activity occurred.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "notes",
"action": "create",
"params": {
"properties": {
"hs_note_body": "<str>",
"hs_timestamp": "<str>"
},
"associations": []
}
}'
Python SDK
await hubspot . notes . create (
properties = {
"hs_note_body" : "<str>" ,
"hs_timestamp" : "<str>"
} ,
associations = [ ]
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "notes",
"action": "create",
"params": {
"properties": {
"hs_note_body": "<str>",
"hs_timestamp": "<str>"
},
"associations": []
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Note properties to set properties.hs_note_bodystringYes The body content of the note (supports HTML) properties.hs_timestampstringYes Required. Timestamp when the note activity occurred (ISO 8601 format, e.g. 2025-01-15T10:30:00.000Z). Use the current time if the user does not specify one. properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this note associationsarray<object>No Associate the note with other CRM records (contacts, companies, deals, tickets) associations.toobjectNo associations.to.idstringNo ID of the record to associate with associations.typesarray<object>No associations.types.associationCategorystringNo Association category (e.g., HUBSPOT_DEFINED) associations.types.associationTypeIdintegerNo Association type ID (e.g., 202 for note-to-contact, 190 for note-to-company, 214 for note-to-deal, 18 for note-to-ticket)
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Notes Get
Get a single note by ID
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "notes",
"action": "get",
"params": {
"noteId": "<str>"
}
}'
Python SDK
await hubspot . notes . get (
note_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "notes",
"action": "get",
"params": {
"noteId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description noteIdstringYes Note ID propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. associationsstringNo A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. idPropertystringNo The name of a property whose values are unique for this object. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Notes Update
Update an existing note's properties by ID.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "notes",
"action": "update",
"params": {
"properties": {},
"noteId": "<str>"
}
}'
Python SDK
await hubspot . notes . update (
properties = { } ,
note_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "notes",
"action": "update",
"params": {
"properties": {},
"noteId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Note properties to update properties.hs_note_bodystringNo The body content of the note (supports HTML) properties.hs_timestampstringNo Timestamp when the note activity occurred properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this note noteIdstringYes Note ID
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Notes Delete
Archive a note by ID. This is a soft delete — the note is moved to the
recycle bin and can be restored for approximately 90 days. No public
hard-delete endpoint exists.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "notes",
"action": "delete",
"params": {
"noteId": "<str>"
}
}'
Python SDK
await hubspot . notes . delete (
note_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "notes",
"action": "delete",
"params": {
"noteId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description noteIdstringYes Note ID
Notes Context Store Search
Search and filter notes records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "notes",
"action": "context_store_search",
"params": {
"query": {
"filter": {
"eq": {
"archived": true
}
}
}
}
}'
Python SDK
await hubspot . notes . context_store_search (
query = { "filter" : { "eq" : { "archived" : True } } }
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "notes",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description archivedbooleanIndicates whether the note has been archived createdAtstringTimestamp when the note was created idstringUnique identifier for the note record propertiesobjectObject containing all property values for the note properties.hs_createdatestringDate the note was created properties.hs_lastmodifieddatestringLast modified date of the note properties.hs_note_bodystringThe body content of the note (supports HTML) properties.hs_object_idstringHubSpot object ID properties.hs_timestampstringTimestamp when the note activity occurred properties.hubspot_owner_idstringID of the note owner updatedAtstringTimestamp when the note record was last modified
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].archivedbooleanIndicates whether the note has been archived data[].createdAtstringTimestamp when the note was created data[].idstringUnique identifier for the note record data[].propertiesobjectObject containing all property values for the note data[].properties.hs_createdatestringDate the note was created data[].properties.hs_lastmodifieddatestringLast modified date of the note data[].properties.hs_note_bodystringThe body content of the note (supports HTML) data[].properties.hs_object_idstringHubSpot object ID data[].properties.hs_timestampstringTimestamp when the note activity occurred data[].properties.hubspot_owner_idstringID of the note owner data[].updatedAtstringTimestamp when the note record was last modified
Calls
Calls List
Returns a paginated list of calls
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "calls",
"action": "list"
}'
Python SDK
await hubspot . calls . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "calls",
"action": "list"
}'
Parameters
Parameter Name Type Required Description limitintegerNo The maximum number of results to display per page. afterstringNo The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results. associationsstringNo A comma separated list of associated object types to include in the response. Valid values are contacts, companies, deals, tickets, and custom object type IDs or fully qualified names. propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Field Name Type Description next_cursorstringnext_linkstring
Calls Create
Create a new call engagement in HubSpot CRM. Calls can be associated with contacts,
companies, deals, or tickets by using the associations parameter.
The hs_timestamp property sets when the call activity occurred.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "calls",
"action": "create",
"params": {
"properties": {
"hs_timestamp": "<str>"
},
"associations": []
}
}'
Python SDK
await hubspot . calls . create (
properties = {
"hs_timestamp" : "<str>"
} ,
associations = [ ]
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "calls",
"action": "create",
"params": {
"properties": {
"hs_timestamp": "<str>"
},
"associations": []
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Call properties to set properties.hs_call_bodystringNo Description or notes about the call properties.hs_call_directionstringNo Direction of the call (INBOUND or OUTBOUND) properties.hs_call_dispositionstringNo The outcome of the call (e.g., connected, no answer, busy, left voicemail) properties.hs_call_durationstringNo Duration of the call in milliseconds properties.hs_call_from_numberstringNo Phone number the call was made from properties.hs_call_to_numberstringNo Phone number the call was made to properties.hs_call_statusstringNo Status of the call (e.g., COMPLETED, BUSY, NO_ANSWER, FAILED, CANCELED) properties.hs_call_titlestringNo Title or subject of the call properties.hs_timestampstringYes Required. Timestamp when the call activity occurred (ISO 8601 format, e.g. 2025-01-15T10:30:00.000Z). Use the current time if the user does not specify one. properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this call associationsarray<object>No Associate the call with other CRM records (contacts, companies, deals, tickets) associations.toobjectNo associations.to.idstringNo ID of the record to associate with associations.typesarray<object>No associations.types.associationCategorystringNo Association category (e.g., HUBSPOT_DEFINED) associations.types.associationTypeIdintegerNo Association type ID (e.g., 194 for call-to-contact, 182 for call-to-company, 206 for call-to-deal, 220 for call-to-ticket)
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Calls Get
Get a single call by ID
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "calls",
"action": "get",
"params": {
"callId": "<str>"
}
}'
Python SDK
await hubspot . calls . get (
call_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "calls",
"action": "get",
"params": {
"callId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description callIdstringYes Call ID propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. associationsstringNo A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. idPropertystringNo The name of a property whose values are unique for this object. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Calls Update
Update an existing call's properties by ID.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "calls",
"action": "update",
"params": {
"properties": {},
"callId": "<str>"
}
}'
Python SDK
await hubspot . calls . update (
properties = { } ,
call_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "calls",
"action": "update",
"params": {
"properties": {},
"callId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Call properties to update properties.hs_call_bodystringNo Description or notes about the call properties.hs_call_directionstringNo Direction of the call (INBOUND or OUTBOUND) properties.hs_call_dispositionstringNo The outcome of the call properties.hs_call_durationstringNo Duration of the call in milliseconds properties.hs_call_from_numberstringNo Phone number the call was made from properties.hs_call_to_numberstringNo Phone number the call was made to properties.hs_call_statusstringNo Status of the call (e.g., COMPLETED, BUSY, NO_ANSWER) properties.hs_call_titlestringNo Title or subject of the call properties.hs_timestampstringNo Timestamp when the call activity occurred properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this call callIdstringYes Call ID
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Calls Delete
Archive a call by ID. This is a soft delete — the call is moved to the
recycle bin and can be restored for approximately 90 days. No public
hard-delete endpoint exists.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "calls",
"action": "delete",
"params": {
"callId": "<str>"
}
}'
Python SDK
await hubspot . calls . delete (
call_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "calls",
"action": "delete",
"params": {
"callId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description callIdstringYes Call ID
Calls Context Store Search
Search and filter calls records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "calls",
"action": "context_store_search",
"params": {
"query": {
"filter": {
"eq": {
"archived": true
}
}
}
}
}'
Python SDK
await hubspot . calls . context_store_search (
query = { "filter" : { "eq" : { "archived" : True } } }
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "calls",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description archivedbooleanIndicates whether the call has been archived createdAtstringTimestamp when the call was created idstringUnique identifier for the call record propertiesobjectObject containing all property values for the call properties.hs_call_bodystringDescription or notes about the call properties.hs_call_directionstringDirection of the call (INBOUND or OUTBOUND) properties.hs_call_durationstringDuration of the call in milliseconds properties.hs_call_statusstringStatus of the call (e.g., COMPLETED, BUSY, NO_ANSWER) properties.hs_call_titlestringTitle or subject of the call properties.hs_createdatestringDate the call was created properties.hs_lastmodifieddatestringLast modified date of the call properties.hs_object_idstringHubSpot object ID properties.hs_timestampstringTimestamp when the call activity occurred properties.hubspot_owner_idstringID of the call owner updatedAtstringTimestamp when the call record was last modified
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].archivedbooleanIndicates whether the call has been archived data[].createdAtstringTimestamp when the call was created data[].idstringUnique identifier for the call record data[].propertiesobjectObject containing all property values for the call data[].properties.hs_call_bodystringDescription or notes about the call data[].properties.hs_call_directionstringDirection of the call (INBOUND or OUTBOUND) data[].properties.hs_call_durationstringDuration of the call in milliseconds data[].properties.hs_call_statusstringStatus of the call (e.g., COMPLETED, BUSY, NO_ANSWER) data[].properties.hs_call_titlestringTitle or subject of the call data[].properties.hs_createdatestringDate the call was created data[].properties.hs_lastmodifieddatestringLast modified date of the call data[].properties.hs_object_idstringHubSpot object ID data[].properties.hs_timestampstringTimestamp when the call activity occurred data[].properties.hubspot_owner_idstringID of the call owner data[].updatedAtstringTimestamp when the call record was last modified
Emails
Emails List
Returns a paginated list of emails
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "emails",
"action": "list"
}'
Python SDK
await hubspot . emails . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "emails",
"action": "list"
}'
Parameters
Parameter Name Type Required Description limitintegerNo The maximum number of results to display per page. afterstringNo The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results. associationsstringNo A comma separated list of associated object types to include in the response. Valid values are contacts, companies, deals, tickets, and custom object type IDs or fully qualified names. propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Field Name Type Description next_cursorstringnext_linkstring
Emails Create
Create a new email engagement in HubSpot CRM. Emails can be associated with contacts,
companies, deals, or tickets by using the associations parameter.
The hs_timestamp property sets when the email activity occurred.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "emails",
"action": "create",
"params": {
"properties": {
"hs_timestamp": "<str>",
"hs_email_direction": "<str>"
},
"associations": []
}
}'
Python SDK
await hubspot . emails . create (
properties = {
"hs_timestamp" : "<str>" ,
"hs_email_direction" : "<str>"
} ,
associations = [ ]
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "emails",
"action": "create",
"params": {
"properties": {
"hs_timestamp": "<str>",
"hs_email_direction": "<str>"
},
"associations": []
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Email properties to set properties.hs_email_subjectstringNo Subject line of the email properties.hs_email_textstringNo Plain text body of the email properties.hs_email_htmlstringNo HTML body of the email properties.hs_email_directionstringYes Required. Direction of the email (EMAIL for sent, INCOMING_EMAIL for received, FORWARDED_EMAIL for forwarded) properties.hs_email_statusstringNo Status of the email (BOUNCED, FAILED, SCHEDULED, SENDING, SENT, DRAFT) properties.hs_email_sender_emailstringNo Sender email address properties.hs_email_to_emailstringNo Recipient email address(es) properties.hs_timestampstringYes Required. Timestamp when the email activity occurred (ISO 8601 format, e.g. 2025-01-15T10:30:00.000Z). Use the current time if the user does not specify one. properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this email associationsarray<object>No Associate the email with other CRM records (contacts, companies, deals, tickets) associations.toobjectNo associations.to.idstringNo ID of the record to associate with associations.typesarray<object>No associations.types.associationCategorystringNo Association category (e.g., HUBSPOT_DEFINED) associations.types.associationTypeIdintegerNo Association type ID (e.g., 198 for email-to-contact, 186 for email-to-company, 210 for email-to-deal, 224 for email-to-ticket)
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Emails Get
Get a single email by ID
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "emails",
"action": "get",
"params": {
"emailId": "<str>"
}
}'
Python SDK
await hubspot . emails . get (
email_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "emails",
"action": "get",
"params": {
"emailId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description emailIdstringYes Email ID propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. associationsstringNo A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. idPropertystringNo The name of a property whose values are unique for this object. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Emails Update
Update an existing email's properties by ID.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "emails",
"action": "update",
"params": {
"properties": {},
"emailId": "<str>"
}
}'
Python SDK
await hubspot . emails . update (
properties = { } ,
email_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "emails",
"action": "update",
"params": {
"properties": {},
"emailId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Email properties to update properties.hs_email_subjectstringNo Subject line of the email properties.hs_email_textstringNo Plain text body of the email properties.hs_email_htmlstringNo HTML body of the email properties.hs_email_directionstringNo Direction of the email (EMAIL, INCOMING_EMAIL, FORWARDED_EMAIL) properties.hs_email_statusstringNo Status of the email (BOUNCED, FAILED, SCHEDULED, SENDING, SENT, DRAFT) properties.hs_timestampstringNo Timestamp when the email activity occurred properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this email emailIdstringYes Email ID
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Emails Delete
Archive an email by ID. This is a soft delete — the email is moved to the
recycle bin and can be restored for approximately 90 days. No public
hard-delete endpoint exists.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "emails",
"action": "delete",
"params": {
"emailId": "<str>"
}
}'
Python SDK
await hubspot . emails . delete (
email_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "emails",
"action": "delete",
"params": {
"emailId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description emailIdstringYes Email ID
Emails Context Store Search
Search and filter emails records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "emails",
"action": "context_store_search",
"params": {
"query": {
"filter": {
"eq": {
"archived": true
}
}
}
}
}'
Python SDK
await hubspot . emails . context_store_search (
query = { "filter" : { "eq" : { "archived" : True } } }
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "emails",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description archivedbooleanIndicates whether the email has been archived createdAtstringTimestamp when the email was created idstringUnique identifier for the email record propertiesobjectObject containing all property values for the email properties.hs_createdatestringDate the email was created properties.hs_email_directionstringDirection of the email (EMAIL, INCOMING_EMAIL, FORWARDED_EMAIL) properties.hs_email_statusstringStatus of the email (BOUNCED, FAILED, SCHEDULED, SENDING, SENT, DRAFT) properties.hs_email_subjectstringSubject line of the email properties.hs_email_textstringPlain text body of the email properties.hs_lastmodifieddatestringLast modified date of the email properties.hs_object_idstringHubSpot object ID properties.hs_timestampstringTimestamp when the email activity occurred properties.hubspot_owner_idstringID of the email owner updatedAtstringTimestamp when the email record was last modified
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].archivedbooleanIndicates whether the email has been archived data[].createdAtstringTimestamp when the email was created data[].idstringUnique identifier for the email record data[].propertiesobjectObject containing all property values for the email data[].properties.hs_createdatestringDate the email was created data[].properties.hs_email_directionstringDirection of the email (EMAIL, INCOMING_EMAIL, FORWARDED_EMAIL) data[].properties.hs_email_statusstringStatus of the email (BOUNCED, FAILED, SCHEDULED, SENDING, SENT, DRAFT) data[].properties.hs_email_subjectstringSubject line of the email data[].properties.hs_email_textstringPlain text body of the email data[].properties.hs_lastmodifieddatestringLast modified date of the email data[].properties.hs_object_idstringHubSpot object ID data[].properties.hs_timestampstringTimestamp when the email activity occurred data[].properties.hubspot_owner_idstringID of the email owner data[].updatedAtstringTimestamp when the email record was last modified
Meetings
Meetings List
Returns a paginated list of meetings
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "meetings",
"action": "list"
}'
Python SDK
await hubspot . meetings . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "meetings",
"action": "list"
}'
Parameters
Parameter Name Type Required Description limitintegerNo The maximum number of results to display per page. afterstringNo The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results. associationsstringNo A comma separated list of associated object types to include in the response. Valid values are contacts, companies, deals, tickets, and custom object type IDs or fully qualified names. propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Field Name Type Description next_cursorstringnext_linkstring
Meetings Create
Create a new meeting engagement in HubSpot CRM. Meetings can be associated with contacts,
companies, deals, or tickets by using the associations parameter.
The hs_timestamp property sets when the meeting activity occurred.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "meetings",
"action": "create",
"params": {
"properties": {
"hs_timestamp": "<str>",
"hs_meeting_title": "<str>"
},
"associations": []
}
}'
Python SDK
await hubspot . meetings . create (
properties = {
"hs_timestamp" : "<str>" ,
"hs_meeting_title" : "<str>"
} ,
associations = [ ]
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "meetings",
"action": "create",
"params": {
"properties": {
"hs_timestamp": "<str>",
"hs_meeting_title": "<str>"
},
"associations": []
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Meeting properties to set properties.hs_meeting_titlestringYes Required. Title of the meeting properties.hs_meeting_bodystringNo Description or notes about the meeting (supports HTML) properties.hs_meeting_start_timestringNo Start time of the meeting (ISO 8601 format, e.g. 2025-01-15T10:30:00.000Z) properties.hs_meeting_end_timestringNo End time of the meeting (ISO 8601 format, e.g. 2025-01-15T11:30:00.000Z) properties.hs_meeting_locationstringNo Location of the meeting properties.hs_meeting_outcomestringNo Outcome of the meeting (e.g., SCHEDULED, COMPLETED, RESCHEDULED, NO_SHOW, CANCELED) properties.hs_internal_meeting_notesstringNo Internal notes about the meeting properties.hs_timestampstringYes Required. Timestamp when the meeting activity occurred (ISO 8601 format, e.g. 2025-01-15T10:30:00.000Z). Use the current time if the user does not specify one. properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this meeting associationsarray<object>No Associate the meeting with other CRM records (contacts, companies, deals, tickets) associations.toobjectNo associations.to.idstringNo ID of the record to associate with associations.typesarray<object>No associations.types.associationCategorystringNo Association category (e.g., HUBSPOT_DEFINED) associations.types.associationTypeIdintegerNo Association type ID (e.g., 200 for meeting-to-contact, 188 for meeting-to-company, 212 for meeting-to-deal, 226 for meeting-to-ticket)
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Meetings Get
Get a single meeting by ID
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "meetings",
"action": "get",
"params": {
"meetingId": "<str>"
}
}'
Python SDK
await hubspot . meetings . get (
meeting_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "meetings",
"action": "get",
"params": {
"meetingId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description meetingIdstringYes Meeting ID propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. associationsstringNo A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. idPropertystringNo The name of a property whose values are unique for this object. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Meetings Update
Update an existing meeting's properties by ID.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "meetings",
"action": "update",
"params": {
"properties": {},
"meetingId": "<str>"
}
}'
Python SDK
await hubspot . meetings . update (
properties = { } ,
meeting_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "meetings",
"action": "update",
"params": {
"properties": {},
"meetingId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Meeting properties to update properties.hs_meeting_titlestringNo Title of the meeting properties.hs_meeting_bodystringNo Description or notes about the meeting (supports HTML) properties.hs_meeting_start_timestringNo Start time of the meeting (ISO 8601 format) properties.hs_meeting_end_timestringNo End time of the meeting (ISO 8601 format) properties.hs_meeting_locationstringNo Location of the meeting properties.hs_meeting_outcomestringNo Outcome of the meeting (e.g., SCHEDULED, COMPLETED, RESCHEDULED, NO_SHOW, CANCELED) properties.hs_internal_meeting_notesstringNo Internal notes about the meeting properties.hs_timestampstringNo Timestamp when the meeting activity occurred properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this meeting meetingIdstringYes Meeting ID
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Meetings Delete
Archive a meeting by ID. This is a soft delete — the meeting is moved to the
recycle bin and can be restored for approximately 90 days. No public
hard-delete endpoint exists.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "meetings",
"action": "delete",
"params": {
"meetingId": "<str>"
}
}'
Python SDK
await hubspot . meetings . delete (
meeting_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "meetings",
"action": "delete",
"params": {
"meetingId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description meetingIdstringYes Meeting ID
Meetings Context Store Search
Search and filter meetings records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "meetings",
"action": "context_store_search",
"params": {
"query": {
"filter": {
"eq": {
"archived": true
}
}
}
}
}'
Python SDK
await hubspot . meetings . context_store_search (
query = { "filter" : { "eq" : { "archived" : True } } }
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "meetings",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description archivedbooleanIndicates whether the meeting has been archived createdAtstringTimestamp when the meeting was created idstringUnique identifier for the meeting record propertiesobjectObject containing all property values for the meeting properties.hs_createdatestringDate the meeting was created properties.hs_lastmodifieddatestringLast modified date of the meeting properties.hs_meeting_bodystringDescription or notes about the meeting properties.hs_meeting_end_timestringEnd time of the meeting properties.hs_meeting_locationstringLocation of the meeting properties.hs_meeting_outcomestringOutcome of the meeting (e.g., SCHEDULED, COMPLETED, NO_SHOW, CANCELED) properties.hs_meeting_start_timestringStart time of the meeting properties.hs_meeting_titlestringTitle of the meeting properties.hs_object_idstringHubSpot object ID properties.hs_timestampstringTimestamp when the meeting activity occurred properties.hubspot_owner_idstringID of the meeting owner updatedAtstringTimestamp when the meeting record was last modified
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].archivedbooleanIndicates whether the meeting has been archived data[].createdAtstringTimestamp when the meeting was created data[].idstringUnique identifier for the meeting record data[].propertiesobjectObject containing all property values for the meeting data[].properties.hs_createdatestringDate the meeting was created data[].properties.hs_lastmodifieddatestringLast modified date of the meeting data[].properties.hs_meeting_bodystringDescription or notes about the meeting data[].properties.hs_meeting_end_timestringEnd time of the meeting data[].properties.hs_meeting_locationstringLocation of the meeting data[].properties.hs_meeting_outcomestringOutcome of the meeting (e.g., SCHEDULED, COMPLETED, NO_SHOW, CANCELED) data[].properties.hs_meeting_start_timestringStart time of the meeting data[].properties.hs_meeting_titlestringTitle of the meeting data[].properties.hs_object_idstringHubSpot object ID data[].properties.hs_timestampstringTimestamp when the meeting activity occurred data[].properties.hubspot_owner_idstringID of the meeting owner data[].updatedAtstringTimestamp when the meeting record was last modified
Tasks
Tasks List
Returns a paginated list of tasks
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "tasks",
"action": "list"
}'
Python SDK
await hubspot . tasks . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tasks",
"action": "list"
}'
Parameters
Parameter Name Type Required Description limitintegerNo The maximum number of results to display per page. afterstringNo The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results. associationsstringNo A comma separated list of associated object types to include in the response. Valid values are contacts, companies, deals, tickets, and custom object type IDs or fully qualified names. propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Field Name Type Description next_cursorstringnext_linkstring
Tasks Create
Create a new task in HubSpot CRM. Tasks can be associated with contacts,
companies, deals, or tickets by using the associations parameter.
The hs_timestamp property sets when the task activity occurred.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "tasks",
"action": "create",
"params": {
"properties": {
"hs_timestamp": "<str>",
"hs_task_subject": "<str>"
},
"associations": []
}
}'
Python SDK
await hubspot . tasks . create (
properties = {
"hs_timestamp" : "<str>" ,
"hs_task_subject" : "<str>"
} ,
associations = [ ]
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tasks",
"action": "create",
"params": {
"properties": {
"hs_timestamp": "<str>",
"hs_task_subject": "<str>"
},
"associations": []
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Task properties to set properties.hs_task_bodystringNo Description or notes for the task (supports HTML) properties.hs_task_subjectstringYes Required. Subject or title of the task properties.hs_task_statusstringNo Status of the task (NOT_STARTED, IN_PROGRESS, WAITING, COMPLETED, DEFERRED). Defaults to NOT_STARTED. properties.hs_task_prioritystringNo Priority of the task (LOW, MEDIUM, HIGH) properties.hs_task_typestringNo Type of the task (TODO, CALL, EMAIL). Defaults to TODO. properties.hs_task_remindersstringNo Reminder timestamp for the task (epoch milliseconds) properties.hs_timestampstringYes Required. Due date / timestamp for the task (ISO 8601 format, e.g. 2025-01-15T10:30:00.000Z). Use the current time if the user does not specify one. properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this task associationsarray<object>No Associate the task with other CRM records (contacts, companies, deals, tickets) associations.toobjectNo associations.to.idstringNo ID of the record to associate with associations.typesarray<object>No associations.types.associationCategorystringNo Association category (e.g., HUBSPOT_DEFINED) associations.types.associationTypeIdintegerNo Association type ID (e.g., 204 for task-to-contact, 192 for task-to-company, 216 for task-to-deal, 228 for task-to-ticket)
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Tasks Get
Get a single task by ID
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "tasks",
"action": "get",
"params": {
"taskId": "<str>"
}
}'
Python SDK
await hubspot . tasks . get (
task_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tasks",
"action": "get",
"params": {
"taskId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description taskIdstringYes Task ID propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. associationsstringNo A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. idPropertystringNo The name of a property whose values are unique for this object. archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Tasks Update
Update an existing task's properties by ID.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "tasks",
"action": "update",
"params": {
"properties": {},
"taskId": "<str>"
}
}'
Python SDK
await hubspot . tasks . update (
properties = { } ,
task_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tasks",
"action": "update",
"params": {
"properties": {},
"taskId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description propertiesobjectYes Task properties to update properties.hs_task_bodystringNo Description or notes for the task (supports HTML) properties.hs_task_subjectstringNo Subject or title of the task properties.hs_task_statusstringNo Status of the task (NOT_STARTED, IN_PROGRESS, WAITING, COMPLETED, DEFERRED) properties.hs_task_prioritystringNo Priority of the task (LOW, MEDIUM, HIGH) properties.hs_task_typestringNo Type of the task (TODO, CALL, EMAIL) properties.hs_task_remindersstringNo Reminder timestamp for the task (epoch milliseconds) properties.hs_timestampstringNo Due date / timestamp for the task properties.hubspot_owner_idstringNo ID of the HubSpot owner to assign to this task taskIdstringYes Task ID
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullassociationsobject | null
Tasks Delete
Archive a task by ID. This is a soft delete — the task is moved to the
recycle bin and can be restored for approximately 90 days. No public
hard-delete endpoint exists.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "tasks",
"action": "delete",
"params": {
"taskId": "<str>"
}
}'
Python SDK
await hubspot . tasks . delete (
task_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tasks",
"action": "delete",
"params": {
"taskId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description taskIdstringYes Task ID
Tasks Context Store Search
Search and filter tasks records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "tasks",
"action": "context_store_search",
"params": {
"query": {
"filter": {
"eq": {
"archived": true
}
}
}
}
}'
Python SDK
await hubspot . tasks . context_store_search (
query = { "filter" : { "eq" : { "archived" : True } } }
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tasks",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description archivedbooleanIndicates whether the task has been archived createdAtstringTimestamp when the task was created idstringUnique identifier for the task record propertiesobjectObject containing all property values for the task properties.hs_createdatestringDate the task was created properties.hs_lastmodifieddatestringLast modified date of the task properties.hs_object_idstringHubSpot object ID properties.hs_task_bodystringDescription or notes for the task properties.hs_task_prioritystringPriority of the task (LOW, MEDIUM, HIGH) properties.hs_task_statusstringStatus of the task (NOT_STARTED, IN_PROGRESS, WAITING, COMPLETED, DEFERRED) properties.hs_task_subjectstringSubject or title of the task properties.hs_task_typestringType of the task (TODO, CALL, EMAIL) properties.hs_timestampstringDue date / timestamp for the task properties.hubspot_owner_idstringID of the task owner updatedAtstringTimestamp when the task record was last modified
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].archivedbooleanIndicates whether the task has been archived data[].createdAtstringTimestamp when the task was created data[].idstringUnique identifier for the task record data[].propertiesobjectObject containing all property values for the task data[].properties.hs_createdatestringDate the task was created data[].properties.hs_lastmodifieddatestringLast modified date of the task data[].properties.hs_object_idstringHubSpot object ID data[].properties.hs_task_bodystringDescription or notes for the task data[].properties.hs_task_prioritystringPriority of the task (LOW, MEDIUM, HIGH) data[].properties.hs_task_statusstringStatus of the task (NOT_STARTED, IN_PROGRESS, WAITING, COMPLETED, DEFERRED) data[].properties.hs_task_subjectstringSubject or title of the task data[].properties.hs_task_typestringType of the task (TODO, CALL, EMAIL) data[].properties.hs_timestampstringDue date / timestamp for the task data[].properties.hubspot_owner_idstringID of the task owner data[].updatedAtstringTimestamp when the task record was last modified
Schemas
Schemas List
Returns all custom object schemas to discover available custom objects
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "schemas",
"action": "list"
}'
Python SDK
await hubspot . schemas . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "schemas",
"action": "list"
}'
Parameters
Parameter Name Type Required Description archivedbooleanNo Whether to return only results that have been archived.
Response Schema Records Field Name Type Description idstringnamestringlabelsobjectobjectTypeIdstringfullyQualifiedNamestringrequiredPropertiesarray<string>searchablePropertiesarray<string>primaryDisplayPropertystringsecondaryDisplayPropertiesarray<string>descriptionstring | nullallowsSensitivePropertiesbooleanarchivedbooleanrestorablebooleanmetaTypestringcreatedByUserIdintegerupdatedByUserIdintegerpropertiesarray<object>associationsarray<object>createdAtstringupdatedAtstring
Schemas Get
Get the schema for a specific custom object type
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "schemas",
"action": "get",
"params": {
"objectType": "<str>"
}
}'
Python SDK
await hubspot . schemas . get (
object_type = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "schemas",
"action": "get",
"params": {
"objectType": "<str>"
}
}'
Parameters
Parameter Name Type Required Description objectTypestringYes Fully qualified name or object type ID of your schema.
Response Schema Records Field Name Type Description idstringnamestringlabelsobjectobjectTypeIdstringfullyQualifiedNamestringrequiredPropertiesarray<string>searchablePropertiesarray<string>primaryDisplayPropertystringsecondaryDisplayPropertiesarray<string>descriptionstring | nullallowsSensitivePropertiesbooleanarchivedbooleanrestorablebooleanmetaTypestringcreatedByUserIdintegerupdatedByUserIdintegerpropertiesarray<object>associationsarray<object>createdAtstringupdatedAtstring
Objects
Objects List
Read a page of objects. Control what is returned via the properties query param.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "objects",
"action": "list",
"params": {
"objectType": "<str>"
}
}'
Python SDK
await hubspot . objects . list (
object_type = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "objects",
"action": "list",
"params": {
"objectType": "<str>"
}
}'
Parameters
Parameter Name Type Required Description objectTypestringYes Object type ID or fully qualified name (e.g., "cars" or "p12345_cars") limitintegerNo The maximum number of results to display per page. afterstringNo The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results. propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. archivedbooleanNo Whether to return only results that have been archived. associationsstringNo A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Field Name Type Description next_cursorstringnext_linkstring
Objects Get
Read an Object identified by {objectId}. {objectId} refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty query param. Control what is returned via the properties query param.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "objects",
"action": "get",
"params": {
"objectType": "<str>",
"objectId": "<str>"
}
}'
Python SDK
await hubspot . objects . get (
object_type = "<str>" ,
object_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "objects",
"action": "get",
"params": {
"objectType": "<str>",
"objectId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description objectTypestringYes Object type ID or fully qualified name objectIdstringYes Object record ID propertiesstringNo A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. archivedbooleanNo Whether to return only results that have been archived. associationsstringNo A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. idPropertystringNo The name of a property whose values are unique for this object. propertiesWithHistorystringNo A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
Response Schema Records Field Name Type Description idstringpropertiesobjectcreatedAtstringupdatedAtstringarchivedbooleanarchivedAtstring | nullpropertiesWithHistoryobject | nullassociationsobject | nullobjectWriteTraceIdstring | nullurlstring | null
Associations
Associations List
Retrieve all associations between a specific CRM record and a target object type using
the v4 associations API. Returns up to 500 associations per call. Use the after cursor
for pagination when there are more results. For example, retrieve all companies associated
with a contact, or all deals associated with a company.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "associations",
"action": "list",
"params": {
"fromObjectType": "<str>",
"fromObjectId": "<str>",
"toObjectType": "<str>"
}
}'
Python SDK
await hubspot . associations . list (
from_object_type = "<str>" ,
from_object_id = "<str>" ,
to_object_type = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "associations",
"action": "list",
"params": {
"fromObjectType": "<str>",
"fromObjectId": "<str>",
"toObjectType": "<str>"
}
}'
Parameters
Parameter Name Type Required Description fromObjectTypestringYes Object type of the source record (e.g., contacts, companies, deals, tickets, or a custom object type ID) fromObjectIdstringYes ID of the source record to retrieve associations for toObjectTypestringYes Object type of the target records to retrieve (e.g., contacts, companies, deals, tickets, or a custom object type ID) afterstringNo Paging cursor token from a previous response for retrieving subsequent pages of results limitintegerNo Maximum number of results to return per page (default 500, max 500)
Response Schema Records Field Name Type Description resultsarray<object>pagingobject
Field Name Type Description next_cursorstringnext_linkstring
Associations Create
Create a labeled association between two CRM records using the v4 associations API.
Labeled associations carry an association type ID and category that describe the relationship
(e.g., "Primary Company", "Billing Contact"). This is idempotent — calling it again with the same
IDs and label has no effect. Use the association type ID and category from the HubSpot association
definitions for the relevant object pair. Common association type IDs include:
Contact to Company: 279 (HUBSPOT_DEFINED) for default, 1 (HUBSPOT_DEFINED) for Primary
Company to Contact: 280 (HUBSPOT_DEFINED) for default, 2 (HUBSPOT_DEFINED) for Primary
Contact to Deal: 4 (HUBSPOT_DEFINED) for default
Deal to Contact: 3 (HUBSPOT_DEFINED) for default
Deal to Company: 341 (HUBSPOT_DEFINED) for default, 5 (HUBSPOT_DEFINED) for Primary
Company to Deal: 342 (HUBSPOT_DEFINED) for default, 6 (HUBSPOT_DEFINED) for Primary
Contact to Ticket: 15 (HUBSPOT_DEFINED) for default
Ticket to Contact: 16 (HUBSPOT_DEFINED) for default
Ticket to Company: 339 (HUBSPOT_DEFINED) for default, 26 (HUBSPOT_DEFINED) for Primary
Company to Ticket: 340 (HUBSPOT_DEFINED) for default, 25 (HUBSPOT_DEFINED) for Primary
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "associations",
"action": "create",
"params": {
"associationCategory": "<str>",
"associationTypeId": 0,
"fromObjectType": "<str>",
"fromObjectId": "<str>",
"toObjectType": "<str>",
"toObjectId": "<str>"
}
}'
Python SDK
await hubspot . associations . create (
association_category = "<str>" ,
association_type_id = 0 ,
from_object_type = "<str>" ,
from_object_id = "<str>" ,
to_object_type = "<str>" ,
to_object_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "associations",
"action": "create",
"params": {
"associationCategory": "<str>",
"associationTypeId": 0,
"fromObjectType": "<str>",
"fromObjectId": "<str>",
"toObjectType": "<str>",
"toObjectId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description associationCategory"HUBSPOT_DEFINED" | "USER_DEFINED"Yes Category of the association type. Use HUBSPOT_DEFINED for standard HubSpot association types (e.g., primary company, default contact-to-deal) or USER_DEFINED for custom association labels created in your HubSpot portal. associationTypeIdintegerYes Numeric identifier for the association type. Common IDs include: 279 = Contact to Company (default), 280 = Company to Contact (default), 4 = Contact to Deal (default), 3 = Deal to Contact (default), 341 = Deal to Company (default), 342 = Company to Deal (default), 1 = Contact to Primary Company, 2 = Company to Primary Contact, 5 = Deal to Primary Company, 6 = Primary Company to Deal, 15 = Contact to Ticket (default), 16 = Ticket to Contact (default), 339 = Ticket to Company (default), 340 = Company to Ticket (default), 26 = Ticket to Primary Company, 25 = Primary Company to Ticket. Use the association definitions API to discover additional type IDs. fromObjectTypestringYes Object type of the source record (e.g., contacts, companies, deals, tickets, or a custom object type ID) fromObjectIdstringYes ID of the source record to associate from toObjectTypestringYes Object type of the target record (e.g., contacts, companies, deals, tickets, or a custom object type ID) toObjectIdstringYes ID of the target record to associate to
Response Schema Records Field Name Type Description statusstringresultsarray<object>startedAtstringcompletedAtstringrequestedAtstring | null
Associations Delete
Delete all associations between two specific CRM records using the v4 associations API.
This removes every association (both default and labeled) between the two specified records.
This operation is irreversible — deleted associations must be recreated manually.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "hubspot",
"entity": "associations",
"action": "delete",
"params": {
"fromObjectType": "<str>",
"fromObjectId": "<str>",
"toObjectType": "<str>",
"toObjectId": "<str>"
}
}'
Python SDK
await hubspot . associations . delete (
from_object_type = "<str>" ,
from_object_id = "<str>" ,
to_object_type = "<str>" ,
to_object_id = "<str>"
)
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "associations",
"action": "delete",
"params": {
"fromObjectType": "<str>",
"fromObjectId": "<str>",
"toObjectType": "<str>",
"toObjectId": "<str>"
}
}'
Parameters
Parameter Name Type Required Description fromObjectTypestringYes Object type of the source record (e.g., contacts, companies, deals, tickets, or a custom object type ID) fromObjectIdstringYes ID of the source record toObjectTypestringYes Object type of the target record (e.g., contacts, companies, deals, tickets, or a custom object type ID) toObjectIdstringYes ID of the target record