schemas
Object
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"properties": {
"type": "object",
"additionalProperties": {
"type": "string",
"nullable": true
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"archived": {
"type": "boolean"
},
"archivedAt": {
"type": "string",
"format": "date-time"
},
"new": {
"type": "boolean"
},
"propertiesWithHistory": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"sourceType": {
"type": "string"
}
},
"required": [
"value",
"timestamp",
"sourceType"
]
}
}
}
},
"required": [
"id",
"properties",
"createdAt",
"updatedAt",
"archived"
]
}
Paging
{
"type": "object",
"properties": {
"next": {
"type": "object",
"properties": {
"after": {
"type": "string"
},
"link": {
"type": "string"
}
},
"required": [
"after"
]
}
}
}
Page
{
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Object"
}
},
"paging": {
"$ref": "#/components/schemas/Paging"
}
},
"required": [
"results"
]
}
SearchPage
{
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Object"
}
},
"paging": {
"$ref": "#/components/schemas/Paging"
},
"total": {
"type": "integer",
"minimum": 0
}
},
"required": [
"results",
"total"
]
}
Error
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
},
"correlationId": {
"type": "string",
"format": "uuid"
},
"category": {
"type": "string"
}
},
"required": [
"status",
"message",
"correlationId",
"category"
]
}
Batch
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"COMPLETE",
"PENDING",
"PROCESSING",
"CANCELED"
]
},
"startedAt": {
"type": "string",
"format": "date-time"
},
"completedAt": {
"type": "string",
"format": "date-time"
},
"results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Object"
}
},
"numErrors": {
"type": "integer",
"minimum": 0
},
"errors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
},
"category": {
"type": "string"
},
"context": {
"type": "object"
},
"errors": {
"type": "array",
"items": {
"type": "object"
}
},
"links": {
"type": "object"
}
},
"required": [
"status",
"message",
"category"
]
}
}
},
"required": [
"status",
"startedAt",
"completedAt",
"results"
]
}
Write
{
"type": "object",
"properties": {
"properties": {
"type": "object",
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"mobilephone": {
"type": "string"
},
"company": {
"type": "string"
},
"jobtitle": {
"type": "string"
},
"website": {
"type": "string"
},
"address": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"type": "string"
},
"zip": {
"type": "string"
},
"country": {
"type": "string"
},
"name": {
"type": "string"
},
"domain": {
"type": "string"
},
"industry": {
"type": "string"
},
"annualrevenue": {
"type": "string"
},
"numberofemployees": {
"type": "string"
},
"description": {
"type": "string"
},
"dealname": {
"type": "string"
},
"amount": {
"type": "string"
},
"closedate": {
"type": "string"
},
"pipeline": {
"type": "string"
},
"dealstage": {
"type": "string"
},
"dealtype": {
"type": "string"
},
"hs_priority": {
"type": "string"
}
},
"additionalProperties": false
},
"associations": {
"type": "array",
"maxItems": 0,
"items": {
"type": "object"
},
"description": "Association writes are outside this bounded profile."
},
"objectWriteTraceId": {
"type": "string"
}
},
"required": [
"properties"
]
}
BatchCreate
{
"type": "object",
"properties": {
"inputs": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"properties": {
"type": "object",
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"mobilephone": {
"type": "string"
},
"company": {
"type": "string"
},
"jobtitle": {
"type": "string"
},
"website": {
"type": "string"
},
"address": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"type": "string"
},
"zip": {
"type": "string"
},
"country": {
"type": "string"
},
"name": {
"type": "string"
},
"domain": {
"type": "string"
},
"industry": {
"type": "string"
},
"annualrevenue": {
"type": "string"
},
"numberofemployees": {
"type": "string"
},
"description": {
"type": "string"
},
"dealname": {
"type": "string"
},
"amount": {
"type": "string"
},
"closedate": {
"type": "string"
},
"pipeline": {
"type": "string"
},
"dealstage": {
"type": "string"
},
"dealtype": {
"type": "string"
},
"hs_priority": {
"type": "string"
}
},
"additionalProperties": false
},
"associations": {
"type": "array",
"maxItems": 0,
"items": {
"type": "object"
},
"description": "Association writes are outside this bounded profile."
},
"objectWriteTraceId": {
"type": "string"
}
},
"required": [
"properties",
"objectWriteTraceId"
]
}
}
},
"required": [
"inputs"
]
}
BatchRead
{
"type": "object",
"properties": {
"inputs": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
}
},
"idProperty": {
"type": "string"
},
"properties": {
"type": "array",
"items": {
"type": "string"
}
},
"propertiesWithHistory": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"inputs"
]
}
BatchUpdate
{
"type": "object",
"properties": {
"inputs": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"properties": {
"type": "object",
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"mobilephone": {
"type": "string"
},
"company": {
"type": "string"
},
"jobtitle": {
"type": "string"
},
"website": {
"type": "string"
},
"address": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"type": "string"
},
"zip": {
"type": "string"
},
"country": {
"type": "string"
},
"name": {
"type": "string"
},
"domain": {
"type": "string"
},
"industry": {
"type": "string"
},
"annualrevenue": {
"type": "string"
},
"numberofemployees": {
"type": "string"
},
"description": {
"type": "string"
},
"dealname": {
"type": "string"
},
"amount": {
"type": "string"
},
"closedate": {
"type": "string"
},
"pipeline": {
"type": "string"
},
"dealstage": {
"type": "string"
},
"dealtype": {
"type": "string"
},
"hs_priority": {
"type": "string"
}
},
"additionalProperties": false
},
"associations": {
"type": "array",
"maxItems": 0,
"items": {
"type": "object"
},
"description": "Association writes are outside this bounded profile."
},
"objectWriteTraceId": {
"type": "string"
},
"id": {
"type": "string"
},
"idProperty": {
"type": "string"
}
},
"required": [
"id",
"properties"
]
}
}
},
"required": [
"inputs"
]
}
BatchUpsert
{
"type": "object",
"properties": {
"inputs": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"properties": {
"type": "object",
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"mobilephone": {
"type": "string"
},
"company": {
"type": "string"
},
"jobtitle": {
"type": "string"
},
"website": {
"type": "string"
},
"address": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"type": "string"
},
"zip": {
"type": "string"
},
"country": {
"type": "string"
},
"name": {
"type": "string"
},
"domain": {
"type": "string"
},
"industry": {
"type": "string"
},
"annualrevenue": {
"type": "string"
},
"numberofemployees": {
"type": "string"
},
"description": {
"type": "string"
},
"dealname": {
"type": "string"
},
"amount": {
"type": "string"
},
"closedate": {
"type": "string"
},
"pipeline": {
"type": "string"
},
"dealstage": {
"type": "string"
},
"dealtype": {
"type": "string"
},
"hs_priority": {
"type": "string"
}
},
"additionalProperties": false
},
"associations": {
"type": "array",
"maxItems": 0,
"items": {
"type": "object"
},
"description": "Association writes are outside this bounded profile."
},
"objectWriteTraceId": {
"type": "string"
},
"id": {
"type": "string"
},
"idProperty": {
"type": "string",
"enum": [
"email"
],
"description": "Only contacts email is configured as unique in this bounded profile."
}
},
"required": [
"id",
"idProperty",
"properties"
]
}
}
},
"required": [
"inputs"
]
}
BatchArchive
{
"type": "object",
"properties": {
"inputs": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
}
}
},
"required": [
"inputs"
]
}
Filter
{
"type": "object",
"properties": {
"propertyName": {
"type": "string"
},
"operator": {
"type": "string",
"enum": [
"EQ",
"NEQ",
"LT",
"LTE",
"GT",
"GTE",
"BETWEEN",
"IN",
"NOT_IN",
"HAS_PROPERTY",
"NOT_HAS_PROPERTY",
"CONTAINS_TOKEN",
"NOT_CONTAINS_TOKEN"
]
},
"value": {
"type": "string"
},
"highValue": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"propertyName",
"operator"
]
}
Search
{
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 3000
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"default": 10
},
"after": {
"type": "string",
"pattern": "^[0-9]+$"
},
"properties": {
"type": "array",
"items": {
"type": "string"
}
},
"sorts": {
"type": "array",
"maxItems": 1,
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"propertyName": {
"type": "string"
},
"direction": {
"type": "string",
"enum": [
"ASCENDING",
"DESCENDING"
]
}
},
"required": [
"propertyName"
]
}
]
}
},
"filterGroups": {
"type": "array",
"maxItems": 5,
"items": {
"type": "object",
"properties": {
"filters": {
"type": "array",
"minItems": 1,
"maxItems": 6,
"items": {
"$ref": "#/components/schemas/Filter"
}
}
},
"required": [
"filters"
]
}
}
}
}