Skip to main content

Hubspot full reference

This is the full reference documentation for the Hubspot agent connector.

Supported entities and actions

The Hubspot connector supports the following entities and actions.

EntityActions
ContactsList, Get, API Search, Search
CompaniesList, Get, API Search, Search
DealsList, Get, API Search, Search
TicketsList, Get, API Search
SchemasList, Get
ObjectsList, Get

Contacts

Contacts List

Returns a paginated list of contacts

Python SDK

await hubspot.contacts.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "contacts",
"action": "list"
}'

Parameters

Parameter NameTypeRequiredDescription
limitintegerNoThe maximum number of results to display per page.
afterstringNoThe 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.
associationsstringNoA 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").
propertiesstringNoA 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.
propertiesWithHistorystringNoA 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.
archivedbooleanNoWhether to return only results that have been archived.
Response Schema

Records

Field NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Meta

Field NameTypeDescription
next_cursorstring
next_linkstring

Contacts Get

Get a single contact by ID

Python SDK

await hubspot.contacts.get(
contact_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "contacts",
"action": "get",
"params": {
"contactId": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
contactIdstringYesContact ID
propertiesstringNoA 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.
propertiesWithHistorystringNoA 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.
associationsstringNoA comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
idPropertystringNoThe name of a property whose values are unique for this object.
archivedbooleanNoWhether to return only results that have been archived.
Response Schema

Records

Field NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Search for contacts by filtering on properties, searching through associations, and sorting results.

Python SDK

await hubspot.contacts.api_search()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "contacts",
"action": "api_search"
}'

Parameters

Parameter NameTypeRequiredDescription
filterGroupsarray<object>NoUp 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.propertyNamestringNoThe name of the property to apply the filter on.
filterGroups.filters.valuestringNoThe value to match against the property.
filterGroups.filters.valuesarray<string>NoThe values to match against the property.
propertiesarray<string>NoA list of property names to include in the response.
limitintegerNoMaximum number of results to return
afterstringNoA paging cursor token for retrieving subsequent pages.
sortsarray<object>NoSort criteria
sorts.propertyNamestringNo
sorts.direction"ASCENDING" | "DESCENDING"No
querystringNoThe search query string, up to 3000 characters.
Response Schema

Records

Field NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Meta

Field NameTypeDescription
totalinteger
next_cursorstring
next_linkstring

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.

Python SDK

await hubspot.contacts.search(
query={"filter": {"eq": {"archived": True}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "contacts",
"action": "search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's next_cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
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.
updatedAtstringTimestamp indicating when the contact record was last modified.
Response Schema
Field NameTypeDescription
hitsarrayList of matching records
hits[].idstringRecord identifier
hits[].scorenumberRelevance score
hits[].dataobjectRecord data containing the searchable fields listed above
hits[].data.archivedbooleanBoolean flag indicating whether the contact has been archived or deleted.
hits[].data.companiesarrayAssociated company records linked to this contact.
hits[].data.createdAtstringTimestamp indicating when the contact was first created in the system.
hits[].data.idstringUnique identifier for the contact record.
hits[].data.propertiesobjectKey-value object storing all contact properties and their values.
hits[].data.updatedAtstringTimestamp indicating when the contact record was last modified.
next_cursorstring | nullCursor for next page of results
took_msnumberQuery execution time in milliseconds

Companies

Companies List

Retrieve all companies, using query parameters to control the information that gets returned.

Python SDK

await hubspot.companies.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "companies",
"action": "list"
}'

Parameters

Parameter NameTypeRequiredDescription
limitintegerNoThe maximum number of results to display per page.
afterstringNoThe 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.
associationsstringNoA 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").
propertiesstringNoA 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.
propertiesWithHistorystringNoA 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.
archivedbooleanNoWhether to return only results that have been archived.
Response Schema

Records

Field NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Meta

Field NameTypeDescription
next_cursorstring
next_linkstring

Companies Get

Get a single company by ID

Python SDK

await hubspot.companies.get(
company_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "companies",
"action": "get",
"params": {
"companyId": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
companyIdstringYesCompany ID
propertiesstringNoA 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.
propertiesWithHistorystringNoA 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.
associationsstringNoA comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
idPropertystringNoThe name of a property whose values are unique for this object.
archivedbooleanNoWhether to return only results that have been archived.
Response Schema

Records

Field NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Search for companies by filtering on properties, searching through associations, and sorting results.

Python SDK

await hubspot.companies.api_search()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "companies",
"action": "api_search"
}'

Parameters

Parameter NameTypeRequiredDescription
filterGroupsarray<object>NoUp 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.propertyNamestringNoThe name of the property to apply the filter on.
filterGroups.filters.valuestringNoThe value to match against the property.
filterGroups.filters.valuesarray<string>NoThe values to match against the property.
propertiesarray<string>NoA list of property names to include in the response.
limitintegerNoMaximum number of results to return
afterstringNoA paging cursor token for retrieving subsequent pages.
sortsarray<object>NoSort criteria
sorts.propertyNamestringNo
sorts.direction"ASCENDING" | "DESCENDING"No
querystringNoThe search query string, up to 3000 characters.
Response Schema

Records

Field NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Meta

Field NameTypeDescription
totalinteger
next_cursorstring
next_linkstring

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.

Python SDK

await hubspot.companies.search(
query={"filter": {"eq": {"archived": True}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "companies",
"action": "search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's next_cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
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
updatedAtstringTimestamp when the company record was last modified
Response Schema
Field NameTypeDescription
hitsarrayList of matching records
hits[].idstringRecord identifier
hits[].scorenumberRelevance score
hits[].dataobjectRecord data containing the searchable fields listed above
hits[].data.archivedbooleanIndicates whether the company has been deleted and moved to the recycling bin
hits[].data.contactsarrayAssociated contact records linked to this company
hits[].data.createdAtstringTimestamp when the company record was created
hits[].data.idstringUnique identifier for the company record
hits[].data.propertiesobjectObject containing all property values for the company
hits[].data.updatedAtstringTimestamp when the company record was last modified
next_cursorstring | nullCursor for next page of results
took_msnumberQuery execution time in milliseconds

Deals

Deals List

Returns a paginated list of deals

Python SDK

await hubspot.deals.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "deals",
"action": "list"
}'

Parameters

Parameter NameTypeRequiredDescription
limitintegerNoThe maximum number of results to display per page.
afterstringNoThe 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.
associationsstringNoA 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").
propertiesstringNoA 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.
propertiesWithHistorystringNoA 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.
archivedbooleanNoWhether to return only results that have been archived.
Response Schema

Records

Field NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Meta

Field NameTypeDescription
next_cursorstring
next_linkstring

Deals Get

Get a single deal by ID

Python SDK

await hubspot.deals.get(
deal_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "deals",
"action": "get",
"params": {
"dealId": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
dealIdstringYesDeal ID
propertiesstringNoA 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.
propertiesWithHistorystringNoA 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.
associationsstringNoA comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
idPropertystringNoThe name of a property whose values are unique for this object.
archivedbooleanNoWhether to return only results that have been archived.
Response Schema

Records

Field NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Search deals with filters and sorting

Python SDK

await hubspot.deals.api_search()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "deals",
"action": "api_search"
}'

Parameters

Parameter NameTypeRequiredDescription
filterGroupsarray<object>NoUp 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.propertyNamestringNoThe name of the property to apply the filter on.
filterGroups.filters.valuestringNoThe value to match against the property.
filterGroups.filters.valuesarray<string>NoThe values to match against the property.
propertiesarray<string>NoA list of property names to include in the response.
limitintegerNoMaximum number of results to return
afterstringNoA paging cursor token for retrieving subsequent pages.
sortsarray<object>NoSort criteria
sorts.propertyNamestringNo
sorts.direction"ASCENDING" | "DESCENDING"No
querystringNoThe search query string, up to 3000 characters.
Response Schema

Records

Field NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Meta

Field NameTypeDescription
totalinteger
next_cursorstring
next_linkstring

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.

Python SDK

await hubspot.deals.search(
query={"filter": {"eq": {"archived": True}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "deals",
"action": "search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's next_cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
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
updatedAtstringTimestamp when the deal record was last modified
Response Schema
Field NameTypeDescription
hitsarrayList of matching records
hits[].idstringRecord identifier
hits[].scorenumberRelevance score
hits[].dataobjectRecord data containing the searchable fields listed above
hits[].data.archivedbooleanIndicates whether the deal has been deleted and moved to the recycling bin
hits[].data.companiesarrayCollection of company records associated with the deal
hits[].data.contactsarrayCollection of contact records associated with the deal
hits[].data.createdAtstringTimestamp when the deal record was originally created
hits[].data.idstringUnique identifier for the deal record
hits[].data.line_itemsarrayCollection of product line items associated with the deal
hits[].data.propertiesobjectKey-value object containing all deal properties and custom fields
hits[].data.updatedAtstringTimestamp when the deal record was last modified
next_cursorstring | nullCursor for next page of results
took_msnumberQuery execution time in milliseconds

Tickets

Tickets List

Returns a paginated list of tickets

Python SDK

await hubspot.tickets.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tickets",
"action": "list"
}'

Parameters

Parameter NameTypeRequiredDescription
limitintegerNoThe maximum number of results to display per page.
afterstringNoThe 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.
associationsstringNoA 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").
propertiesstringNoA 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.
propertiesWithHistorystringNoA 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.
archivedbooleanNoWhether to return only results that have been archived.
Response Schema

Records

Field NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Meta

Field NameTypeDescription
next_cursorstring
next_linkstring

Tickets Get

Get a single ticket by ID

Python SDK

await hubspot.tickets.get(
ticket_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tickets",
"action": "get",
"params": {
"ticketId": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
ticketIdstringYesTicket ID
propertiesstringNoA 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.
propertiesWithHistorystringNoA 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.
associationsstringNoA comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
idPropertystringNoThe name of a property whose values are unique for this object.
archivedbooleanNoWhether to return only results that have been archived.
Response Schema

Records

Field NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Search for tickets by filtering on properties, searching through associations, and sorting results.

Python SDK

await hubspot.tickets.api_search()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tickets",
"action": "api_search"
}'

Parameters

Parameter NameTypeRequiredDescription
filterGroupsarray<object>NoUp 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.propertyNamestringNoThe name of the property to apply the filter on.
filterGroups.filters.valuestringNoThe value to match against the property.
filterGroups.filters.valuesarray<string>NoThe values to match against the property.
propertiesarray<string>NoA list of property names to include in the response.
limitintegerNoMaximum number of results to return
afterstringNoA paging cursor token for retrieving subsequent pages.
sortsarray<object>NoSort criteria
sorts.propertyNamestringNo
sorts.direction"ASCENDING" | "DESCENDING"No
querystringNoThe search query string, up to 3000 characters.
Response Schema

Records

Field NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Meta

Field NameTypeDescription
totalinteger
next_cursorstring
next_linkstring

Schemas

Schemas List

Returns all custom object schemas to discover available custom objects

Python SDK

await hubspot.schemas.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "schemas",
"action": "list"
}'

Parameters

Parameter NameTypeRequiredDescription
archivedbooleanNoWhether to return only results that have been archived.
Response Schema

Records

Field NameTypeDescription
idstring
namestring
labelsobject
objectTypeIdstring
fullyQualifiedNamestring
requiredPropertiesarray<string>
searchablePropertiesarray<string>
primaryDisplayPropertystring
secondaryDisplayPropertiesarray<string>
descriptionstring | null
allowsSensitivePropertiesboolean
archivedboolean
restorableboolean
metaTypestring
createdByUserIdinteger
updatedByUserIdinteger
propertiesarray<object>
associationsarray<object>
createdAtstring
updatedAtstring

Schemas Get

Get the schema for a specific custom object type

Python SDK

await hubspot.schemas.get(
object_type="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "schemas",
"action": "get",
"params": {
"objectType": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
objectTypestringYesFully qualified name or object type ID of your schema.
Response Schema

Records

Field NameTypeDescription
idstring
namestring
labelsobject
objectTypeIdstring
fullyQualifiedNamestring
requiredPropertiesarray<string>
searchablePropertiesarray<string>
primaryDisplayPropertystring
secondaryDisplayPropertiesarray<string>
descriptionstring | null
allowsSensitivePropertiesboolean
archivedboolean
restorableboolean
metaTypestring
createdByUserIdinteger
updatedByUserIdinteger
propertiesarray<object>
associationsarray<object>
createdAtstring
updatedAtstring

Objects

Objects List

Read a page of objects. Control what is returned via the properties query param.

Python SDK

await hubspot.objects.list(
object_type="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "objects",
"action": "list",
"params": {
"objectType": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
objectTypestringYesObject type ID or fully qualified name (e.g., "cars" or "p12345_cars")
limitintegerNoThe maximum number of results to display per page.
afterstringNoThe 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.
propertiesstringNoA 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.
archivedbooleanNoWhether to return only results that have been archived.
associationsstringNoA comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
propertiesWithHistorystringNoA 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 NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null

Meta

Field NameTypeDescription
next_cursorstring
next_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.

Python SDK

await hubspot.objects.get(
object_type="<str>",
object_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_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 NameTypeRequiredDescription
objectTypestringYesObject type ID or fully qualified name
objectIdstringYesObject record ID
propertiesstringNoA 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.
archivedbooleanNoWhether to return only results that have been archived.
associationsstringNoA comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
idPropertystringNoThe name of a property whose values are unique for this object.
propertiesWithHistorystringNoA 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 NameTypeDescription
idstring
propertiesobject
createdAtstring
updatedAtstring
archivedboolean
archivedAtstring | null
propertiesWithHistoryobject | null
associationsobject | null
objectWriteTraceIdstring | null
urlstring | null