Skip to navigation

List or filter all Custom Activity instances

View as Markdown

Custom Fields appear in the format: custom.{custom_field_id}. See Custom Fields.

If you’re filtering by custom_activity_type_id or custom_activity_type_id__in parameter, the lead_id parameter will be required as well. If you want to retrieve all Custom Activity instances of a specific type regardless of the lead, you will need to get leads that contain such an activity type using Advanced Filtering and provide those Lead IDs one at a time to this endpoint.

Authentication

AuthorizationBasic
Use your API key as the username and leave the password empty.
OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

_limitintegerOptional<=100Defaults to 100
Number of results to return.
_skipintegerOptional<=250000Defaults to 0
Number of results to skip before returning, for pagination. The maximum is 35,000 for some organizations.
id__inlist of strings or nullOptional

Filter by activity IDs (comma-separated)

lead_idlist of strings or nullOptional

Filter by a comma-separated list of Lead IDs.

contact_idlist of strings or nullOptional

Filter by a comma-separated list of Contact IDs. Requires a single lead_id, or a user_id on endpoints for one activity type.

user_idlist of strings or nullOptional

Filter by a comma-separated list of User IDs. Requires a single lead_id, unless the endpoint is for one activity type.

organization_idstring or nullOptional
ID of your organization. Defaults to the organization of your API key or OAuth token.
_typelist of strings or nullOptional

Filter by a comma-separated list of activity types, e.g. Call. Requires a single lead_id, or a user_id on endpoints for one activity type.

date_created__gtedatetime or dateOptional

Only include activities created in Close at or after this date or date and time. Can’t be combined with _order_by=-activity_at.

date_created__ltedatetime or dateOptional

Only include activities created in Close at or before this date or date and time. Can’t be combined with _order_by=-activity_at.

date_created__gtdatetime or dateOptional

Only include activities created in Close after this date or date and time. Can’t be combined with _order_by=-activity_at.

date_created__ltdatetime or dateOptional

Only include activities created in Close before this date or date and time. Can’t be combined with _order_by=-activity_at.

activity_at__gtedatetime or dateOptional

Only include activities that happened at or after this date or date and time. Requires _order_by=-activity_at.

activity_at__ltedatetime or dateOptional

Only include activities that happened at or before this date or date and time. Requires _order_by=-activity_at.

activity_at__gtdatetime or dateOptional

Only include activities that happened after this date or date and time. Requires _order_by=-activity_at.

activity_at__ltdatetime or dateOptional

Only include activities that happened before this date or date and time. Requires _order_by=-activity_at.

custom_activity_type_idlist of strings or nullOptional
custom_activity_type_id__instringOptional
_fieldsstringOptional

Comma-separated list of fields to include in the response.

Response

Successful response
datalist of objects
The results on this page.
has_moreboolean
Whether more results exist after this page.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error