Skip to content

HubSpot: Contacts schemas

39 HubSpot schemas with complete fields and constraints.

← Contacts operations · All schemas

Archive a batch of contacts — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents a batch input payload containing a list of simple public object IDs. This component is used when performing batch operations on multiple objects within HubSpot.
inputsarrayRequired within parentAn array of SimplePublicObjectId objects, each representing a unique identifier for a CRM object. This array is required for batch processing operations.
inputs[]ModelEach itemExpand Archive a batch of contacts — request body — body inputs item

Referenced models: Archive a batch of contacts — request body — body inputs item

Archive a batch of contacts — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRootContains the Id of a Public Object
idstringRequired within parentThe unique identifier for the object, represented as a string.

Create a batch of contacts — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents a batch input for creating multiple simple public objects in a single request. This component is used to streamline the process of adding new objects to a HubSpot account by allowing multiple entries to be created at once.
inputsarrayRequired within parentAn array of objects, each representing a CRM object to be created. Each object includes properties and associations necessary for the creation process.
inputs[]ModelEach itemExpand Create a batch of contacts — request body — body inputs item

Referenced models: Create a batch of contacts — request body — body inputs item

Create a batch of contacts — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRootAn input object that contains a collection of objects to be created together in a batch.
associationsarrayRequired within parentAn array of associations for the CRM objects, where each association specifies the related object IDs and types.
associations[]ModelEach itemExpand Create a contact — request body — body associations item
objectWriteTraceIdstringOptionalA string used to trace the write operation for the objects being created.
propertiesobjectRequired within parentAn object containing key-value pairs representing the properties of the CRM objects to be created. Each property is a string.
Additional keys: see wildcard field
properties.*stringAdditional keys

Referenced models: Create a contact — request body — body associations item

Create a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item

FieldTypePresenceDescription and constraints
$objectRootRepresents a standard error response in the HubSpot API, providing detailed information about an error that occurred during an API request.
categorystringRequired within parentA string that categorizes the error.
contextobjectRequired within parentAn object containing additional context about the error, with string arrays as values.
Additional keys: see wildcard field
context.*arrayAdditional keys
context.*[]stringEach item
errorsarrayRequired within parentAn array of ErrorDetail objects that provide further information about the error.
errors[]ModelEach itemExpand Batch insert events — response body — errors item errors item
idstringOptionalA string representing a unique identifier for the error.
linksobjectRequired within parentAn object mapping link names to associated URIs that contain documentation or recommended remediation steps for the error.
Additional keys: see wildcard field
links.*stringAdditional keys
messagestringRequired within parentA string containing a human-readable message describing the error.
statusstringRequired within parentA string indicating the status of the error.
subCategoryobjectOptionalAn object providing more specific categorization of the error.

Referenced models: Batch insert events — response body — errors item errors item

Create a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Contacts Batch Response Simple Public Object

FieldTypePresenceDescription and constraints
$objectRootA public object batch response object
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
linksobjectOptionalA map of link names to associated URIs, providing additional information or actions related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of SimplePublicObject items representing the results of the batch operation.
results[]ModelEach itemExpand Create a contact — response body
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe status of the batch processing request. The expected value is "COMPLETE".
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Create a contact — response body

Create a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Contacts Batch Response Simple Public Object With Errors

