Records
Useful when retrieving all values from a summarized relationship field
A page number within the paginated result set.
Number of results to return per page.
123http://api.example.org/accounts/?page=4http://api.example.org/accounts/?page=2["error message"]GET /api/records/{entity_id}/field-values/{field_id} HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Accept: */*
{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2",
"results": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"first_name": "text",
"last_name": "text",
"full_name": "text",
"email": "text",
"display_name": "text"
}
],
"errors": [
"error message"
]
}Get entity record by ID
^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$Include summary data in the response, including lead sources.
Comma separated category ids, to filter by field category. Ignored when field_ids is present.
Comma separated field ids to include in response. If present but empty, it will return default fields only.
Comma separated field names to include in response. If present but empty, it will return default fields only.
Include hidden fields in the response.
GET /api/records/{object_identifier}/{entity_id} HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Accept: */*
{
"object_type": "string",
"num_upcoming_activities": 0,
"fields": {},
"id": "18ff12e2-c4a0-4000-89e6-9b216dd9d801",
"num_associated_team_members": 0,
"client_info": {
"num_addresses_v2": 0,
"display_name": "string",
"email_on_suppression_list": false
},
"access": {
"view": true,
"edit": true,
"remove": true
},
"first_lead_source": {
"id": "18ff12e2-c4a0-4000-8e84-0f8bb0dafb01",
"type": "organic_search",
"client": "18ff12e2-c4a0-4000-8dda-0175712cda01",
"custom_object_record": "18ff12e2-c4a0-4000-831e-88c0810f2401",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string",
"created": "1970-01-01T00:00:00.000Z",
"_display": {
"type": "string",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string"
}
},
"last_lead_source": {
"id": "18ff12e2-c4a0-4000-8fe9-71a84bc6c101",
"type": "organic_search",
"client": "18ff12e2-c4a0-4000-8803-a33e719dc801",
"custom_object_record": "18ff12e2-c4a0-4000-8c84-44d6dd2b6f01",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string",
"created": "1970-01-01T00:00:00.000Z",
"_display": {
"type": "string",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string"
}
},
"lead_source_types": [
{
"value": "organic_search",
"label": "string"
}
]
}Get entity record by ID (POST). Equivalent to the GET method. field_ids, field_names and field_category may be sent either as a query parameter or in the request body, but not both.
^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$Include summary data in the response, including lead sources.
Comma separated category ids, to filter by field category. Ignored when field_ids is present.
Comma separated field ids to include in response. If present but empty, it will return default fields only.
Comma separated field names to include in response. If present but empty, it will return default fields only.
Include hidden fields in the response.
Field ids to include in the response. If provided but empty, only default fields are returned.
Field names to include in the response. If provided but empty, only default fields are returned.
Category ids to filter fields by. Ignored when field_ids or field_names is provided.
POST /api/records/{object_identifier}/{entity_id} HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"field_names": [
"first_name",
"last_name",
"custom_field"
]
}{
"object_type": "string",
"num_upcoming_activities": 0,
"fields": {},
"id": "18ff12e2-c4a0-4000-89e6-9b216dd9d801",
"num_associated_team_members": 0,
"client_info": {
"num_addresses_v2": 0,
"display_name": "string",
"email_on_suppression_list": false
},
"access": {
"view": true,
"edit": true,
"remove": true
},
"first_lead_source": {
"id": "18ff12e2-c4a0-4000-8e84-0f8bb0dafb01",
"type": "organic_search",
"client": "18ff12e2-c4a0-4000-8dda-0175712cda01",
"custom_object_record": "18ff12e2-c4a0-4000-831e-88c0810f2401",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string",
"created": "1970-01-01T00:00:00.000Z",
"_display": {
"type": "string",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string"
}
},
"last_lead_source": {
"id": "18ff12e2-c4a0-4000-8fe9-71a84bc6c101",
"type": "organic_search",
"client": "18ff12e2-c4a0-4000-8803-a33e719dc801",
"custom_object_record": "18ff12e2-c4a0-4000-8c84-44d6dd2b6f01",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string",
"created": "1970-01-01T00:00:00.000Z",
"_display": {
"type": "string",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string"
}
},
"lead_source_types": [
{
"value": "organic_search",
"label": "string"
}
]
}Update entity record
^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$overwrite- overwrite
PUT /api/records/{object_identifier}/{entity_id} HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Content-Type: application/json
Accept: */*
Content-Length: 804
{
"fields": [
{
"id": "<integer_field_id>",
"value": 100
},
{
"id": "<primary_field_id>",
"value": "<record_id>"
},
{
"id": "<primary_field2_id>",
"value": {
"id": "<record_id>"
}
},
{
"id": "<primary_record_field_id>",
"value": {
"name": "<record_name>"
}
},
{
"id": "<primary_contact_field_id>",
"value": {
"email": "<contact_email>"
}
},
{
"id": "<team_selector_field_id>",
"value": {
"email": "<team_email>"
}
},
{
"id": "<rating_field_id>",
"value": 5
},
{
"id": "<rating_field_id>",
"value": {
"id": "<rating_option_id>"
}
},
{
"name": "email_status",
"value": {
"id": "<option_id>"
}
},
{
"name": "email_status",
"value": {
"name": "Opted In"
}
},
{
"name": "text_field",
"value": "text"
},
{
"name": "dropdown_field",
"value": {
"id": "<option_id>"
}
},
{
"name": "dropdown_field",
"value": {
"name": "<option_name>"
}
},
{
"name": "dropdown_field2",
"value": "<option_id>"
}
],
"archived_conflict": "overwrite"
}{
"object_type": "text",
"num_upcoming_activities": 1,
"fields": {
"id": {
"id": "text",
"field_type": "text",
"display_name": "text",
"value": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"client_info": {
"num_addresses_v2": 1,
"display_name": "text",
"email_on_suppression_list": true
},
"access": {
"view": true,
"edit": true,
"remove": true
},
"num_associated_team_members": 1,
"lead_source_types": [
{
"value": "organic_search",
"label": "text"
}
]
}Archive entity record
^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$No response body
No content
DELETE /api/records/{object_identifier}/{entity_id} HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Accept: */*
No response body
No content
Update entity record (partial)
^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$If true, return all fields even if not updated
overwrite- overwrite
PATCH /api/records/{object_identifier}/{entity_id} HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Content-Type: application/json
Accept: */*
Content-Length: 804
{
"fields": [
{
"id": "<integer_field_id>",
"value": 100
},
{
"id": "<primary_field_id>",
"value": "<record_id>"
},
{
"id": "<primary_field2_id>",
"value": {
"id": "<record_id>"
}
},
{
"id": "<primary_record_field_id>",
"value": {
"name": "<record_name>"
}
},
{
"id": "<primary_contact_field_id>",
"value": {
"email": "<contact_email>"
}
},
{
"id": "<team_selector_field_id>",
"value": {
"email": "<team_email>"
}
},
{
"id": "<rating_field_id>",
"value": 5
},
{
"id": "<rating_field_id>",
"value": {
"id": "<rating_option_id>"
}
},
{
"name": "email_status",
"value": {
"id": "<option_id>"
}
},
{
"name": "email_status",
"value": {
"name": "Opted In"
}
},
{
"name": "text_field",
"value": "text"
},
{
"name": "dropdown_field",
"value": {
"id": "<option_id>"
}
},
{
"name": "dropdown_field",
"value": {
"name": "<option_name>"
}
},
{
"name": "dropdown_field2",
"value": "<option_id>"
}
],
"archived_conflict": "overwrite"
}{
"object_type": "text",
"num_upcoming_activities": 1,
"fields": {
"id": {
"id": "text",
"field_type": "text",
"display_name": "text",
"value": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"client_info": {
"num_addresses_v2": 1,
"display_name": "text",
"email_on_suppression_list": true
},
"access": {
"view": true,
"edit": true,
"remove": true
},
"num_associated_team_members": 1,
"lead_source_types": [
{
"value": "organic_search",
"label": "text"
}
]
}Unarchive entity record
^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$No response body
PATCH /api/records/{object_identifier}/{entity_id}/unarchive HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Accept: */*
{
"display_name": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}Create entity record
prompt- promptunarchive- unarchiveoverwrite- overwriteunarchive_and_update- unarchive_and_update
POST /api/records/{object_identifier}/add HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Content-Type: application/json
Accept: */*
Content-Length: 793
{
"fields": [
{
"id": "<integer_field_id>",
"value": 100
},
{
"id": "<primary_field_id>",
"value": "<record_id>"
},
{
"id": "<primary_field2_id>",
"value": {
"id": "<record_id>"
}
},
{
"id": "<primary_record_field_id>",
"value": {
"name": "<record_name>"
}
},
{
"id": "<primary_contact_field_id>",
"value": {
"email": "<contact_email>"
}
},
{
"id": "<team_selector_field_id>",
"value": {
"email": "<team_email>"
}
},
{
"id": "<rating_field_id>",
"value": 5
},
{
"id": "<rating_field_id>",
"value": {
"id": "<rating_option_id>"
}
},
{
"name": "email_status",
"value": {
"id": "<option_id>"
}
},
{
"name": "email_status",
"value": {
"name": "Opted In"
}
},
{
"name": "text_field",
"value": "text"
},
{
"name": "dropdown_field",
"value": {
"id": "<option_id>"
}
},
{
"name": "dropdown_field",
"value": {
"name": "<option_name>"
}
},
{
"name": "dropdown_field2",
"value": "<option_id>"
}
],
"unarchive": "prompt"
}{
"id": "<entity_record_id>",
"fields": {
"<email_field_id>": {
"name": "email",
"value": "test@example.com"
},
"<first_name_field_id>": {
"name": "first_name_field_name",
"value": "first name"
},
"<last_name_field_id>": {
"name": "last_name_field_name",
"value": "last name"
},
"<created_field_id>": {
"name": "created",
"value": "2020-01-30 01:00:00"
},
"<updated_field_id>": {
"name": "updated",
"value": "2020-01-30 01:00:00"
}
}
}Get entity record by name or email
Return all fields.
Comma separated field ids to include in response. If present but empty, it will return default fields only.
Comma separated field names to include in response. If present but empty, it will return default fields only.
Entity record name or contact email
GET /api/records/{object_identifier}/lookup?identifier=text HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Accept: */*
{
"object_type": "string",
"num_upcoming_activities": 0,
"fields": {},
"id": "18ff12e2-c4a0-4000-89e6-9b216dd9d801",
"num_associated_team_members": 0,
"client_info": {
"num_addresses_v2": 0,
"display_name": "string",
"email_on_suppression_list": false
},
"access": {
"view": true,
"edit": true,
"remove": true
},
"first_lead_source": {
"id": "18ff12e2-c4a0-4000-8e84-0f8bb0dafb01",
"type": "organic_search",
"client": "18ff12e2-c4a0-4000-8dda-0175712cda01",
"custom_object_record": "18ff12e2-c4a0-4000-831e-88c0810f2401",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string",
"created": "1970-01-01T00:00:00.000Z",
"_display": {
"type": "string",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string"
}
},
"last_lead_source": {
"id": "18ff12e2-c4a0-4000-8fe9-71a84bc6c101",
"type": "organic_search",
"client": "18ff12e2-c4a0-4000-8803-a33e719dc801",
"custom_object_record": "18ff12e2-c4a0-4000-8c84-44d6dd2b6f01",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string",
"created": "1970-01-01T00:00:00.000Z",
"_display": {
"type": "string",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string"
}
},
"lead_source_types": [
{
"value": "organic_search",
"label": "string"
}
]
}Get entity record by name or email (POST). Equivalent to the GET method. field_ids and field_names may be sent either as a query parameter or in the request body, but not both.
Return all fields.
Comma separated field ids to include in response. If present but empty, it will return default fields only.
Comma separated field names to include in response. If present but empty, it will return default fields only.
Entity record name or contact email
Field ids to include in the response. If provided but empty, only default fields are returned.
Field names to include in the response. If provided but empty, only default fields are returned.
POST /api/records/{object_identifier}/lookup?identifier=text HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"field_names": [
"first_name",
"last_name",
"custom_field"
]
}{
"object_type": "string",
"num_upcoming_activities": 0,
"fields": {},
"id": "18ff12e2-c4a0-4000-89e6-9b216dd9d801",
"num_associated_team_members": 0,
"client_info": {
"num_addresses_v2": 0,
"display_name": "string",
"email_on_suppression_list": false
},
"access": {
"view": true,
"edit": true,
"remove": true
},
"first_lead_source": {
"id": "18ff12e2-c4a0-4000-8e84-0f8bb0dafb01",
"type": "organic_search",
"client": "18ff12e2-c4a0-4000-8dda-0175712cda01",
"custom_object_record": "18ff12e2-c4a0-4000-831e-88c0810f2401",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string",
"created": "1970-01-01T00:00:00.000Z",
"_display": {
"type": "string",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string"
}
},
"last_lead_source": {
"id": "18ff12e2-c4a0-4000-8fe9-71a84bc6c101",
"type": "organic_search",
"client": "18ff12e2-c4a0-4000-8803-a33e719dc801",
"custom_object_record": "18ff12e2-c4a0-4000-8c84-44d6dd2b6f01",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string",
"created": "1970-01-01T00:00:00.000Z",
"_display": {
"type": "string",
"source": "string",
"campaign": "string",
"medium": "string",
"term": "string",
"content": "string"
}
},
"lead_source_types": [
{
"value": "organic_search",
"label": "string"
}
]
}Search entity records.
Group id to filter records by.
Comma separated list of group ids. Only records in these groups will be returned. If both 'in_group_ids' and 'not_in_group_ids' are supplied, only 'in_group_ids' will be considered.
Comma separated list of group ids. Only records not in these groups will be returned. If both 'in_group_ids' and 'not_in_group_ids' are supplied, only 'in_group_ids' will be considered.
Which field to use when ordering the results.
A page number within the paginated result set.
Number of results to return per page.
A search term, by default, searches Contact's email, first_name, last_name, home_phone, mobile_phone, business_phone and Record's name. 'search_within_field_names' or 'search_within_field_ids' can be used to specify fields to search within.
List of field names to return. Only one of 'field_names' or 'field_ids' is allowed.
List of field ids to return. Only one of 'field_ids' or 'field_names' is allowed.
List of field names to search within. Only one of 'search_within_field_names' or 'search_within_field_ids' is allowed.
List of field ids to search within. Only one of 'search_within_field_ids' or 'search_within_field_names' is allowed.
Whether to apply AND or OR logic in filters
true123http://api.example.org/accounts/?page=4http://api.example.org/accounts/?page=2["error message"]POST /api/records/{object_identifier}/search HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Content-Type: application/json
Accept: */*
Content-Length: 266
{
"field_names": [
"text"
],
"field_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"search_within_field_names": [
"text"
],
"search_within_field_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"query": [
{
"filters": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"and": true
}
],
"and": true
}{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2",
"results": [
{
"object_type": "text",
"fields": {
"id": {
"id": "text",
"field_type": "text",
"display_name": "text",
"value": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"client_info": {
"num_addresses_v2": 1,
"display_name": "text",
"email_on_suppression_list": true
},
"access": {
"view": true,
"edit": true,
"remove": true
}
}
],
"errors": [
"error message"
]
}Unarchive entity record by ID, name or email.
ID of the archived record.
Name of the archived record. Custom objects only.
Email of the archived contact. Contacts only.
PATCH /api/records/{object_identifier}/unarchive HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"name": "Record Name"
}{
"display_name": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}Create or update entity record based on lookup criteria
If true, return all fields even if not updated
Value to match the entity record (name for custom objects, email for contacts).
prompt- promptunarchive- unarchiveoverwrite- overwriteunarchive_and_update- unarchive_and_update
overwrite- overwrite
created- createdupdated- updatedunarchived- unarchived
POST /api/records/{object_identifier}/upsert HTTP/1.1
X-API-KEY: YOUR_API_KEY
X-BUSINESS-ID: YOUR_BUSINESS_ID
X-USER-ID: YOUR_USER_ID
Content-Type: application/json
Accept: */*
Content-Length: 189
{
"lookup_value": "user@example.com",
"fields": [
{
"name": "first_name",
"value": "John"
},
{
"name": "last_name",
"value": "Doe"
}
],
"oncreate_unarchive": "prompt",
"onupdate_archived_conflict": "overwrite"
}{
"id": "<entity_record_id>",
"action": "updated",
"display_name": "Record Name",
"fields": {
"<field_id>": {
"name": "field_name",
"value": "field_value"
}
},
"access": {
"view": true,
"edit": true,
"remove": true
}
}Last updated
Was this helpful?