FieldTypePresenceDescription and constraints
$objectRootRepresents the result of a batch operation on CRM objects, including the processing status, batch results, timestamps, and a list of any errors encountered during the operation.
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
errorsarrayOptionalAn array of standard errors that occurred during the batch operation.
errors[]ModelEach itemExpand Create a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item
linksobjectOptionalA map of link names to associated URIs for additional information related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
numErrorsJSONOptional
numErrors (anyOf 1)integerAlternativeThe number of errors that occurred during the batch operation.
Format: int32
numErrors (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of simple public objects that are the result of the batch operation.
results[]ModelEach itemExpand Create a contact — response body
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Create a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item, Create a contact — response body

Create a contact — request body — body

FieldTypePresenceDescription and constraints
$objectRootIs the input object used to create a new CRM object, containing the properties to be set and optional associations to link the new record with other CRM objects.
associationsarrayRequired within parentAn array of associations that link this CRM object to other objects. Each association specifies the target object and the type of association.
associations[]ModelEach itemExpand Create a contact — request body — body associations item
propertiesobjectRequired within parentAn object containing key-value pairs representing the properties of the CRM object. Each key is a property name, and the value is the property's value.
Additional keys: see wildcard field
properties.*stringAdditional keys

Referenced models: Create a contact — request body — body associations item

Create a contact — request body — body associations item

FieldTypePresenceDescription and constraints
$objectRootRepresents the associations for a specific object in HubSpot, detailing the types of associations and the related objects involved.
toModelRequired within parentExpand Read batch objects — carts batch Get Carts — request body — body inputs item
typesarrayRequired within parentAn array of association specifications, each detailing the category and type of association between the objects.
types[]ModelEach itemExpand Create a contact — request body — body associations item types item

Referenced models: Read batch objects — carts batch Get Carts — request body — body inputs item, Create a contact — request body — body associations item types item

Create a contact — request body — body associations item types item

FieldTypePresenceDescription and constraints
$objectRootDefines the type, direction, and details of the relationship between two CRM objects.
associationCategorystringRequired within parentThe category of the association, indicating its origin or purpose. Valid values include 'HUBSPOT_DEFINED', 'USER_DEFINED', 'INTEGRATOR_DEFINED', and 'WORK'.
One of: HUBSPOT_DEFINED, INTEGRATOR_DEFINED, USER_DEFINED, WORK
associationTypeIdintegerRequired within parentAn integer representing the unique identifier for the type of association.
Format: int32

Create a contact — response body

FieldTypePresenceDescription and constraints
$objectRootA simple public object.
archivedbooleanRequired within parentA boolean indicating whether this object is archived.
archivedAtstringOptionalThe date and time when this object was archived, in ISO 8601 format.
Format: date-time
createdAtstringRequired within parentThe date and time when this object was created, in ISO 8601 format.
Format: date-time
idstringRequired within parentThe unique identifier for this object, represented as a string.
objectWriteTraceIdstringOptionalA string representing the trace ID for write operations related to this object.
propertiesobjectRequired within parentA map of property names to their values, where each value is a string.
Additional keys: see wildcard field
properties.*stringAdditional keys
propertiesWithHistoryobjectOptionalA map of property names to their historical values, each represented as an array of ValueWithTimestamp objects.
Additional keys: see wildcard field
propertiesWithHistory.*arrayAdditional keys
propertiesWithHistory.*[]ModelEach itemExpand Create a contact — response body — properties With History value item
updatedAtstringRequired within parentThe date and time when this object was last updated, in ISO 8601 format.
Format: date-time
urlstringOptionalA string containing the URL of this object.
warningsarrayOptionalAn array of PublicObjectWarning objects, each containing warnings related to this object.
warnings[]ModelEach itemExpand Create a contact — response body — warnings item

Referenced models: Create a contact — response body — warnings item, Create a contact — response body — properties With History value item

Create a contact — response body — properties With History value item

FieldTypePresenceDescription and constraints
$objectRootProperty model that includes timestamp.
sourceIdstringOptionalA string identifier for the specific source of the value.
sourceLabelstringOptionalA string label that provides a human-readable name for the source.
sourceTypestringRequired within parentA string indicating the type of source from which the value originated.
timestampstringRequired within parentThe date and time when the value was recorded, in ISO 8601 format.
Format: date-time
updatedByUserIdJSONOptional
updatedByUserId (anyOf 1)integerAlternativeAn integer representing the ID of the user who last updated the value.
Format: int32
updatedByUserId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
valuestringRequired within parentThe actual value being recorded. It is a string.

Create a contact — response body — warnings item

FieldTypePresenceDescription and constraints
$objectRootRepresents a warning message related to a public object in HubSpot, providing details about the nature and context of the warning.
categorystringRequired within parentA string representing the category of the warning.
contextobjectRequired within parentAn object providing additional context for the warning, with string values for each context key.
Additional keys: see wildcard field
context.*stringAdditional keys
messagestringRequired within parentA string containing the warning message.

Create or update a batch of contacts — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents a batch input operation for upserting simple public objects in HubSpot. This component is used to process multiple upsert operations in a single request, improving efficiency and performance.
inputsarrayRequired within parentAn array of SimplePublicObjectBatchInputUpsert objects, each containing the properties and identifiers needed for the upsert operation.
inputs[]ModelEach itemExpand Create or update a batch of contacts — request body — body inputs item

Referenced models: Create or update a batch of contacts — request body — body inputs item

Create or update a batch of contacts — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRootRepresents an object used in batch upsert operations, containing an object’s unique identifier, its properties, and optionally the unique property name and a write trace ID.
idstringRequired within parentA string representing the unique identifier for the CRM object.
idPropertystringOptionalThe name of a property whose values are unique for this object
objectWriteTraceIdstringOptionalA string used to trace the write operation for debugging or logging purposes.
propertiesobjectRequired within parentAn object containing key-value pairs representing the properties of the CRM object. Each key is a property name, and each value is the property's value.
Additional keys: see wildcard field
properties.*stringAdditional keys

Create or update a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item

FieldTypePresenceDescription and constraints
$objectRootRepresents a CRM object that has either been created or updated (upserted)
archivedbooleanRequired within parentA boolean indicating whether the object is archived.
archivedAtstringOptionalThe date and time when this object was archived, in ISO 8601 format.
Format: date-time
createdAtstringRequired within parentThe date and time when this object was created, in ISO 8601 format.
Format: date-time
idstringRequired within parentThe unique identifier for this object.
newbooleanRequired within parentA boolean indicating whether this object is newly created.
objectWriteTraceIdstringOptionalAn identifier for tracing the creation request.
propertiesobjectRequired within parentA map of property names to their current values for the object.
Additional keys: see wildcard field
properties.*stringAdditional keys
propertiesWithHistoryobjectOptionalA map of property names to arrays of their historical values, each with a timestamp.
Additional keys: see wildcard field
propertiesWithHistory.*arrayAdditional keys
propertiesWithHistory.*[]ModelEach itemExpand Create a contact — response body — properties With History value item
updatedAtstringRequired within parentThe date and time when this object was last updated, in ISO 8601 format.
Format: date-time
urlstringOptionalThe URL of the object.
warningsarrayOptionalAn array of warnings related to the object, each containing a category, message, and context.
warnings[]ModelEach itemExpand Create a contact — response body — warnings item

Referenced models: Create a contact — response body — warnings item, Create a contact — response body — properties With History value item

Create or update a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Contacts Batch Response Simple Public Upsert Object

FieldTypePresenceDescription and constraints
$objectRootRepresents the result of a batch upsert operation, including the operation’s status, timestamps, and a list of successfully created or updated objects.
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
linksobjectOptionalA map of link names to associated URIs, providing additional information or actions related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of objects representing the results of the upsert operation. Each object is a SimplePublicUpsertObject.
results[]ModelEach itemExpand Create or update a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Create or update a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item

Create or update a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Contacts Batch Response Simple Public Upsert Object With Errors

FieldTypePresenceDescription and constraints
$objectRootRepresents the response from a batch upsert operation, including the status, timestamps, successfully processed objects, and any errors that occurred during processing.
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
errorsarrayOptionalAn array of errors encountered during the batch operation, each represented as a StandardError.
errors[]ModelEach itemExpand Create a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item
linksobjectOptionalA map of link names to associated URIs that provide additional information or resources related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
numErrorsJSONOptional
numErrors (anyOf 1)integerAlternativeThe total number of errors encountered during the batch operation.
Format: int32
numErrors (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array containing the results of the upsert operation, each represented as a SimplePublicUpsertObject.
results[]ModelEach itemExpand Create or update a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Create a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item, Create or update a batch of contacts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item

List associations — contacts get Associations By To Object Type — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents a paginated collection of objects that are associated with multiple labels, including the results and pagination details. This component is used when retrieving associated objects with specific labels in a forward-paging manner.
pagingModelOptionalExpand Retrieve contacts — response body — paging
resultsarrayRequired within parentAn array of multi-associated objects with labels, each containing information about the associated object and the types of associations.
results[]ModelEach itemExpand List associations — contacts get Associations By To Object Type — response body — results item

Referenced models: Retrieve contacts — response body — paging, List associations — contacts get Associations By To Object Type — response body — results item

List associations — contacts get Associations By To Object Type — response body — results item

FieldTypePresenceDescription and constraints
$objectRootRepresents an object that is associated with multiple other objects, with optional context.
associationTypesarrayRequired within parentAn array of association types, each including a label. Each item in the array is an object that specifies the type of association and its label.
associationTypes[]ModelEach itemExpand List associations — contacts get Associations By To Object Type — response body — results item association Types item
toObjectIdstringRequired within parentThe unique identifier of the target object to which associations are made. It is a string.

Referenced models: List associations — contacts get Associations By To Object Type — response body — results item association Types item

List associations — contacts get Associations By To Object Type — response body — results item association Types item

FieldTypePresenceDescription and constraints
$objectRootDefines the type, direction, and details of the relationship between two CRM objects.
categorystringRequired within parentThe category of the association. Valid values include 'HUBSPOT_DEFINED', 'USER_DEFINED', 'INTEGRATOR_DEFINED', and 'WORK'.
Known values: HUBSPOT_DEFINED, INTEGRATOR_DEFINED, USER_DEFINED, WORK
fromObjectTypeIdstringOptionalA string representing the type ID of the object from which the association originates.
labelstringOptionalA string representing the label for the association.
toObjectTypeIdstringOptionalA string representing the type ID of the object to which the association is directed.
typeIdJSONRequired within parent
typeId (anyOf 1)integerAlternativeAn integer representing the unique identifier for the association type.
Format: int32
typeId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Merge two contacts — request body — body

FieldTypePresenceDescription and constraints
$objectRootInput data for merging two records.
objectIdToMergestringRequired within parentThe object ID of the record that the merge will not set as the current value after the merge.
primaryObjectIdstringRequired within parentThe object ID of the record that the merge will generally set as the current value after the merge.

Permanently delete a contact (GDPR-compliant) — request body — body

FieldTypePresenceDescription and constraints
$objectRootAn input that contains the information required to process a public GDPR data deletion request.
idPropertystringOptionalThe name of a property whose values are unique for this object. An alternative to identifying a contact by ID.
objectIdstringRequired within parentThe ID of the contact to permanently delete.

Retrieve a batch of contacts — request body — body

FieldTypePresenceDescription and constraints
$objectRootSpecifies the input for reading a batch of CRM objects, including arrays of object IDs, requested property names (with optional history), and an optional unique identifying property.
idPropertystringOptionalWhen using a custom unique value property to retrieve records, the name of the property. Do not include this parameter if retrieving by record ID.
inputsarrayRequired within parentAn array of SimplePublicObjectId objects, each containing an ID of an object to be read.
inputs[]ModelEach itemExpand Archive a batch of contacts — request body — body inputs item
propertiesarrayRequired within parentAn array of strings representing the properties to be returned for each object. If a specified property is not present on an object, it will be ignored.
properties[]stringEach item
propertiesWithHistoryarrayRequired within parentAn array of strings representing the properties to be returned along with their history of previous values. If a specified property is not present on an object, it will be ignored.
propertiesWithHistory[]stringEach item

Referenced models: Archive a batch of contacts — request body — body inputs item

Retrieve a contact — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type.
archivedbooleanRequired within parentA boolean indicating whether this object has been archived.
archivedAtstringOptionalThe date and time when this object was archived, in ISO 8601 format.
Format: date-time
associationsobjectOptionalA map of associated object types to their respective associated IDs.
Additional keys: see wildcard field
associations.*ModelAdditional keysExpand Retrieve a contact — response body — associations value
createdAtstringRequired within parentThe date and time when this object was created, in ISO 8601 format.
Format: date-time
idstringRequired within parentThe unique identifier for this object.
objectWriteTraceIdstringOptionalAn identifier used for tracing the write operations on this object.
propertiesobjectRequired within parentA map of property names to their current values for this object.
Additional keys: see wildcard field
properties.*stringAdditional keys
propertiesWithHistoryobjectOptionalA map of property names to their values along with a history of changes, including timestamps.
Additional keys: see wildcard field
propertiesWithHistory.*arrayAdditional keys
propertiesWithHistory.*[]ModelEach itemExpand Create a contact — response body — properties With History value item
updatedAtstringRequired within parentThe date and time when this object was last updated, in ISO 8601 format.
Format: date-time
urlstringOptionalThe URL link to access this object.
warningsarrayOptionalA list of warnings associated with this object, each containing a category, message, and context.
warnings[]ModelEach itemExpand Create a contact — response body — warnings item

Referenced models: Retrieve a contact — response body — associations value, Create a contact — response body — warnings item, Create a contact — response body — properties With History value item

Retrieve a contact — response body — associations value

FieldTypePresenceDescription and constraints
$objectRootRepresents a collection of associated IDs returned by an API request, including pagination details for navigating through the results.
pagingModelOptionalExpand Search for contacts — response body — paging
resultsarrayRequired within parentAn array of associated IDs, where each item represents an associated object. The array contains objects of type 'AssociatedId'.
results[]ModelEach itemExpand Retrieve a contact — response body — associations value results item

Referenced models: Retrieve a contact — response body — associations value results item, Search for contacts — response body — paging

Retrieve a contact — response body — associations value results item

FieldTypePresenceDescription and constraints
$objectRootContains the id and type of an association
idstringRequired within parentThe unique identifier for the associated object. This is a string value.
typestringRequired within parentThe type of association between the objects. This is a string value.

Retrieve contacts — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents a paginated collection response that includes simple public objects with their associations. This component is used to handle the results and pagination details when retrieving a list of objects from the API.
pagingModelOptionalExpand Retrieve contacts — response body — paging
resultsarrayRequired within parentAn array of SimplePublicObjectWithAssociations, each representing a CRM object with its associated data.
results[]ModelEach itemExpand Retrieve a contact — response body

Referenced models: Retrieve contacts — response body — paging, Retrieve a contact — response body

Retrieve contacts — response body — paging

FieldTypePresenceDescription and constraints
$objectRootPaging information for forward-only pagination. Contains the next page reference when more results are available; omitted or empty on the last page.
nextModelOptionalExpand Retrieve contacts — response body — paging next

Referenced models: Retrieve contacts — response body — paging next

Retrieve contacts — response body — paging next

FieldTypePresenceDescription and constraints
$objectRootSpecifies the paging information needed to retrieve the next set of results in a paginated API response
afterstringRequired within parentA string token that indicates the position after the last item on the current page. This token is used to fetch the next set of results.
linkstringOptionalA string URL that provides a direct link to the next page of results.

Search for contacts — request body — body

FieldTypePresenceDescription and constraints
$objectRootDescribes a search request
afterstringRequired within parentA string representing the paging cursor token to retrieve results after a specific point in the result set.
filterGroupsarrayRequired within parentAn array of filter groups used to narrow down the search results. Each filter group contains a set of filters that are applied together.
filterGroups[]ModelEach itemExpand Search for contacts — request body — body filter Groups item
limitintegerRequired within parentAn integer indicating the maximum number of results to return.
Format: int32
propertiesarrayRequired within parentAn array of strings specifying which properties of the objects should be included in the search results.
properties[]stringEach item
querystringOptionalA string representing the search query to be applied to the objects.
sortsarrayRequired within parentAn array of strings specifying the sorting order of the search results.
sorts[]stringEach item

Referenced models: Search for contacts — request body — body filter Groups item

Search for contacts — request body — body filter Groups item

FieldTypePresenceDescription and constraints
$objectRootRepresents a group of filters used to query data within HubSpot. This component is used to define criteria for filtering records in various API endpoints.
filtersarrayRequired within parentAn array of filter objects that define the criteria for the search. Each filter specifies a property, an operator, and a value to match against.
filters[]ModelEach itemExpand Search for contacts — request body — body filter Groups item filters item

Referenced models: Search for contacts — request body — body filter Groups item filters item

Search for contacts — request body — body filter Groups item filters item

FieldTypePresenceDescription and constraints
$objectRootDefines a single condition for searching CRM objects, specifying the property to filter on, the operator to use (such as equals, greater than, or contains), and the value(s) to compare against.
highValuestringOptionalAn optional string representing the upper bound of a range filter, used when the operator is 'BETWEEN'.
operatorstringRequired within parentThe operator used to compare the property value. It is a string and valid values include 'EQ', 'NEQ', 'LT', 'LTE', 'GT', 'GTE', 'BETWEEN', 'IN', 'NOT_IN', 'HAS_PROPERTY', 'NOT_HAS_PROPERTY', 'CONTAINS_TOKEN', and 'NOT_CONTAINS_TOKEN'.
One of: BETWEEN, CONTAINS_TOKEN, EQ, GT, GTE, HAS_PROPERTY, IN, LT, LTE, NEQ, NOT_CONTAINS_TOKEN, NOT_HAS_PROPERTY, NOT_IN
propertyNamestringRequired within parentThe name of the property to filter on. It is a string that specifies which object property the filter applies to.
valuestringOptionalThe value to compare against the specified property. It is a string used in conjunction with the operator to determine matching results.
valuesarrayOptionalAn array of strings representing multiple values to compare against the specified property, used with operators like 'IN' or 'NOT_IN'.
values[]stringEach item

Search for contacts — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents a list of simple objects returned from an API request, along with the total count of objects available.
pagingModelOptionalExpand Search for contacts — response body — paging
resultsarrayRequired within parentAn array of SimplePublicObject items, each representing an individual public object.
results[]ModelEach itemExpand Create a contact — response body
totalJSONRequired within parent
total (anyOf 1)integerAlternativeThe number of available results
Format: int32
total (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Search for contacts — response body — paging, Create a contact — response body

Search for contacts — response body — paging

FieldTypePresenceDescription and constraints
$objectRootRepresents the pagination information for navigating through a list of results in the API. It provides details on how to access the previous or next set of results.
nextModelOptionalExpand Retrieve contacts — response body — paging next
prevModelOptionalExpand Search for contacts — response body — paging prev

Referenced models: Retrieve contacts — response body — paging next, Search for contacts — response body — paging prev

Search for contacts — response body — paging prev

FieldTypePresenceDescription and constraints
$objectRootspecifies the paging information needed to retrieve the previous set of results in a paginated API response
beforestringRequired within parentA string token used to identify the position before the current page in a paginated list.
linkstringOptionalA string URL that provides a direct link to the previous page of results.

Update a batch of contacts — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents a batch input component used to handle multiple simple public objects in a single API request. This component is typically used when performing batch operations to create, update, or delete multiple records simultaneously.
inputsarrayRequired within parentAn array of SimplePublicObjectBatchInput objects. Each object contains the properties and identifiers necessary for processing a batch update operation.
inputs[]ModelEach itemExpand Update a batch of contacts — request body — body inputs item

Referenced models: Update a batch of contacts — request body — body inputs item

Update a batch of contacts — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRootContains an array of CRM object records to be processed in a batch operation, each defined by their ID and properties.
idstringRequired within parentThe ID of the contact to update. This can be the object ID, or the unique property value of the `idProperty` property.
idPropertystringOptionalThe name of a unique property, when identifying records by property.
objectWriteTraceIdstringOptionalA string used to trace the write operation for debugging or tracking purposes.
propertiesobjectRequired within parentAn object containing key-value pairs representing the properties of the CRM object. Each key is a property name, and each value is the property's value.
Additional keys: see wildcard field
properties.*stringAdditional keys

Update a contact — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents the input required to update a CRM object, containing an object with property names and their corresponding values.
propertiesobjectRequired within parentAn object containing key-value pairs representing the properties of the CRM object to be updated. Each key is a property name, and each value is the property's new value, both as strings.
Additional keys: see wildcard field
properties.*stringAdditional keys

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.