---
title: "Search objects with filters"
method: POST
path: "/data/search/"
tags: ["advanced_filtering"]
---

# Search objects with filters

`POST /data/search/`

## Request

- Base URL: `https://api.close.com/api/v1`
- URL: `https://api.close.com/api/v1/data/search/`
- Auth: one of:
  - HTTP basic
  - OAuth 2
    - Authorization code: `https://app.close.com/oauth2/authorize/`
    - Token URL: `https://api.close.com/oauth2/token/`

Find Leads, Contacts, Opportunities, Activities, Tasks and other objects matching any combination of filters. This is the API behind the filters on the Leads, Contacts and Opportunities pages in Close, and the query language used by Smart Views (`s_query`) and bulk actions.

Searching doesn't change any data.

### Building a query

A query is a tree of objects, each with a `type`:

1. Start with an `and` query.
2. Add an `object_type` query for the type of objects you want, e.g. `{"type": "object_type", "object_type": "lead"}`.
3. Add a `field_condition` query for each filter. It combines a `field` with a `condition`:
    - Built-in fields are `regular_field`s. Their `object_type` must be the type you're searching for, e.g. `title` on `contact`. See the [fields of each object type](https://developer.close.com/api/resources/advanced-filtering-fields).
    - Custom fields are referenced by ID as `custom_field`s. List them with the custom field endpoints, e.g. `GET /custom_field/lead/`.
    - The condition depends on the field's type: `text` for text, `term` for choices and fixed values, `reference` for IDs (statuses, users, ...), `number_range` for numbers, `moment_range` for dates. See `FieldCondition`.
4. To filter by related objects, use `has_related`. For example, Leads with a Contact whose title contains "CEO", or Contacts whose Lead is in a status.

Use `or` for alternatives and set `negate: true` on any query to exclude what it matches.

You can also build a filter on the Leads, Contacts or Opportunities page in Close and copy its JSON with **Copy Filters** in the page's menu.

### Dates

Relative dates are resolved when the search runs. For example, "in the last 30 days" is a `moment_range` condition starting at an `offset` moment of 30 days in the past. Dates without a timezone use the timezone from the `X-TZ-Name` header (an IANA name like `America/New_York`), or UTC.

### Results

Results only contain each object's `id` and `__object_type` unless you list the fields you want in `_fields`, e.g. `{"lead": ["id", "display_name"]}`. Field names are the same as in the object type's own endpoint.

### Pagination and limits

- Each page has up to `_limit` results (at most 200). Pass the response's `cursor` to get the next page. The last page has a `null` cursor. Cursors expire after 30 seconds.
- Pagination stops after 10,000 results. To go through more, split the search, e.g. by `date_created` ranges.
- Sort by a field that rarely changes, like `date_created`, while paginating.
- `results_limit` caps the total number of results. Set it to `0` with `include_counts: true` to only count matches.
- The request body can be at most 50 KB. Overly complex queries are rejected.

## Request body

- DataSearchRequest
  - `_fields` object: Fields to return for each object type. The field names are the same as in the object type's own endpoint, e.g. `{"lead": ["id", "display_name"]}`. Custom fields use `custom.cf_abc123`. Without it, results only contain `id` and `__object_type`.
  - `_limit` integer: Number of results per page.
  - `cursor` string, nullable: The `cursor` from the previous page's response. Cursors expire after 30 seconds.
  - `include_counts` boolean: Whether to include the number of matches in `count`.
  - `query` union: A search query. Queries are distinguished by their `type`. Combine queries with `and` and `or`, and use `negate` on any query to exclude what it matches.
    - AndQuery: Matches objects matching all the given queries.
      - `negate` boolean: Match objects that do NOT match this query instead.
      - `queries` SearchQuery[]: The queries that must all match.
      - `type` 'and', required
    - OrQuery: Matches objects matching at least one of the given queries.
      - `negate` boolean: Match objects that do NOT match this query instead.
      - `queries` SearchQuery[]: The queries of which at least one must match.
      - `type` 'or', required
    - ObjectTypeQuery: Matches objects of the given type. Include one in every search to choose what kind of objects to return.
      - `negate` boolean: Match objects that do NOT match this query instead.
      - `object_type` 'activity.call' | 'activity.created' | 'activity.custom_activity' | 'activity.email' | 'activity.email_thread' | 'activity.form_submission' | 'activity.import_update' | 'activity.lead_merge' | 'activity.lead_status_change' | 'activity.meeting' | 'activity.note' | 'activity.opportunity_status_change' | 'activity.sms' | 'activity.task_completed' | 'activity.whatsapp_message' | 'contact' | 'custom_fields.contact' | 'custom_fields.lead' | 'custom_fields.opportunity' | 'email_template' | 'sms_template' | 'lead' | 'opportunity' | 'saved_search' | 'status.lead' | 'status.opportunity' | 'task.answered_detached_call' | 'task.email_followup' | 'task.incoming_email' | 'task.lead_suggestion_incoming_email' | 'task.incoming_sms' | 'task.incoming_whatsapp_message' | 'task.lead' | 'task.outbound_call' | 'task.draft_email' | 'task.draft_sms' | 'task.missed_call' | 'task.opportunity_due' | 'task.opportunities_awaiting_action' | 'task.voicemail' | 'sequence_subscription' | 'subscription_history' | 'custom_object' | 'lead_file' | 'comment_thread' | 'comment' | 'lead_summary' | 'agent_call_grade' | 'address' | 'contact_email' | 'contact_phone' | 'contact_url', required: Type of a searchable object. - `lead`, `contact`, `opportunity`: Leads, Contacts and Opportunities. - `address`, `contact_email`, `contact_phone`, `contact_url`: a Lead's addresses and a Contact's email addresses, phone numbers and URLs. They're not searchable on their own, only as the `object_type` of a field or the `related_object_type` of a `has_related` query. - `activity.*`: Activities, e.g. `activity.call`, `activity.email`, `activity.meeting`, `activity.note`. - `task.*`: Tasks, e.g. `task.lead` for regular tasks or `task.outbound_call` for call tasks. - `sequence_subscription`: Workflow subscriptions of Contacts. - `custom_object`, `lead_file`, `comment_thread`, `comment`: Custom Objects, files, comment threads and comments. - Other types describe configuration, e.g. `status.lead` or `custom_fields.lead`.
      - `type` 'object_type', required
    - FieldConditionQuery: Matches objects whose field value satisfies a condition.
      - `condition` union, required: A condition a field value must satisfy. Which conditions apply depends on the field's type: - Text, email, phone and URL fields: `text`, `multiple_text`. - Fields with a fixed set of values and choice custom fields: `term`. - References to other objects (IDs): `reference`. For user fields also `current_user`. - Numbers: `number_range`, `number`, `multiple_numbers`. - Durations: `duration_range`. - Dates and datetimes: `moment_range`, `predefined_relative_date_range`, `fixed_date_range`, `exact_moment`. - Booleans: `boolean`. - Timezones: `timezone_name`, `local_time`. - Any field: `exists`.
        - ReferenceCondition: Matches reference fields pointing at any of the given objects. For example, Leads in some statuses or assigned to some users.
          - `object_ids` string[], required: IDs of the referenced objects. Matches any of them.
          - `reference_type` 'activity.call' | 'activity.created' | 'activity.custom_activity' | 'activity.email' | 'activity.email_thread' | 'activity.form_submission' | 'activity.import_update' | 'activity.lead_merge' | 'activity.lead_status_change' | 'activity.meeting' | 'activity.note' | 'activity.opportunity_status_change' | 'activity.sms' | 'activity.task_completed' | 'activity.whatsapp_message' | 'contact' | 'custom_fields.contact' | 'custom_fields.lead' | 'custom_fields.opportunity' | 'email_template' | 'sms_template' | 'lead' | 'opportunity' | 'saved_search' | 'status.lead' | 'status.opportunity' | 'task.answered_detached_call' | 'task.email_followup' | 'task.incoming_email' | 'task.lead_suggestion_incoming_email' | 'task.incoming_sms' | 'task.incoming_whatsapp_message' | 'task.lead' | 'task.outbound_call' | 'task.draft_email' | 'task.draft_sms' | 'task.missed_call' | 'task.opportunity_due' | 'task.opportunities_awaiting_action' | 'task.voicemail' | 'sequence_subscription' | 'subscription_history' | 'custom_object' | 'lead_file' | 'comment_thread' | 'comment' | 'lead_summary' | 'agent_call_grade' | 'agent_config' | 'any_agent' | 'user' | 'group' | 'user_or_group' | 'user_or_agent' | 'user_or_any_agent' | 'user_or_group_or_agent' | 'user_or_group_or_any_agent' | 'sequence' | 'sequence_step' | 'pipeline' | 'custom_activity_type' | 'bulk_action.email' | 'bulk_action.edit' | 'bulk_action.delete' | 'bulk_action.sequence_subscription' | 'connected_account' | 'dialer' | 'import' | 'membership' | 'custom_object_type' | 'phone_number' | 'custom_fields.activity' | 'outcome' | 'form' | 'form_configuration' | 'conversation_type', required: Type of the objects a reference field points to. For example, use `user` for fields like `created_by` or `assigned_to`, `status.lead` for a Lead's `status_id`, and `sequence` for Workflow IDs.
          - `type` 'reference', required
        - CurrentUserCondition: Matches user reference fields pointing at the user making the request. For example, Leads created by "me".
          - `type` 'current_user', required
        - ExistsCondition: Matches if the field has any value. Negate the query to find objects where the field is empty.
          - `type` 'exists', required
        - RelativeDateRangeCondition: Matches dates and datetimes within a range like `this-week`.
          - `type` 'predefined_relative_date_range', required
          - `value` 'yesterday' | 'last-week' | 'last-month' | 'last-quarter' | 'last-year' | 'today' | 'this-week' | 'this-month' | 'this-quarter' | 'this-year' | 'tomorrow' | 'next-week' | 'next-month' | 'next-quarter' | 'next-year' | 'closest-monday' | 'closest-tuesday' | 'closest-wednesday' | 'closest-thursday' | 'closest-friday' | 'closest-saturday' | 'closest-sunday' | 'all-time', required: Relative datetime range options, in the user's timezone.
        - TextCondition: Matches text fields containing the given text.
          - `mode` 'full_words' | 'phrase' | 'beginning_of_words' | 'exact_value', required: How to match text.
          - `type` 'text', required
          - `value` string, required: The text to look for.
        - TermCondition: Matches fields equal to any of the given values. Use it for choice custom fields and fields with a fixed set of values, like a call's `direction`.
          - `type` 'term', required
          - `values` string[], required: Matches any of these values.
        - BooleanCondition: Matches boolean fields with the given value.
          - `type` 'boolean', required
          - `value` boolean, required: The value to match.
        - DateRangeCondition: Matches dates within a fixed range of ISO 8601 dates. At least one bound is required.
          - `gt` string, date: Greater than.
          - `gte` string, date: Greater than or equal.
          - `lt` string, date: Less than.
          - `lte` string, date: Less than or equal.
          - `type` 'fixed_date_range', required
        - NumberRangeCondition: Matches numbers within a range. At least one bound is required. Money values like an Opportunity's `value` are in cents.
          - `gt` union: Greater than.
            - integer
            - number
          - `gte` union: Greater than or equal.
            - integer
            - number
          - `lt` union: Less than.
            - integer
            - number
          - `lte` union: Less than or equal.
            - integer
            - number
          - `type` 'number_range', required
        - DurationRangeCondition: Matches durations, like a call's `duration`, within a range. At least one bound is required.
          - `gt` Duration: A calendar-aware duration. All given parts are added together.
            - `days` integer
            - `hours` integer
            - `minutes` integer
            - `months` integer
            - `seconds` integer
            - `weeks` integer
            - `years` integer
          - `gte` Duration: A calendar-aware duration. All given parts are added together.
            - `days` integer
            - `hours` integer
            - `minutes` integer
            - `months` integer
            - `seconds` integer
            - `weeks` integer
            - `years` integer
          - `lt` Duration: A calendar-aware duration. All given parts are added together.
            - `days` integer
            - `hours` integer
            - `minutes` integer
            - `months` integer
            - `seconds` integer
            - `weeks` integer
            - `years` integer
          - `lte` Duration: A calendar-aware duration. All given parts are added together.
            - `days` integer
            - `hours` integer
            - `minutes` integer
            - `months` integer
            - `seconds` integer
            - `weeks` integer
            - `years` integer
          - `type` 'duration_range', required
        - NumberCondition: Matches numeric fields equal to the given value.
          - `type` 'number', required
          - `value` union, required: The value to match.
            - integer
            - number
        - TimezoneNameCondition: Matches timezone fields with any of the given timezones.
          - `type` 'timezone_name', required
          - `values` string[], required: IANA timezone names, e.g. `America/New_York`.
        - LocalTimeCondition: Matches if the current time in a timezone field is within a range. For example, Contacts for whom it's currently business hours.
          - `before` string, time: End of the range (exclusive), e.g. `17:00`. Defaults to the end of the day.
          - `on_or_after` string, time: Start of the range (inclusive), e.g. `09:00`. Defaults to midnight.
          - `type` 'local_time', required
        - MomentRangeCondition: Matches dates and datetimes between two moments. This is the most flexible date condition: moments can be fixed dates or relative to now, e.g. "in the last 30 days".
          - `before` union: A point in time, evaluated when the search runs.
            - NowMoment: The current time.
              - …
            - FixedUTCMoment: A specific point in time in UTC.
              - …
            - FixedLocalMoment: A specific date and time in the request's timezone.
              - …
            - FixedLocalDateMoment: The start or end of a specific day in the request's timezone.
              - …
            - StartEndOfPeriodMoment: The start or end of the calendar period containing another moment. For example, the start of the current week.
              - …
            - StartEndOfPredefinedRelativePeriodMoment: The start or end of a predefined relative range like `last-week`.
              - …
            - OffsetMoment: A moment shifted into the past or future by a duration. For example, 30 days ago is `{"type": "offset", "offset": {"days": 30}, "direction": "past"}`.
              - …
          - `on_or_after` union: A point in time, evaluated when the search runs.
            - NowMoment: The current time.
              - …
            - FixedUTCMoment: A specific point in time in UTC.
              - …
            - FixedLocalMoment: A specific date and time in the request's timezone.
              - …
            - FixedLocalDateMoment: The start or end of a specific day in the request's timezone.
              - …
            - StartEndOfPeriodMoment: The start or end of the calendar period containing another moment. For example, the start of the current week.
              - …
            - StartEndOfPredefinedRelativePeriodMoment: The start or end of a predefined relative range like `last-week`.
              - …
            - OffsetMoment: A moment shifted into the past or future by a duration. For example, 30 days ago is `{"type": "offset", "offset": {"days": 30}, "direction": "past"}`.
              - …
          - `type` 'moment_range', required
        - ExactMomentCondition: Matches dates and datetimes equal to a moment.
          - `at` union, required: A point in time, evaluated when the search runs.
            - NowMoment: The current time.
              - …
            - FixedUTCMoment: A specific point in time in UTC.
              - …
            - FixedLocalMoment: A specific date and time in the request's timezone.
              - …
            - FixedLocalDateMoment: The start or end of a specific day in the request's timezone.
              - …
            - StartEndOfPeriodMoment: The start or end of the calendar period containing another moment. For example, the start of the current week.
              - …
            - StartEndOfPredefinedRelativePeriodMoment: The start or end of a predefined relative range like `last-week`.
              - …
            - OffsetMoment: A moment shifted into the past or future by a duration. For example, 30 days ago is `{"type": "offset", "offset": {"days": 30}, "direction": "past"}`.
              - …
          - `type` 'exact_moment', required
        - MultipleNumbersCondition: Matches numeric fields equal to any of the given values.
          - `type` 'multiple_numbers', required
          - `values` union[], required: Matches any of these values. At most 800.
            - union
              - …
        - MultipleTextCondition: Matches text fields containing any of the given texts.
          - `mode` 'full_words' | 'phrase' | 'beginning_of_words' | 'exact_value', required: How to match text.
          - `type` 'multiple_text', required
          - `values` string[], required: Matches any of these texts. At most 800, each at most 200 characters long.
      - `field` union, required: A field to filter or sort by.
        - union
          - ActivityCallSearchField: A built-in field of `activity.call` objects.
            - `field_name` 'activity_at' | 'agent_config_id' | 'any_agent' | 'call_agent_grade_funnel_stage' | 'call_agent_grade_performance_summary' | 'call_agent_grade_sentiment_score' | 'call_method' | 'called_by' | 'called_to' | 'comm_type' | 'contact_id' | 'conversation_type_id' | 'conversation_type_reason' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date' | 'date_created' | 'date_updated' | 'dialer_id' | 'dialer_saved_search_id' | 'direction' | 'disposition' | 'duration' | 'has_any_tool_error' | 'has_note' | 'has_recording' | 'has_voicemail' | 'incoming_call_date' | 'is_actual' | 'is_missed' | 'is_to_group_number' | 'lead_id' | 'local_phone' | 'mentions' | 'note' | 'outcome_id' | 'outgoing_call_date' | 'phone' | 'playbook_id' | 'playbook_reason' | 'recording_duration' | 'recording_expires_at' | 'recording_summary' | 'recording_transcript' | 'remote_phone' | 'sequence_id' | 'sequence_subscription_id' | 'skill_use_names' | 'source' | 'status' | 'talk_time' | 'transferred' | 'transferred_from' | 'transferred_from_user' | 'transferred_to' | 'transferred_to_user' | 'updated_by' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'user_talk_time' | 'user_talk_time_ratio' | 'users' | 'voicemail_duration' | 'voicemail_transcript', required: Built-in fields of `activity.call` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `agent_config_id`: Agent Config (`agent_config` ID) - `any_agent`: `any_agent` ID - `call_agent_grade_funnel_stage`: Funnel Stage (one of `no_connection`, `human_reached`, `prospect_engaged`, `objective_met`) - `call_agent_grade_performance_summary`: text - `call_agent_grade_sentiment_score`: Sentiment Score (integer) - `call_method`: Method (fixed value) - `called_by`: Called by (`user` ID) - `called_to`: Called (`user` ID) - `comm_type`: Communication type (one of `call`, `outgoing_call`, `incoming_answered_call`, `missed_call`, `received_voicemail`, `received_email`, `sent_email`, `received_sms`, `sent_sms`, `received_whatsapp_message`, `sent_whatsapp_message`) - `contact_id`: Contact (`contact` ID) - `conversation_type_id`: Playbook (`conversation_type` ID) - `conversation_type_reason`: Playbook set by (one of `user-selected`, `autodetected`) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date`: Date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `dialer_id`: Dialer ID (`dialer` ID) - `dialer_saved_search_id`: Dialed from Smart View (`saved_search` ID) - `direction`: Direction (one of `inbound`, `outbound`) - `disposition`: Disposition (one of `no-answer`, `answered`, `vm-answer`, `vm-left`, `busy`, `blocked`, `error`, `abandoned`) - `duration`: Duration (integer) - `has_any_tool_error`: Has any tool error (boolean) - `has_note`: Has a note (boolean) - `has_recording`: Was recorded (boolean) - `has_voicemail`: Is a voicemail (boolean) - `incoming_call_date`: Incoming call date (datetime) - `is_actual`: Not sent or received (boolean) - `is_missed`: Missed (boolean) - `is_to_group_number`: Group number was called (boolean) - `lead_id`: Lead (`lead` ID) - `local_phone`: Local phone (phone number) - `mentions`: Mentions in the note (`user_or_group` ID) - `note`: Note (text) - `outcome_id`: Outcome (`outcome` ID) - `outgoing_call_date`: Outgoing call date (datetime) - `phone`: Phone number (phone number) - `playbook_id`: Playbook (`conversation_type` ID) - `playbook_reason`: Playbook set by (one of `user-selected`, `autodetected`) - `recording_duration`: Recording (integer) - `recording_expires_at`: Recording Expires At (datetime) - `recording_summary`: Recording Summary (text) - `recording_transcript`: Recording Transcript (text) - `remote_phone`: Remote phone (phone number) - `sequence_id`: Workflow used (`sequence` ID) - `sequence_subscription_id`: Called with a sequence subscription (`sequence_subscription` ID) - `skill_use_names`: Skill used (one of `schedule_callback`, `create_task`, `send_scheduling_link`, `book_meeting`, `send_handoff_alert`, `search_knowledge_base`, `transfer_call`, `press_keypad`) - `source`: Source (one of `close.io`, `external`) - `status`: Status (one of `created`, `in-progress`, `completed`, `cancel`, `no-answer`, `busy`, `failed`, `timeout`) - `talk_time`: Total Recording Talk Time (integer) - `transferred`: Transferred (boolean) - `transferred_from`: Transferred from (`activity.call` ID) - `transferred_from_user`: Transferred from (`user` ID) - `transferred_to`: Transferred to (`activity.call` ID) - `transferred_to_user`: Transferred to (`user` ID) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `user_talk_time`: Total User Talk Time (integer) - `user_talk_time_ratio`: User Talk Time Percent (number) - `users`: User (`user` ID) - `voicemail_duration`: Voicemail duration (integer) - `voicemail_transcript`: Voicemail Transcript (text)
            - `object_type` 'activity.call', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityCreatedSearchField: A built-in field of `activity.created` objects.
            - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'date_created' | 'date_updated' | 'import_id' | 'lead_id' | 'source' | 'updated_by' | 'user_id' | 'users', required: Built-in fields of `activity.created` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `import_id`: Created by Import (`import` ID) - `lead_id`: Lead (`lead` ID) - `source`: Source (one of `ui`, `api`, `import`, `clipper`, `email`, `suggestion`, `segment-integration`, `customerio-integration`, `calendly-integration`, `ai`, `whatsapp`, `webform`) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `users`: User (`user` ID)
            - `object_type` 'activity.created', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityCustomActivitySearchField: A built-in field of `activity.custom_activity` objects.
            - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'custom_activity_type_id' | 'custom_activity_type_version' | 'date_created' | 'date_updated' | 'lead_id' | 'mentions' | 'pinned_at' | 'source' | 'status' | 'updated_by' | 'updated_by_agent_id' | 'updated_by_any_agent' | 'updated_by_user_or_any_agent' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'users', required: Built-in fields of `activity.custom_activity` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `custom_activity_type_id`: Custom Activity Type (`custom_activity_type` ID) - `custom_activity_type_version`: integer - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `mentions`: Mentions within any rich text fields (`user_or_group` ID) - `pinned_at`: Pinned at (datetime) - `source`: Source (one of `ui`, `api`, `import`, `clipper`, `email`, `suggestion`, `segment-integration`, `customerio-integration`, `calendly-integration`, `ai`, `whatsapp`, `webform`) - `status`: Status (one of `draft`, `published`) - `updated_by`: Last updated by (`user` ID) - `updated_by_agent_id`: Last updated by agent (`agent_config` ID) - `updated_by_any_agent`: `any_agent` ID - `updated_by_user_or_any_agent`: Last updated by (`user_or_any_agent` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `users`: User (`user` ID)
            - `object_type` 'activity.custom_activity', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityEmailSearchField: A built-in field of `activity.email` objects.
            - `field_name` 'activity_at' | 'agent_action_reason' | 'agent_config_id' | 'all_bcc' | 'all_cc' | 'all_to' | 'any_agent' | 'attachment_count' | 'attachment_name' | 'bcc' | 'body_text' | 'bulk_email_action_id' | 'cc' | 'comm_type' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date' | 'date_created' | 'date_emailed' | 'date_received' | 'date_scheduled' | 'date_sent' | 'date_updated' | 'direction' | 'emailed_by' | 'emailed_template_id' | 'envelope/is_autoreply' | 'first_date_open' | 'has_reply' | 'has_template' | 'in_reply_to_id' | 'is_actual' | 'is_bulk_email' | 'last_date_open' | 'lead_id' | 'open_dates' | 'opens_count' | 'recipient' | 'send_as_id' | 'sender' | 'sent' | 'sequence_id' | 'sequence_subscription_id' | 'status' | 'subject' | 'template_id' | 'thread_id' | 'to' | 'updated_by' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'users', required: Built-in fields of `activity.email` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `agent_action_reason`: one of `send_scheduling_link`, `custom_agent_decision`, `voice_agent_callback` - `agent_config_id`: Agent Config (`agent_config` ID) - `all_bcc`: BCC (text) - `all_cc`: CC (text) - `all_to`: To (text) - `any_agent`: `any_agent` ID - `attachment_count`: Number of attachments (integer) - `attachment_name`: Email attachment name (text) - `bcc`: BCC (text) - `body_text`: Body (text) - `bulk_email_action_id`: Bulk Email (`bulk_action.email` ID) - `cc`: CC (text) - `comm_type`: Communication type (one of `call`, `outgoing_call`, `incoming_answered_call`, `missed_call`, `received_voicemail`, `received_email`, `sent_email`, `received_sms`, `sent_sms`, `received_whatsapp_message`, `sent_whatsapp_message`) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date`: Date (datetime) - `date_created`: Date created (datetime) - `date_emailed`: Emailed date (datetime) - `date_received`: Date received (datetime) - `date_scheduled`: Scheduled at (datetime) - `date_sent`: Date sent (datetime) - `date_updated`: Date last updated (datetime) - `direction`: Direction (one of `incoming`, `outgoing`) - `emailed_by`: Emailed by (text) - `emailed_template_id`: Email Template used (`email_template` ID) - `envelope/is_autoreply`: boolean - `first_date_open`: First open date (datetime) - `has_reply`: Has reply (boolean) - `has_template`: Sent with a template (boolean) - `in_reply_to_id`: In reply to (`activity.email` ID) - `is_actual`: Not sent or received (boolean) - `is_bulk_email`: Sent by bulk email (boolean) - `last_date_open`: Last open date (datetime) - `lead_id`: Lead (`lead` ID) - `open_dates`: Date opened (datetime) - `opens_count`: Number of opens (integer) - `recipient`: Recipient name or email address (text) - `send_as_id`: `user` ID - `sender`: Sender name or email address (text) - `sent`: Sent date (datetime) - `sequence_id`: Workflow used (`sequence` ID) - `sequence_subscription_id`: Sent with a sequence subscription (`sequence_subscription` ID) - `status`: Current state of the email (one of `inbox`, `draft`, `scheduled`, `outbox`, `sent`, `error`) - `subject`: Subject (text) - `template_id`: Email Template used (`email_template` ID) - `thread_id`: Thread (`activity.email_thread` ID) - `to`: To (text) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `users`: User (`user` ID)
            - `object_type` 'activity.email', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityEmailThreadSearchField: A built-in field of `activity.email_thread` objects.
            - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'date_created' | 'date_updated' | 'email_ids' | 'importance_reason' | 'is_important' | 'latest_normalized_subject' | 'lead_id' | 'n_emails' | 'updated_by' | 'user_id' | 'users', required: Built-in fields of `activity.email_thread` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `email_ids`: Emails (`activity.email` ID) - `importance_reason`: Importance Reason (fixed value) - `is_important`: Is Important (boolean) - `latest_normalized_subject`: Last normalized subject (text) - `lead_id`: Lead (`lead` ID) - `n_emails`: Number of emails (integer) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `users`: User (`user` ID)
            - `object_type` 'activity.email_thread', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityFormSubmissionSearchField: A built-in field of `activity.form_submission` objects.
            - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'date_created' | 'date_updated' | 'form_configuration_id' | 'form_id' | 'lead_id' | 'source_url' | 'source_url_normalized' | 'updated_by' | 'user_id', required: Built-in fields of `activity.form_submission` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `form_configuration_id`: `form_configuration` ID - `form_id`: Web Form (`form` ID) - `lead_id`: Lead (`lead` ID) - `source_url`: URL - `source_url_normalized`: Submission URL (URL) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID)
            - `object_type` 'activity.form_submission', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityImportUpdateSearchField: A built-in field of `activity.import_update` objects.
            - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'date_created' | 'date_updated' | 'import_id' | 'lead_id' | 'reverted' | 'updated_by' | 'user_id' | 'users', required: Built-in fields of `activity.import_update` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `import_id`: Updated by Import (`import` ID) - `lead_id`: Lead (`lead` ID) - `reverted`: Update was Reverted (boolean) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `users`: User (`user` ID)
            - `object_type` 'activity.import_update', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityLeadMergeSearchField: A built-in field of `activity.lead_merge` objects.
            - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'date_created' | 'date_updated' | 'destination_lead_id' | 'lead_id' | 'merge_status' | 'source_lead_id' | 'updated_by' | 'user_id' | 'users', required: Built-in fields of `activity.lead_merge` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `destination_lead_id`: Destination Lead ID (`lead` ID) - `lead_id`: Lead (`lead` ID) - `merge_status`: Merge Status (fixed value) - `source_lead_id`: Source Lead ID (`lead` ID) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `users`: User (`user` ID)
            - `object_type` 'activity.lead_merge', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityLeadStatusChangeSearchField: A built-in field of `activity.lead_status_change` objects.
            - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'date_created' | 'date_updated' | 'lead_id' | 'new_pipeline_id' | 'new_status_id' | 'old_pipeline_id' | 'old_status_id' | 'updated_by' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'users', required: Built-in fields of `activity.lead_status_change` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `new_pipeline_id`: New status (`pipeline` ID) - `new_status_id`: New status (`status.lead` ID) - `old_pipeline_id`: Old status (`pipeline` ID) - `old_status_id`: Old status (`status.lead` ID) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `users`: User (`user` ID)
            - `object_type` 'activity.lead_status_change', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityMeetingSearchField: A built-in field of `activity.meeting` objects.
            - `field_name` 'activity_at' | 'agent_config_id' | 'any_agent' | 'connected_account_id' | 'contact_id' | 'conversation_type_id' | 'conversation_type_reason' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date_created' | 'date_updated' | 'duration' | 'ends_at' | 'has_recording' | 'has_zoom_recordings' | 'is_actual' | 'is_declined' | 'is_recurring' | 'lead_id' | 'location' | 'mentions' | 'note' | 'outcome_id' | 'participant_count' | 'playbook_id' | 'playbook_reason' | 'recording_transcript' | 'source' | 'starts_at' | 'status' | 'talk_time' | 'title' | 'updated_by' | 'user_id' | 'user_note' | 'user_or_agent' | 'user_or_any_agent' | 'user_talk_time' | 'user_talk_time_ratio' | 'users', required: Built-in fields of `activity.meeting` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `agent_config_id`: Agent Config (`agent_config` ID) - `any_agent`: `any_agent` ID - `connected_account_id`: Account (`connected_account` ID) - `contact_id`: Contact (`contact` ID) - `conversation_type_id`: Playbook (`conversation_type` ID) - `conversation_type_reason`: Playbook set by (one of `user-selected`, `autodetected`) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `duration`: Duration (integer) - `ends_at`: Ends At (datetime) - `has_recording`: Was recorded (boolean) - `has_zoom_recordings`: Has Zoom recordings (boolean) - `is_actual`: boolean - `is_declined`: Declined (boolean) - `is_recurring`: Is Recurring (boolean) - `lead_id`: Lead (`lead` ID) - `location`: Location (text) - `mentions`: Mentions in the User's notes (`user_or_group` ID) - `note`: Event notes (text) - `outcome_id`: Outcome (`outcome` ID) - `participant_count`: Number of participants (integer) - `playbook_id`: Playbook (`conversation_type` ID) - `playbook_reason`: Playbook set by (one of `user-selected`, `autodetected`) - `recording_transcript`: Recording Transcript (text) - `source`: Source (one of `calendar`, `manual`) - `starts_at`: Date (datetime) - `status`: Status (one of `upcoming`, `in-progress`, `completed`, `canceled`, `declined-by-org`, `declined-by-lead`) - `talk_time`: Total Recording Talk Time (integer) - `title`: Title (text) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `user_note`: User notes (text) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `user_talk_time`: Total User Talk Time (integer) - `user_talk_time_ratio`: User Talk Time Percent (number) - `users`: User (`user` ID)
            - `object_type` 'activity.meeting', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityNoteSearchField: A built-in field of `activity.note` objects.
            - `field_name` 'activity_at' | 'agent_action_reason' | 'agent_config_id' | 'any_agent' | 'attachment_count' | 'attachment_name' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date_created' | 'date_updated' | 'lead_id' | 'mentions' | 'note' | 'pinned_at' | 'source' | 'title' | 'updated_by' | 'updated_by_agent_id' | 'updated_by_any_agent' | 'updated_by_user_or_any_agent' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'users', required: Built-in fields of `activity.note` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `agent_action_reason`: one of `send_scheduling_link`, `custom_agent_decision`, `voice_agent_callback` - `agent_config_id`: Agent Config (`agent_config` ID) - `any_agent`: `any_agent` ID - `attachment_count`: Number of attachments (integer) - `attachment_name`: Note attachment name (text) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `mentions`: Mentions within note body (`user_or_group` ID) - `note`: Text (text) - `pinned_at`: Pinned at (datetime) - `source`: Source (one of `ui`, `api`, `import`, `clipper`, `email`, `suggestion`, `segment-integration`, `customerio-integration`, `calendly-integration`, `ai`, `whatsapp`, `webform`) - `title`: Title (text) - `updated_by`: Last updated by (`user` ID) - `updated_by_agent_id`: Last updated by agent (`agent_config` ID) - `updated_by_any_agent`: `any_agent` ID - `updated_by_user_or_any_agent`: Last updated by (`user_or_any_agent` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `users`: User (`user` ID)
            - `object_type` 'activity.note', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityOpportunityStatusChangeSearchField: A built-in field of `activity.opportunity_status_change` objects.
            - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'date_created' | 'date_updated' | 'lead_id' | 'new_pipeline_id' | 'new_status_id' | 'new_status_type' | 'old_pipeline_id' | 'old_status_id' | 'old_status_type' | 'opportunity_id' | 'updated_by' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'users', required: Built-in fields of `activity.opportunity_status_change` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `new_pipeline_id`: New pipeline (`pipeline` ID) - `new_status_id`: New status (`status.opportunity` ID) - `new_status_type`: New status type (one of `won`, `lost`, `active`) - `old_pipeline_id`: Old pipeline (`pipeline` ID) - `old_status_id`: Old status (`status.opportunity` ID) - `old_status_type`: Old status type (one of `won`, `lost`, `active`) - `opportunity_id`: Opportunity (`opportunity` ID) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `users`: User (`user` ID)
            - `object_type` 'activity.opportunity_status_change', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivitySmsSearchField: A built-in field of `activity.sms` objects.
            - `field_name` 'activity_at' | 'agent_action_reason' | 'agent_config_id' | 'any_agent' | 'attachment_count' | 'attachment_name' | 'comm_type' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date' | 'date_created' | 'date_scheduled' | 'date_sent' | 'date_updated' | 'direction' | 'from_phone' | 'inbound_date' | 'is_actual' | 'lead_id' | 'local_phone' | 'outbound_date' | 'remote_phone' | 'sender' | 'sent' | 'source' | 'status' | 'template_id' | 'text' | 'to_phone' | 'updated_by' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'users', required: Built-in fields of `activity.sms` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `agent_action_reason`: one of `send_scheduling_link`, `custom_agent_decision`, `voice_agent_callback` - `agent_config_id`: Agent Config (`agent_config` ID) - `any_agent`: `any_agent` ID - `attachment_count`: Number of attachments (integer) - `attachment_name`: SMS attachment name (text) - `comm_type`: Communication type (one of `call`, `outgoing_call`, `incoming_answered_call`, `missed_call`, `received_voicemail`, `received_email`, `sent_email`, `received_sms`, `sent_sms`, `received_whatsapp_message`, `sent_whatsapp_message`) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date`: Date (datetime) - `date_created`: Date created (datetime) - `date_scheduled`: Date scheduled (datetime) - `date_sent`: Date sent (datetime) - `date_updated`: Date last updated (datetime) - `direction`: Direction (one of `inbound`, `outbound`) - `from_phone`: Phone (phone number) - `inbound_date`: Incoming SMS date (datetime) - `is_actual`: Not sent or received (boolean) - `lead_id`: Lead (`lead` ID) - `local_phone`: Local phone (phone number) - `outbound_date`: Outgoing SMS date (datetime) - `remote_phone`: Remote phone (phone number) - `sender`: Sender (`user` ID) - `sent`: Sent date (datetime) - `source`: Source (one of `Close.io`, `External`) - `status`: Status (one of `inbox`, `draft`, `scheduled`, `outbox`, `sent`, `error`) - `template_id`: SMS Template used (`sms_template` ID) - `text`: Message (text) - `to_phone`: Phone (phone number) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `users`: User (`user` ID)
            - `object_type` 'activity.sms', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityTaskCompletedSearchField: A built-in field of `activity.task_completed` objects.
            - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'date_created' | 'date_updated' | 'lead_id' | 'task_assigned_to' | 'task_text' | 'updated_by' | 'user_id' | 'users', required: Built-in fields of `activity.task_completed` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `task_assigned_to`: Assigned to (`user` ID) - `task_text`: Description (text) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `users`: User (`user` ID)
            - `object_type` 'activity.task_completed', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ActivityWhatsappMessageSearchField: A built-in field of `activity.whatsapp_message` objects.
            - `field_name` 'activity_at' | 'attachment_count' | 'attachment_name' | 'comm_type' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'direction' | 'from_phone' | 'inbound_date' | 'lead_id' | 'local_phone' | 'outbound_date' | 'remote_phone' | 'sender' | 'source' | 'text' | 'to_phone' | 'updated_by' | 'user_id' | 'users', required: Built-in fields of `activity.whatsapp_message` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `attachment_count`: Number of attachments (integer) - `attachment_name`: WhatsApp attachment name (text) - `comm_type`: Communication type (one of `call`, `outgoing_call`, `incoming_answered_call`, `missed_call`, `received_voicemail`, `received_email`, `sent_email`, `received_sms`, `sent_sms`, `received_whatsapp_message`, `sent_whatsapp_message`) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `direction`: Direction (one of `incoming`, `outgoing`) - `from_phone`: Phone (phone number) - `inbound_date`: Incoming WhatsApp message date (datetime) - `lead_id`: Lead (`lead` ID) - `local_phone`: Local phone (phone number) - `outbound_date`: Outgoing WhatsApp message date (datetime) - `remote_phone`: Remote phone (phone number) - `sender`: Sender (`user` ID) - `source`: Source (one of `ui`, `api`, `import`, `clipper`, `email`, `suggestion`, `segment-integration`, `customerio-integration`, `calendly-integration`, `ai`, `whatsapp`, `webform`) - `text`: Message (text) - `to_phone`: Phone (phone number) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `users`: User (`user` ID)
            - `object_type` 'activity.whatsapp_message', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - AddressSearchField: A built-in field of `address` objects.
            - `field_name` 'address_1' | 'address_2' | 'city' | 'country' | 'label' | 'location' | 'state' | 'timezone_id' | 'timezone_offset' | 'zipcode', required: Built-in fields of `address` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `address_1`: Address line 1 (text) - `address_2`: Address line 2 (text) - `city`: City (text) - `country`: Country (country) - `label`: Label (text) - `location`: Address (text) - `state`: State (state) - `timezone_id`: Local time (timezone) - `timezone_offset`: Timezone offset (integer) - `zipcode`: Zip code (text)
            - `object_type` 'address', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - AgentCallGradeSearchField: A built-in field of `agent_call_grade` objects.
            - `field_name` 'agent_grade_funnel_stage' | 'agent_grade_performance_summary' | 'agent_grade_sentiment_score' | 'call_id' | 'created_by' | 'date_created' | 'date_updated' | 'updated_by', required: Built-in fields of `agent_call_grade` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `agent_grade_funnel_stage`: Funnel Stage (one of `no_connection`, `human_reached`, `prospect_engaged`, `objective_met`) - `agent_grade_performance_summary`: Performance Summary (text) - `agent_grade_sentiment_score`: Sentiment Score (integer) - `call_id`: Call (`activity.call` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'agent_call_grade', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - CommentSearchField: A built-in field of `comment` objects.
            - `field_name` 'body_text' | 'created_by' | 'date_created' | 'date_updated' | 'lead_id' | 'mentions' | 'updated_by', required: Built-in fields of `comment` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `body_text`: Body (text) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `mentions`: Mentions within any rich text fields (`user_or_group` ID) - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'comment', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - CommentThreadSearchField: A built-in field of `comment_thread` objects.
            - `field_name` 'comment_count' | 'created_by' | 'date_created' | 'date_updated' | 'lead_id' | 'object_type' | 'updated_by' | 'users', required: Built-in fields of `comment_thread` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `comment_count`: Number of comments (integer) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `object_type`: Object Type (fixed value) - `updated_by`: Last updated by (`user` ID) - `users`: `user` ID
            - `object_type` 'comment_thread', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ContactSearchField: A built-in field of `contact` objects.
            - `field_name` 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date_created' | 'date_updated' | 'emails_count' | 'is_primary' | 'last_step_date_created' | 'lead_id' | 'max_step_last_processed_at' | 'max_tz_offset' | 'min_tz_offset' | 'name' | 'num_call_tasks' | 'num_completed_call_tasks' | 'num_incomplete_call_tasks' | 'phones_count' | 'timezone' | 'title' | 'updated_by' | 'updated_by_agent_id' | 'updated_by_any_agent' | 'updated_by_user_or_any_agent' | 'urls_count' | 'user_id' | 'users', required: Built-in fields of `contact` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `contact_id`: `contact` ID - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `emails_count`: Number of email addresses (integer) - `is_primary`: First contact (boolean) - `last_step_date_created`: Last Subscription Step Date Created (datetime) - `lead_id`: Lead (`lead` ID) - `max_step_last_processed_at`: Max Subscription Step Last Processed At (datetime) - `max_tz_offset`: integer - `min_tz_offset`: integer - `name`: Name (text) - `num_call_tasks`: integer - `num_completed_call_tasks`: integer - `num_incomplete_call_tasks`: integer - `phones_count`: Number of phone numbers (integer) - `timezone`: timezone - `title`: Title (text) - `updated_by`: Last updated by (`user` ID) - `updated_by_agent_id`: Last updated by agent (`agent_config` ID) - `updated_by_any_agent`: `any_agent` ID - `updated_by_user_or_any_agent`: Last updated by (`user_or_any_agent` ID) - `urls_count`: Number of URLs (integer) - `user_id`: `user` ID - `users`: `user` ID
            - `object_type` 'contact', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ContactEmailSearchField: A built-in field of `contact_email` objects.
            - `field_name` 'email' | 'is_unsubscribed', required: Built-in fields of `contact_email` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `email`: Email address (email address) - `is_unsubscribed`: Unsubscribed (boolean)
            - `object_type` 'contact_email', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ContactPhoneSearchField: A built-in field of `contact_phone` objects.
            - `field_name` 'is_toll_free' | 'phone' | 'timezone_id' | 'timezone_offset', required: Built-in fields of `contact_phone` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `is_toll_free`: Toll free (boolean) - `phone`: Phone number (phone number) - `timezone_id`: Local time (timezone) - `timezone_offset`: Timezone offset (integer)
            - `object_type` 'contact_phone', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - ContactUrlSearchField: A built-in field of `contact_url` objects.
            - `field_name` 'url', required: Built-in fields of `contact_url` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `url`: URL (URL)
            - `object_type` 'contact_url', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - CustomFieldsContactSearchField: A built-in field of `custom_fields.contact` objects.
            - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'name' | 'updated_by', required: Built-in fields of `custom_fields.contact` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `name`: Name (text) - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'custom_fields.contact', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - CustomFieldsLeadSearchField: A built-in field of `custom_fields.lead` objects.
            - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'name' | 'updated_by', required: Built-in fields of `custom_fields.lead` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `name`: Name (text) - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'custom_fields.lead', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - CustomFieldsOpportunitySearchField: A built-in field of `custom_fields.opportunity` objects.
            - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'name' | 'updated_by', required: Built-in fields of `custom_fields.opportunity` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `name`: Name (text) - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'custom_fields.opportunity', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - CustomObjectSearchField: A built-in field of `custom_object` objects.
            - `field_name` 'created_by' | 'custom_object_type_id' | 'date_created' | 'date_updated' | 'lead_id' | 'name' | 'updated_by', required: Built-in fields of `custom_object` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `custom_object_type_id`: Custom Object Type (`custom_object_type` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `name`: Name (text) - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'custom_object', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - EmailTemplateSearchField: A built-in field of `email_template` objects.
            - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'is_archived' | 'name' | 'updated_by', required: Built-in fields of `email_template` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_archived`: Archived (boolean) - `name`: Name (text) - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'email_template', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - LeadSearchField: A built-in field of `lead` objects.
            - `field_name` 'addresses_count' | 'all_urls_count' | 'avg_annual_active_opportunity_value' | 'avg_annual_lost_opportunity_value' | 'avg_annual_opportunity_value' | 'avg_annual_won_opportunity_value' | 'avg_annualized_active_opportunity_value' | 'avg_annualized_lost_opportunity_value' | 'avg_annualized_opportunity_value' | 'avg_annualized_won_opportunity_value' | 'avg_monthly_active_opportunity_value' | 'avg_monthly_lost_opportunity_value' | 'avg_monthly_opportunity_value' | 'avg_monthly_won_opportunity_value' | 'avg_one_time_active_opportunity_value' | 'avg_one_time_lost_opportunity_value' | 'avg_one_time_opportunity_value' | 'avg_one_time_won_opportunity_value' | 'call_notes_count' | 'call_recordings_count' | 'call_voicemails_count' | 'calls_over_60s_count' | 'calls_over_60s_duration' | 'canceled_meetings_duration' | 'completed_meetings_duration' | 'contact_ids' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date_created' | 'date_updated' | 'declined_by_lead_meetings_duration' | 'declined_by_org_meetings_duration' | 'declined_meetings_duration' | 'description' | 'display_name' | 'email_first_opened' | 'email_last_opened' | 'emails_opened_count' | 'first_actual_email_subject' | 'first_call_agent_config_id' | 'first_call_any_agent' | 'first_call_created' | 'first_call_direction' | 'first_call_disposition' | 'first_call_duration' | 'first_call_note' | 'first_call_outcome_id' | 'first_call_updated' | 'first_call_updated_by' | 'first_call_user' | 'first_communication_date' | 'first_communication_direction' | 'first_communication_type' | 'first_communication_user_id' | 'first_completed_meeting_outcome_id' | 'first_created_source' | 'first_email' | 'first_email_attachments' | 'first_email_bcc' | 'first_email_cc' | 'first_email_created' | 'first_email_direction' | 'first_email_from' | 'first_email_opened' | 'first_email_opens' | 'first_email_subject' | 'first_email_template' | 'first_email_to' | 'first_email_user' | 'first_emailed' | 'first_emailed_template' | 'first_incoming_call_date' | 'first_incoming_email_date' | 'first_incoming_email_user_id' | 'first_incoming_sms_date' | 'first_lead_status_change_date' | 'first_lead_status_change_new_status' | 'first_lead_status_change_old_status' | 'first_note_by' | 'first_note_created' | 'first_note_updated' | 'first_note_updated_by' | 'first_note_user' | 'first_opportunity_created_date_created' | 'first_opportunity_status_change_date' | 'first_opportunity_status_change_new_pipeline' | 'first_opportunity_status_change_new_status' | 'first_opportunity_status_change_old_pipeline' | 'first_opportunity_status_change_old_status' | 'first_opportunity_updated_date_updated' | 'first_opportunity_won_date_won' | 'first_outgoing_call_date' | 'first_outgoing_email_date' | 'first_outgoing_email_user_id' | 'first_outgoing_sms_date' | 'first_received_sms_date' | 'first_sent_sms_date' | 'first_sms_created' | 'first_sms_date' | 'first_sms_direction' | 'first_sms_text' | 'first_sms_user' | 'first_updated_note_updated' | 'first_voicemail_duration' | 'in_progress_meetings_duration' | 'last_activity_date' | 'last_activity_user_id' | 'last_actual_email_subject' | 'last_call_agent_config_id' | 'last_call_any_agent' | 'last_call_created' | 'last_call_direction' | 'last_call_disposition' | 'last_call_duration' | 'last_call_note' | 'last_call_outcome_id' | 'last_call_updated' | 'last_call_updated_by' | 'last_call_user_id' | 'last_communication_date' | 'last_communication_direction' | 'last_communication_type' | 'last_communication_user_id' | 'last_complete_task_due_date' | 'last_complete_task_updated' | 'last_completed_meeting_duration' | 'last_completed_meeting_ends_at' | 'last_completed_meeting_is_recurring' | 'last_completed_meeting_location' | 'last_completed_meeting_note' | 'last_completed_meeting_num_participants' | 'last_completed_meeting_outcome_id' | 'last_completed_meeting_source' | 'last_completed_meeting_starts_at' | 'last_completed_meeting_status' | 'last_completed_meeting_title' | 'last_completed_meeting_users' | 'last_email_attachments' | 'last_email_bcc' | 'last_email_cc' | 'last_email_created' | 'last_email_date' | 'last_email_direction' | 'last_email_from' | 'last_email_last_open_date' | 'last_email_opens_count' | 'last_email_subject' | 'last_email_template_id' | 'last_email_to' | 'last_email_user' | 'last_emailed' | 'last_emailed_template' | 'last_incoming_call_date' | 'last_incoming_communication_date' | 'last_incoming_email_date' | 'last_incoming_email_user_id' | 'last_incoming_sms_date' | 'last_lead_status_change_date' | 'last_lead_status_change_new_status' | 'last_lead_status_change_old_status' | 'last_note_by' | 'last_note_created' | 'last_note_updated' | 'last_note_updated_by' | 'last_note_user' | 'last_opportunity_created_date_created' | 'last_opportunity_status_change_date' | 'last_opportunity_status_change_new_status' | 'last_opportunity_status_change_old_status' | 'last_opportunity_updated_date_updated' | 'last_opportunity_won_date_won' | 'last_outgoing_call_date' | 'last_outgoing_communication_date' | 'last_outgoing_email_date' | 'last_outgoing_email_user_id' | 'last_outgoing_sms_date' | 'last_received_sms_date' | 'last_sent_sms_date' | 'last_sms_created' | 'last_sms_date' | 'last_sms_direction' | 'last_sms_text' | 'last_sms_user' | 'last_task_created' | 'last_task_creator' | 'last_task_due' | 'last_task_text' | 'last_task_updated' | 'last_task_updated_by' | 'last_updated_note_updated' | 'last_voicemail_duration' | 'longest_call_duration' | 'longest_recording_duration' | 'longest_voicemail_duration' | 'max_annual_active_opportunity_value' | 'max_annual_lost_opportunity_value' | 'max_annual_opportunity_value' | 'max_annual_won_opportunity_value' | 'max_annualized_active_opportunity_value' | 'max_annualized_lost_opportunity_value' | 'max_annualized_opportunity_value' | 'max_annualized_won_opportunity_value' | 'max_monthly_active_opportunity_value' | 'max_monthly_lost_opportunity_value' | 'max_monthly_opportunity_value' | 'max_monthly_won_opportunity_value' | 'max_one_time_active_opportunity_value' | 'max_one_time_lost_opportunity_value' | 'max_one_time_opportunity_value' | 'max_one_time_won_opportunity_value' | 'max_opportunity_annualized_annualized_value' | 'max_opportunity_confidence_confidence' | 'max_timezone_offset' | 'meetings_duration' | 'min_annual_active_opportunity_value' | 'min_annual_lost_opportunity_value' | 'min_annual_opportunity_value' | 'min_annual_won_opportunity_value' | 'min_annualized_active_opportunity_value' | 'min_annualized_lost_opportunity_value' | 'min_annualized_opportunity_value' | 'min_annualized_won_opportunity_value' | 'min_monthly_active_opportunity_value' | 'min_monthly_lost_opportunity_value' | 'min_monthly_opportunity_value' | 'min_monthly_won_opportunity_value' | 'min_one_time_active_opportunity_value' | 'min_one_time_lost_opportunity_value' | 'min_one_time_opportunity_value' | 'min_one_time_won_opportunity_value' | 'min_opportunity_confidence_confidence' | 'min_timezone_offset' | 'name' | 'next_due' | 'next_task_date' | 'next_task_due_date' | 'next_task_text' | 'next_task_user_id' | 'next_upcoming_meeting_duration' | 'next_upcoming_meeting_ends_at' | 'next_upcoming_meeting_is_recurring' | 'next_upcoming_meeting_location' | 'next_upcoming_meeting_note' | 'next_upcoming_meeting_num_participants' | 'next_upcoming_meeting_source' | 'next_upcoming_meeting_starts_at' | 'next_upcoming_meeting_status' | 'next_upcoming_meeting_title' | 'next_upcoming_meeting_users' | 'num_active_opportunities' | 'num_activities' | 'num_annual_opportunities' | 'num_calls' | 'num_canceled_meetings' | 'num_completed_meetings' | 'num_completed_tasks' | 'num_contact_urls' | 'num_contacts' | 'num_declined_by_lead_meetings' | 'num_declined_by_org_meetings' | 'num_declined_meetings' | 'num_draft_emails' | 'num_draft_sms' | 'num_email_addresses' | 'num_email_attachments' | 'num_email_opens' | 'num_emails' | 'num_error_emails' | 'num_error_sms' | 'num_in_progress_meetings' | 'num_incoming_calls' | 'num_incomplete_tasks' | 'num_lost_opportunities' | 'num_meetings' | 'num_missed_calls' | 'num_monthly_opportunities' | 'num_notes' | 'num_one_time_opportunities' | 'num_opportunities' | 'num_outbox_emails' | 'num_outbox_sms' | 'num_outgoing_calls' | 'num_outgoing_emails' | 'num_phone_numbers' | 'num_received_emails' | 'num_received_sms' | 'num_scheduled_emails' | 'num_scheduled_sms' | 'num_sent_emails' | 'num_sent_sms' | 'num_sms' | 'num_tasks' | 'num_upcoming_meetings' | 'num_won_opportunities' | 'original_lead_status' | 'outbound_sms_count' | 'pipeline_id' | 'primary_contact_name' | 'primary_email' | 'primary_opportunity_confidence' | 'primary_opportunity_created' | 'primary_opportunity_date_won' | 'primary_opportunity_period' | 'primary_opportunity_status' | 'primary_opportunity_status_type' | 'primary_opportunity_updated' | 'primary_opportunity_user_id' | 'primary_opportunity_value' | 'shortest_call_duration' | 'shortest_voicemail_duration' | 'status_id' | 'time_to_first_call' | 'time_to_first_communication' | 'time_to_first_email' | 'time_to_first_incoming_call' | 'time_to_first_incoming_communication' | 'time_to_first_incoming_email' | 'time_to_first_incoming_sms' | 'time_to_first_meeting' | 'time_to_first_outgoing_call' | 'time_to_first_outgoing_communication' | 'time_to_first_outgoing_email' | 'time_to_first_outgoing_sms' | 'time_to_first_sms' | 'times_communicated' | 'times_communicated_outgoing' | 'timezone_offset' | 'total_annual_active_opportunity_value' | 'total_annual_lost_opportunity_value' | 'total_annual_opportunity_value' | 'total_annual_won_opportunity_value' | 'total_annualized_active_opportunity_value' | 'total_annualized_lost_opportunity_value' | 'total_annualized_opportunity_value' | 'total_annualized_won_opportunity_value' | 'total_call_duration' | 'total_monthly_active_opportunity_value' | 'total_monthly_lost_opportunity_value' | 'total_monthly_opportunity_value' | 'total_monthly_won_opportunity_value' | 'total_one_time_active_opportunity_value' | 'total_one_time_lost_opportunity_value' | 'total_one_time_opportunity_value' | 'total_one_time_won_opportunity_value' | 'upcoming_meetings_duration' | 'updated_by' | 'updated_by_agent_id' | 'updated_by_any_agent' | 'updated_by_user_or_any_agent' | 'url' | 'urls_count', required: Built-in fields of `lead` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `addresses_count`: Total number of addresses (integer) - `all_urls_count`: Total number of URLs (integer) - `avg_annual_active_opportunity_value`: Opportunity value - average annual active (number) - `avg_annual_lost_opportunity_value`: Opportunity value - average annual lost (number) - `avg_annual_opportunity_value`: Opportunity value - average annual (number) - `avg_annual_won_opportunity_value`: Opportunity value - average annual won (number) - `avg_annualized_active_opportunity_value`: Opportunity value - average annualized active (number) - `avg_annualized_lost_opportunity_value`: Opportunity value - average annualized lost (number) - `avg_annualized_opportunity_value`: Opportunity value - average annualized (number) - `avg_annualized_won_opportunity_value`: Opportunity value - average annualized won (number) - `avg_monthly_active_opportunity_value`: Opportunity value - average monthly active (number) - `avg_monthly_lost_opportunity_value`: Opportunity value - average monthly lost (number) - `avg_monthly_opportunity_value`: Opportunity value - average monthly (number) - `avg_monthly_won_opportunity_value`: Opportunity value - average monthly won (number) - `avg_one_time_active_opportunity_value`: Opportunity value - average one time active (number) - `avg_one_time_lost_opportunity_value`: Opportunity value - average one time lost (number) - `avg_one_time_opportunity_value`: Opportunity value - average one time (number) - `avg_one_time_won_opportunity_value`: Opportunity value - average one time won (number) - `call_notes_count`: Number of calls with notes (integer) - `call_recordings_count`: Number of recordings (integer) - `call_voicemails_count`: Number of voicemails (integer) - `calls_over_60s_count`: Calls over 60s (integer) - `calls_over_60s_duration`: Calls over 60s duration (integer) - `canceled_meetings_duration`: Canceled meetings duration (integer) - `completed_meetings_duration`: Completed meetings duration (integer) - `contact_ids`: Contacts (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `declined_by_lead_meetings_duration`: Declined by lead meetings duration (integer) - `declined_by_org_meetings_duration`: Declined by org meetings duration (integer) - `declined_meetings_duration`: Declined meetings duration (integer) - `description`: Description (text) - `display_name`: Name (text) - `email_first_opened`: Date of first email open (datetime) - `email_last_opened`: Date of latest email open (datetime) - `emails_opened_count`: Number of opened emails (integer) - `first_actual_email_subject`: First actual email - Subject (text) - `first_call_agent_config_id`: First call - Agent Config (`agent_config` ID) - `first_call_any_agent`: First call - AI Agent (`any_agent` ID) - `first_call_created`: Date of first call (datetime) - `first_call_direction`: First call - Direction (one of `inbound`, `outbound`) - `first_call_disposition`: First call disposition (one of `no-answer`, `answered`, `vm-answer`, `vm-left`, `busy`, `blocked`, `error`, `abandoned`) - `first_call_duration`: First call - Duration (integer) - `first_call_note`: First call note (text) - `first_call_outcome_id`: First call - Outcome (`outcome` ID) - `first_call_updated`: First updated call date (datetime) - `first_call_updated_by`: First call - Updated by (`user` ID) - `first_call_user`: First call - User (`user` ID) - `first_communication_date`: First communication - Date (datetime) - `first_communication_direction`: First communication - Direction (one of `incoming`, `outgoing`) - `first_communication_type`: First communication - Type (one of `call`, `outgoing_call`, `incoming_answered_call`, `missed_call`, `received_voicemail`, `received_email`, `sent_email`, `received_sms`, `sent_sms`, `received_whatsapp_message`, `sent_whatsapp_message`) - `first_communication_user_id`: First communication - User (`user` ID) - `first_completed_meeting_outcome_id`: First completed meeting - Outcome (`outcome` ID) - `first_created_source`: First created source (one of `ui`, `api`, `import`, `clipper`, `email`, `suggestion`, `segment-integration`, `customerio-integration`, `calendly-integration`, `ai`, `whatsapp`, `webform`) - `first_email`: First email - Date (datetime) - `first_email_attachments`: First email - Attachment count (integer) - `first_email_bcc`: First email - BCC (text) - `first_email_cc`: First email - CC (text) - `first_email_created`: First email - Date created (datetime) - `first_email_direction`: First email - Direction (one of `incoming`, `outgoing`) - `first_email_from`: First email - From (text) - `first_email_opened`: First email - Open date (datetime) - `first_email_opens`: First email - Opens count (integer) - `first_email_subject`: Earliest email subject (text) - `first_email_template`: First email - Template (`email_template` ID) - `first_email_to`: First email - To (text) - `first_email_user`: First email - User (`user` ID) - `first_emailed`: First email - Recipient (text) - `first_emailed_template`: First templated email - Template (`email_template` ID) - `first_incoming_call_date`: First incoming call - Date (datetime) - `first_incoming_email_date`: First incoming email - Date received (datetime) - `first_incoming_email_user_id`: First incoming email - User (`user` ID) - `first_incoming_sms_date`: First incoming SMS - Date (datetime) - `first_lead_status_change_date`: First lead status change - Date (datetime) - `first_lead_status_change_new_status`: First lead status change - New status (`status.lead` ID) - `first_lead_status_change_old_status`: First lead status change - Old status (`status.lead` ID) - `first_note_by`: First note - Created by (`user` ID) - `first_note_created`: First note - Date (datetime) - `first_note_updated`: First note - Date updated (datetime) - `first_note_updated_by`: First note - Updated by (`user` ID) - `first_note_user`: First note - User (`user` ID) - `first_opportunity_created_date_created`: First opportunity - Date created (datetime) - `first_opportunity_status_change_date`: First opportunity status change - Date (datetime) - `first_opportunity_status_change_new_pipeline`: `status.opportunity` ID - `first_opportunity_status_change_new_status`: First opportunity status change - New status (`status.opportunity` ID) - `first_opportunity_status_change_old_pipeline`: `status.opportunity` ID - `first_opportunity_status_change_old_status`: First opportunity status change - Old status (`status.opportunity` ID) - `first_opportunity_updated_date_updated`: First opportunity - Date updated (datetime) - `first_opportunity_won_date_won`: First won opportunity date (date) - `first_outgoing_call_date`: First outgoing call - Date (datetime) - `first_outgoing_email_date`: First outgoing email - Date sent (datetime) - `first_outgoing_email_user_id`: First outgoing email - User (`user` ID) - `first_outgoing_sms_date`: First outgoing SMS - Date (datetime) - `first_received_sms_date`: First received SMS date (datetime) - `first_sent_sms_date`: First sent SMS date (datetime) - `first_sms_created`: First SMS created (datetime) - `first_sms_date`: First SMS date (datetime) - `first_sms_direction`: First SMS - Direction (one of `inbound`, `outbound`) - `first_sms_text`: First SMS text (text) - `first_sms_user`: First SMS - User (`user` ID) - `first_updated_note_updated`: First updated note - Date updated (datetime) - `first_voicemail_duration`: First voicemail - Duration (integer) - `in_progress_meetings_duration`: In-progress meetings duration (integer) - `last_activity_date`: Latest activity date (datetime) - `last_activity_user_id`: Latest activity user (`user` ID) - `last_actual_email_subject`: Last actual email - Subject (text) - `last_call_agent_config_id`: Last call - Agent Config (`agent_config` ID) - `last_call_any_agent`: Last call - AI Agent (`any_agent` ID) - `last_call_created`: Last call - Date (datetime) - `last_call_direction`: Last call - Direction (one of `inbound`, `outbound`) - `last_call_disposition`: Last call - Disposition (one of `no-answer`, `answered`, `vm-answer`, `vm-left`, `busy`, `blocked`, `error`, `abandoned`) - `last_call_duration`: Last call duration (integer) - `last_call_note`: Last call note (text) - `last_call_outcome_id`: Last call - Outcome (`outcome` ID) - `last_call_updated`: Last updated call date (datetime) - `last_call_updated_by`: Last call - Updated by (`user` ID) - `last_call_user_id`: Last call - User (`user` ID) - `last_communication_date`: Last communication - Date (datetime) - `last_communication_direction`: Last communication - Direction (one of `incoming`, `outgoing`) - `last_communication_type`: Last communication - Type (one of `call`, `outgoing_call`, `incoming_answered_call`, `missed_call`, `received_voicemail`, `received_email`, `sent_email`, `received_sms`, `sent_sms`, `received_whatsapp_message`, `sent_whatsapp_message`) - `last_communication_user_id`: Last communication - User (`user` ID) - `last_complete_task_due_date`: Last completed task - Due date (datetime) - `last_complete_task_updated`: Last completed task - Date updated (datetime) - `last_completed_meeting_duration`: Last completed meeting - Duration (integer) - `last_completed_meeting_ends_at`: Last completed meeting - End time (datetime) - `last_completed_meeting_is_recurring`: Last completed meeting - Is recurring (boolean) - `last_completed_meeting_location`: Last completed meeting - Location (text) - `last_completed_meeting_note`: Last completed meeting - Event notes (text) - `last_completed_meeting_num_participants`: Last completed meeting - Number of participants (integer) - `last_completed_meeting_outcome_id`: Last completed meeting - Outcome (`outcome` ID) - `last_completed_meeting_source`: Last completed meeting - Source (one of `calendar`, `manual`) - `last_completed_meeting_starts_at`: Last completed meeting - Date (datetime) - `last_completed_meeting_status`: Last completed meeting - Status (one of `upcoming`, `in-progress`, `completed`, `canceled`, `declined-by-org`, `declined-by-lead`) - `last_completed_meeting_title`: Last completed meeting - Title (text) - `last_completed_meeting_users`: Last completed meeting - User (`user` ID) - `last_email_attachments`: Last email - Attachment count (integer) - `last_email_bcc`: Last email - BCC (text) - `last_email_cc`: Last email - CC (text) - `last_email_created`: Last email - Date created (datetime) - `last_email_date`: Last email - Date (datetime) - `last_email_direction`: Last email - Direction (one of `incoming`, `outgoing`) - `last_email_from`: Last email - From (text) - `last_email_last_open_date`: Last email - Date opened (datetime) - `last_email_opens_count`: Last email - Number of opens (integer) - `last_email_subject`: Latest email subject (text) - `last_email_template_id`: Last email - Email Template used (`email_template` ID) - `last_email_to`: Last email - To (text) - `last_email_user`: Last email - User (`user` ID) - `last_emailed`: Last email recipient (text) - `last_emailed_template`: Last emailed template (`email_template` ID) - `last_incoming_call_date`: Last incoming call - Date incoming (datetime) - `last_incoming_communication_date`: Latest incoming communication date (datetime) - `last_incoming_email_date`: Last incoming email - Date received (datetime) - `last_incoming_email_user_id`: Last incoming email - User (`user` ID) - `last_incoming_sms_date`: Last incoming SMS - Date (datetime) - `last_lead_status_change_date`: Date (datetime) - `last_lead_status_change_new_status`: New status (`status.lead` ID) - `last_lead_status_change_old_status`: Previous status (`status.lead` ID) - `last_note_by`: Last note - Created by (`user` ID) - `last_note_created`: Last note - Date (datetime) - `last_note_updated`: Last note - Date updated (datetime) - `last_note_updated_by`: Last note - Updated by (`user` ID) - `last_note_user`: Last note - User (`user` ID) - `last_opportunity_created_date_created`: Last opportunity - Date created (datetime) - `last_opportunity_status_change_date`: Last opportunity status change - Date (datetime) - `last_opportunity_status_change_new_status`: Last opportunity status change - New status (`status.opportunity` ID) - `last_opportunity_status_change_old_status`: Last opportunity status change - Previous status (`status.opportunity` ID) - `last_opportunity_updated_date_updated`: Last opportunity - Date updated (datetime) - `last_opportunity_won_date_won`: Last won opportunity date (date) - `last_outgoing_call_date`: Last outgoing call - Date outgoing (datetime) - `last_outgoing_communication_date`: Latest outgoing communication date (datetime) - `last_outgoing_email_date`: Last outgoing email - Date sent (datetime) - `last_outgoing_email_user_id`: Last outgoing email - User (`user` ID) - `last_outgoing_sms_date`: Last outgoing SMS - Date (datetime) - `last_received_sms_date`: Last received SMS - Date received (datetime) - `last_sent_sms_date`: Last sent SMS - Date sent (datetime) - `last_sms_created`: Last SMS created (datetime) - `last_sms_date`: Last SMS - Date (datetime) - `last_sms_direction`: Last SMS - Direction (one of `inbound`, `outbound`) - `last_sms_text`: Last SMS text (text) - `last_sms_user`: Last SMS - User (`user` ID) - `last_task_created`: Last task - Date created (datetime) - `last_task_creator`: Last task - Created by (`user` ID) - `last_task_due`: Last task - Due date (datetime) - `last_task_text`: Last task - Text (text) - `last_task_updated`: Last task - Date updated (datetime) - `last_task_updated_by`: Last task - Updated by (`user` ID) - `last_updated_note_updated`: Last updated note - Date updated (datetime) - `last_voicemail_duration`: Last voicemail duration (integer) - `longest_call_duration`: Longest call duration (integer) - `longest_recording_duration`: Longest recording duration (integer) - `longest_voicemail_duration`: Longest voicemail duration (integer) - `max_annual_active_opportunity_value`: Opportunity value - largest annual active (number) - `max_annual_lost_opportunity_value`: Opportunity value - largest annual lost (number) - `max_annual_opportunity_value`: Opportunity value - largest annual (number) - `max_annual_won_opportunity_value`: Opportunity value - largest annual won (number) - `max_annualized_active_opportunity_value`: Opportunity value - largest annualized active (number) - `max_annualized_lost_opportunity_value`: Opportunity value - largest annualized lost (number) - `max_annualized_opportunity_value`: Opportunity value - largest annualized (number) - `max_annualized_won_opportunity_value`: Opportunity value - largest annualized won (number) - `max_monthly_active_opportunity_value`: Opportunity value - largest monthly active (number) - `max_monthly_lost_opportunity_value`: Opportunity value - largest monthly lost (number) - `max_monthly_opportunity_value`: Opportunity value - largest monthly (number) - `max_monthly_won_opportunity_value`: Opportunity value - largest monthly won (number) - `max_one_time_active_opportunity_value`: Opportunity value - largest one time active (number) - `max_one_time_lost_opportunity_value`: Opportunity value - largest one time lost (number) - `max_one_time_opportunity_value`: Opportunity value - largest one time (number) - `max_one_time_won_opportunity_value`: Opportunity value - largest one time won (number) - `max_opportunity_annualized_annualized_value`: Maximum opportunity annualized value (number) - `max_opportunity_confidence_confidence`: Maximum opportunity confidence (integer) - `max_timezone_offset`: integer - `meetings_duration`: Total meetings duration (integer) - `min_annual_active_opportunity_value`: Opportunity value - smallest annual active (number) - `min_annual_lost_opportunity_value`: Opportunity value - smallest annual lost (number) - `min_annual_opportunity_value`: Opportunity value - smallest annual (number) - `min_annual_won_opportunity_value`: Opportunity value - smallest annual won (number) - `min_annualized_active_opportunity_value`: Opportunity value - smallest annualized active (number) - `min_annualized_lost_opportunity_value`: Opportunity value - smallest annualized lost (number) - `min_annualized_opportunity_value`: Opportunity value - smallest annualized (number) - `min_annualized_won_opportunity_value`: Opportunity value - smallest annualized won (number) - `min_monthly_active_opportunity_value`: Opportunity value - smallest monthly active (number) - `min_monthly_lost_opportunity_value`: Opportunity value - smallest monthly lost (number) - `min_monthly_opportunity_value`: Opportunity value - smallest monthly (number) - `min_monthly_won_opportunity_value`: Opportunity value - smallest monthly won (number) - `min_one_time_active_opportunity_value`: Opportunity value - smallest one time active (number) - `min_one_time_lost_opportunity_value`: Opportunity value - smallest one time lost (number) - `min_one_time_opportunity_value`: Opportunity value - smallest one time (number) - `min_one_time_won_opportunity_value`: Opportunity value - smallest one time won (number) - `min_opportunity_confidence_confidence`: Minimum opportunity confidence (integer) - `min_timezone_offset`: integer - `name`: Name (text) - `next_due`: Next task due date (datetime) - `next_task_date`: Next task date (datetime) - `next_task_due_date`: Next task due date (datetime) - `next_task_text`: Next task text (text) - `next_task_user_id`: Next task user (`user` ID) - `next_upcoming_meeting_duration`: Next upcoming meeting - Duration (integer) - `next_upcoming_meeting_ends_at`: Next upcoming meeting ends at (datetime) - `next_upcoming_meeting_is_recurring`: Next upcoming meeting - Is recurring (boolean) - `next_upcoming_meeting_location`: Next upcoming meeting - Location (text) - `next_upcoming_meeting_note`: Next upcoming meeting - Event notes (text) - `next_upcoming_meeting_num_participants`: Next upcoming meeting - Number of participants (integer) - `next_upcoming_meeting_source`: Next upcoming meeting - Source (one of `calendar`, `manual`) - `next_upcoming_meeting_starts_at`: Next upcoming meeting (datetime) - `next_upcoming_meeting_status`: Next upcoming meeting - Status (one of `upcoming`, `in-progress`, `completed`, `canceled`, `declined-by-org`, `declined-by-lead`) - `next_upcoming_meeting_title`: Next upcoming meeting - Title (text) - `next_upcoming_meeting_users`: Next upcoming meeting - User (`user` ID) - `num_active_opportunities`: Number of active opportunities (integer) - `num_activities`: Total number of activities (integer) - `num_annual_opportunities`: Opportunities - Annual (integer) - `num_calls`: Total number of calls (integer) - `num_canceled_meetings`: Number of canceled meetings (integer) - `num_completed_meetings`: Number of completed meetings (integer) - `num_completed_tasks`: Number of completed tasks (integer) - `num_contact_urls`: # Contact URLs (integer) - `num_contacts`: Total number of contacts (integer) - `num_declined_by_lead_meetings`: Meetings - Declined By Lead (integer) - `num_declined_by_org_meetings`: Meetings - Declined By Org (integer) - `num_declined_meetings`: Number of declined meetings (integer) - `num_draft_emails`: Number of draft emails (integer) - `num_draft_sms`: Number of draft SMS (integer) - `num_email_addresses`: Total number of email addresses (integer) - `num_email_attachments`: # Email attachments (integer) - `num_email_opens`: Total number of email opens (integer) - `num_emails`: Total number of emails (integer) - `num_error_emails`: Number of emails that errored (integer) - `num_error_sms`: Number of SMS that errored (integer) - `num_in_progress_meetings`: Number of in-progress meetings (integer) - `num_incoming_calls`: Number of incoming calls (integer) - `num_incomplete_tasks`: Number of incomplete tasks (integer) - `num_lost_opportunities`: Number of lost opportunities (integer) - `num_meetings`: Total number of meetings (integer) - `num_missed_calls`: Number of missed calls (integer) - `num_monthly_opportunities`: Opportunities - Monthly (integer) - `num_notes`: Total number of notes (integer) - `num_one_time_opportunities`: Opportunities - One-Time (integer) - `num_opportunities`: Total number of opportunities (integer) - `num_outbox_emails`: Number of emails in outbox (integer) - `num_outbox_sms`: Number of SMS in outbox (integer) - `num_outgoing_calls`: Number of outgoing calls (integer) - `num_outgoing_emails`: # Outgoing emails (integer) - `num_phone_numbers`: Total number of phone numbers (integer) - `num_received_emails`: Number of received emails (integer) - `num_received_sms`: Number of received SMS (integer) - `num_scheduled_emails`: Number of scheduled emails (integer) - `num_scheduled_sms`: Number of scheduled SMS (integer) - `num_sent_emails`: Number of sent emails (integer) - `num_sent_sms`: Number of sent SMS (integer) - `num_sms`: Total number of SMS (integer) - `num_tasks`: Total number of tasks (integer) - `num_upcoming_meetings`: Number of upcoming meetings (integer) - `num_won_opportunities`: Number of won opportunities (integer) - `original_lead_status`: Initial lead status (`status.lead` ID) - `outbound_sms_count`: Outbound SMS count (integer) - `pipeline_id`: Current status (`pipeline` ID) - `primary_contact_name`: Primary contact name (text) - `primary_email`: Primary email (email address) - `primary_opportunity_confidence`: Primary opportunity confidence (integer) - `primary_opportunity_created`: Primary opportunity created (datetime) - `primary_opportunity_date_won`: Primary opportunity date won (date) - `primary_opportunity_period`: Primary opportunity period (one of `one_time`, `monthly`, `annual`) - `primary_opportunity_status`: Primary opportunity status (`status.opportunity` ID) - `primary_opportunity_status_type`: Primary opportunity status type (one of `won`, `lost`, `active`) - `primary_opportunity_updated`: Primary opportunity updated (datetime) - `primary_opportunity_user_id`: Primary opportunity assigned to (`user` ID) - `primary_opportunity_value`: Primary opportunity value (number) - `shortest_call_duration`: Longest call duration (integer) - `shortest_voicemail_duration`: Shortest voicemail duration (integer) - `status_id`: Current status (`status.lead` ID) - `time_to_first_call`: Time to first call (integer) - `time_to_first_communication`: Time to first communication (integer) - `time_to_first_email`: Time to first email (integer) - `time_to_first_incoming_call`: Time to first incoming call (integer) - `time_to_first_incoming_communication`: Time to first incoming communication (integer) - `time_to_first_incoming_email`: Time to first incoming email (integer) - `time_to_first_incoming_sms`: Time to first incoming SMS (integer) - `time_to_first_meeting`: Time to first meeting (integer) - `time_to_first_outgoing_call`: Time to first outgoing call (integer) - `time_to_first_outgoing_communication`: Time to first outgoing communication (integer) - `time_to_first_outgoing_email`: Time to first outgoing email (integer) - `time_to_first_outgoing_sms`: Time to first outgoing SMS (integer) - `time_to_first_sms`: Time to first SMS (integer) - `times_communicated`: Total number of times communicated (integer) - `times_communicated_outgoing`: integer - `timezone_offset`: Timezone offset (integer) - `total_annual_active_opportunity_value`: Opportunity value - annual active (number) - `total_annual_lost_opportunity_value`: Opportunity value - annual lost (number) - `total_annual_opportunity_value`: Opportunity value - annual (number) - `total_annual_won_opportunity_value`: Opportunity value - annual won (number) - `total_annualized_active_opportunity_value`: Opportunity value - annualized active (number) - `total_annualized_lost_opportunity_value`: Opportunity value - annualized lost (number) - `total_annualized_opportunity_value`: Opportunity value - annualized (number) - `total_annualized_won_opportunity_value`: Opportunity value - annualized won (number) - `total_call_duration`: Total call duration (integer) - `total_monthly_active_opportunity_value`: Opportunity value - monthly active (number) - `total_monthly_lost_opportunity_value`: Opportunity value - monthly lost (number) - `total_monthly_opportunity_value`: Opportunity value - monthly (number) - `total_monthly_won_opportunity_value`: Opportunity value - monthly won (number) - `total_one_time_active_opportunity_value`: Opportunity value - one time active (number) - `total_one_time_lost_opportunity_value`: Opportunity value - one time lost (number) - `total_one_time_opportunity_value`: Opportunity value - one time (number) - `total_one_time_won_opportunity_value`: Opportunity value - one time won (number) - `upcoming_meetings_duration`: Upcoming meetings duration (integer) - `updated_by`: Last updated by (`user` ID) - `updated_by_agent_id`: Last updated by agent (`agent_config` ID) - `updated_by_any_agent`: `any_agent` ID - `updated_by_user_or_any_agent`: Last updated by (`user_or_any_agent` ID) - `url`: URL (URL) - `urls_count`: Lead URL (integer)
            - `object_type` 'lead', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - LeadFileSearchField: A built-in field of `lead_file` objects.
            - `field_name` 'content_type' | 'created_by' | 'date_created' | 'date_updated' | 'is_pinned' | 'last_activity_at' | 'lead_id' | 'name' | 'size' | 'updated_by', required: Built-in fields of `lead_file` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `content_type`: Content Type (content type) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_pinned`: Is Pinned (boolean) - `last_activity_at`: Last Activity At (datetime) - `lead_id`: Lead (`lead` ID) - `name`: Name (text) - `size`: Size (integer) - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'lead_file', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - LeadSummarySearchField: A built-in field of `lead_summary` objects.
            - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'lead_id' | 'status' | 'summary_type' | 'text' | 'updated_by', required: Built-in fields of `lead_summary` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `status`: Status (fixed value) - `summary_type`: Summary Type (fixed value) - `text`: text - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'lead_summary', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - OpportunitySearchField: A built-in field of `opportunity` objects.
            - `field_name` 'annualized_expected_value' | 'annualized_value' | 'confidence' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date_created' | 'date_lost' | 'date_updated' | 'date_won' | 'expected_value' | 'is_stalled' | 'lead_id' | 'note' | 'original_opportunity_status' | 'pipeline_id' | 'status_id' | 'status_type' | 'updated_by' | 'updated_by_agent_id' | 'updated_by_any_agent' | 'updated_by_user_or_any_agent' | 'user_id' | 'users' | 'value' | 'value_currency' | 'value_period', required: Built-in fields of `opportunity` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `annualized_expected_value`: Annualized expected value (number) - `annualized_value`: Value, annualized (number) - `confidence`: Confidence (integer) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date_created`: Date created (datetime) - `date_lost`: Date lost (datetime) - `date_updated`: Date last updated (datetime) - `date_won`: Close date (date) - `expected_value`: Expected value (number) - `is_stalled`: Needs attention (boolean) - `lead_id`: Lead (`lead` ID) - `note`: Note (text) - `original_opportunity_status`: Initial status (`status.opportunity` ID) - `pipeline_id`: Pipeline (`pipeline` ID) - `status_id`: Current status (`status.opportunity` ID) - `status_type`: Status type (one of `won`, `lost`, `active`) - `updated_by`: Last updated by (`user` ID) - `updated_by_agent_id`: Last updated by agent (`agent_config` ID) - `updated_by_any_agent`: `any_agent` ID - `updated_by_user_or_any_agent`: Last updated by (`user_or_any_agent` ID) - `user_id`: Assigned to (`user` ID) - `users`: `user` ID - `value`: Value (number) - `value_currency`: Value currency (fixed value) - `value_period`: Period (one of `one_time`, `monthly`, `annual`)
            - `object_type` 'opportunity', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - SavedSearchSearchField: A built-in field of `saved_search` objects.
            - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'is_shared' | 'name' | 'updated_by' | 'user_id', required: Built-in fields of `saved_search` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_shared`: Shared (boolean) - `name`: Name (text) - `updated_by`: Last updated by (`user` ID) - `user_id`: Owner (`user` ID)
            - `object_type` 'saved_search', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - SequenceSubscriptionSearchField: A built-in field of `sequence_subscription` objects.
            - `field_name` 'calls_assigned_to' | 'contact_id' | 'created_by' | 'date_created' | 'date_paused' | 'date_updated' | 'initial_email_id' | 'last_completed_step' | 'last_processed_step' | 'lead_id' | 'owner_id' | 'run_once' | 'sender_account_id' | 'sequence_id' | 'start_date' | 'status' | 'status_reason' | 'step_last_processed_at' | 'steps_completed' | 'time_to_goal' | 'updated_by', required: Built-in fields of `sequence_subscription` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `calls_assigned_to`: Calls assigned to (`user_or_group` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_paused`: Date paused (datetime) - `date_updated`: Date last updated (datetime) - `initial_email_id`: Initial email (`activity.email` ID) - `last_completed_step`: Last completed step (`sequence_step` ID) - `last_processed_step`: Last processed step (`sequence_step` ID) - `lead_id`: Lead (`lead` ID) - `owner_id`: Owner (`user` ID) - `run_once`: Run once (boolean) - `sender_account_id`: Sender account (`connected_account` ID) - `sequence_id`: Workflow (`sequence` ID) - `start_date`: Start date (datetime) - `status`: Status (one of `active`, `paused`, `finished`, `goal`, `error`) - `status_reason`: Status reason (one of `manual`, `pending-call-timed-out`, `bulk-action`, `rate-limited`, `sequence-deleted`, `workflow-paused`, `filter-not-matched`, `insufficient-ai-credit-balance`, `plan-not-supported`, `reply-received`, `call-answered`, `meeting-booked`, `lead-status-changed`, `outcome-met`, `account-invalid`, `account-failures`, `sending-throttled-too-long`, `membership-inactive`, `send-as-error`, `email-bounced`, `call-failed`, `sms-failed`, `no-user-phone`, `billing-error`, `assignment-field-invalid`, `lead-status-field-invalid`, `assignees-missing`, `run-as-disabled`, `lead-not-visible`, `internal-error`, `field-mapping-error`, `filter-config-invalid`, `email-ai-generation-failed`) - `step_last_processed_at`: Last processed step date (datetime) - `steps_completed`: Number of completed subscription steps (integer) - `time_to_goal`: Time to goal (integer) - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'sequence_subscription', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - SmsTemplateSearchField: A built-in field of `sms_template` objects.
            - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'is_shared' | 'name' | 'owned_by' | 'status' | 'updated_by', required: Built-in fields of `sms_template` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_shared`: Is Shared (boolean) - `name`: Name (text) - `owned_by`: Owned by (`user` ID) - `status`: Status (fixed value) - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'sms_template', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - StatusLeadSearchField: A built-in field of `status.lead` objects.
            - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'label' | 'updated_by', required: Built-in fields of `status.lead` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `label`: Status label (text) - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'status.lead', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - StatusOpportunitySearchField: A built-in field of `status.opportunity` objects.
            - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'label' | 'updated_by', required: Built-in fields of `status.opportunity` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `label`: Status label (text) - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'status.opportunity', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - SubscriptionHistorySearchField: A built-in field of `subscription_history` objects.
            - `field_name` 'created_by' | 'date_created' | 'date_sent' | 'date_updated' | 'email_id' | 'lead_id' | 'sequence_subscription_id' | 'status' | 'step_id' | 'step_type' | 'subject' | 'template_id' | 'updated_by', required: Built-in fields of `subscription_history` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_sent`: datetime - `date_updated`: Date last updated (datetime) - `email_id`: Email (`activity.email` ID) - `lead_id`: Lead (`lead` ID) - `sequence_subscription_id`: Subscription (`sequence_subscription` ID) - `status`: History Status (fixed value) - `step_id`: Workflow Step (`sequence_step` ID) - `step_type`: Step Type (fixed value) - `subject`: text - `template_id`: `email_template` ID - `updated_by`: Last updated by (`user` ID)
            - `object_type` 'subscription_history', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskAnsweredDetachedCallSearchField: A built-in field of `task.answered_detached_call` objects.
            - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.answered_detached_call` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
            - `object_type` 'task.answered_detached_call', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskDraftEmailSearchField: A built-in field of `task.draft_email` objects.
            - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'sequence_id' | 'sequence_subscription_history_id' | 'sequence_subscription_id' | 'step_id' | 'updated_by' | 'view', required: Built-in fields of `task.draft_email` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `sequence_id`: Workflow (`sequence` ID) - `sequence_subscription_history_id`: Workflow Run History (`subscription_history` ID) - `sequence_subscription_id`: Workflow Run (`sequence_subscription` ID) - `step_id`: Workflow Step (`sequence_step` ID) - `updated_by`: Last updated by (`user` ID) - `view`: Inbox view (one of `inbox`, `future`, `archive`)
            - `object_type` 'task.draft_email', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskDraftSmsSearchField: A built-in field of `task.draft_sms` objects.
            - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'sequence_id' | 'sequence_subscription_history_id' | 'sequence_subscription_id' | 'step_id' | 'updated_by' | 'view', required: Built-in fields of `task.draft_sms` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `sequence_id`: Workflow (`sequence` ID) - `sequence_subscription_history_id`: Workflow Run History (`subscription_history` ID) - `sequence_subscription_id`: Workflow Run (`sequence_subscription` ID) - `step_id`: Workflow Step (`sequence_step` ID) - `updated_by`: Last updated by (`user` ID) - `view`: Inbox view (one of `inbox`, `future`, `archive`)
            - `object_type` 'task.draft_sms', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskEmailFollowupSearchField: A built-in field of `task.email_followup` objects.
            - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'email_id' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.email_followup` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `email_id`: Email (`activity.email` ID) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
            - `object_type` 'task.email_followup', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskIncomingEmailSearchField: A built-in field of `task.incoming_email` objects.
            - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'emails' | 'is_answered' | 'is_autoreply' | 'is_bounce' | 'is_cc_or_bcc' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'is_scheduling_email' | 'is_transactional' | 'lead_id' | 'object_type' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.incoming_email` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `emails`: Email (`activity.email` ID) - `is_answered`: boolean - `is_autoreply`: email is an autoreply (boolean) - `is_bounce`: email is a bounce notification (boolean) - `is_cc_or_bcc`: boolean - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `is_scheduling_email`: email is likely coordinating event scheduling (boolean) - `is_transactional`: email is likely transactional (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
            - `object_type` 'task.incoming_email', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskIncomingSmsSearchField: A built-in field of `task.incoming_sms` objects.
            - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_answered' | 'is_complete' | 'is_new' | 'is_opt_out' | 'is_primary_lead_notification' | 'lead_id' | 'local_phone' | 'object_type' | 'remote_phone' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.incoming_sms` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_answered`: boolean - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_opt_out`: boolean - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `local_phone`: Local phone (phone number) - `object_type`: Type of referenced object (fixed value) - `remote_phone`: Remote phone (phone number) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
            - `object_type` 'task.incoming_sms', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskIncomingWhatsappMessageSearchField: A built-in field of `task.incoming_whatsapp_message` objects.
            - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'local_phone' | 'object_type' | 'remote_phone' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.incoming_whatsapp_message` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: `user` ID - `contact_id`: `contact` ID - `created_by`: `user` ID - `date`: datetime - `date_created`: datetime - `date_updated`: datetime - `is_complete`: boolean - `is_new`: boolean - `is_primary_lead_notification`: boolean - `lead_id`: `lead` ID - `local_phone`: phone number - `object_type`: fixed value - `remote_phone`: phone number - `updated_by`: `user` ID - `user_id`: `user` ID - `users`: `user` ID - `view`: one of `inbox`, `future`, `archive`
            - `object_type` 'task.incoming_whatsapp_message', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskLeadSearchField: A built-in field of `task.lead` objects.
            - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date' | 'date_created' | 'date_updated' | 'due_date' | 'is_complete' | 'is_dateless' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'priority' | 'text' | 'updated_by' | 'updated_by_agent_id' | 'updated_by_any_agent' | 'updated_by_user_or_any_agent' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.lead` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `due_date`: Date due (datetime) - `is_complete`: Complete (boolean) - `is_dateless`: Has a date (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `priority`: Priority (one of `high`, `medium`) - `text`: Task description (text) - `updated_by`: Last updated by (`user` ID) - `updated_by_agent_id`: Last updated by agent (`agent_config` ID) - `updated_by_any_agent`: `any_agent` ID - `updated_by_user_or_any_agent`: Last updated by (`user_or_any_agent` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
            - `object_type` 'task.lead', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskLeadSuggestionIncomingEmailSearchField: A built-in field of `task.lead_suggestion_incoming_email` objects.
            - `field_name` 'assigned_to' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'updated_by' | 'user_id' | 'view', required: Built-in fields of `task.lead_suggestion_incoming_email` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: `user` ID - `created_by`: `user` ID - `date`: datetime - `date_created`: datetime - `date_updated`: datetime - `is_complete`: boolean - `is_new`: boolean - `is_primary_lead_notification`: boolean - `lead_id`: `lead` ID - `object_type`: fixed value - `updated_by`: `user` ID - `user_id`: `user` ID - `view`: one of `inbox`, `future`, `archive`
            - `object_type` 'task.lead_suggestion_incoming_email', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskMissedCallSearchField: A built-in field of `task.missed_call` objects.
            - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'local_phone' | 'object_type' | 'phone' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.missed_call` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `local_phone`: Local phone (phone number) - `object_type`: Type of referenced object (fixed value) - `phone`: Phone (phone number) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
            - `object_type` 'task.missed_call', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskOpportunitiesAwaitingActionSearchField: A built-in field of `task.opportunities_awaiting_action` objects.
            - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'opportunity_id' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.opportunities_awaiting_action` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `opportunity_id`: Opportunity (`opportunity` ID) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
            - `object_type` 'task.opportunities_awaiting_action', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskOpportunityDueSearchField: A built-in field of `task.opportunity_due` objects.
            - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_datetime' | 'is_deleted' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'membership' | 'object_type' | 'opportunity_note' | 'opportunity_value' | 'opportunity_value_period' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.opportunity_due` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_datetime`: boolean - `is_deleted`: boolean - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `membership`: `membership` ID - `object_type`: Type of referenced object (fixed value) - `opportunity_note`: text - `opportunity_value`: integer - `opportunity_value_period`: one of `one_time`, `monthly`, `annual` - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
            - `object_type` 'task.opportunity_due', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskOutboundCallSearchField: A built-in field of `task.outbound_call` objects.
            - `field_name` 'agent_config_id' | 'any_agent' | 'assigned_to' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'priority' | 'sequence_id' | 'step_id' | 'text' | 'updated_by' | 'user_or_agent' | 'user_or_any_agent' | 'view', required: Built-in fields of `task.outbound_call` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `agent_config_id`: Agent Config (`agent_config` ID) - `any_agent`: `any_agent` ID - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `priority`: Priority (one of `high`, `medium`) - `sequence_id`: Workflow (`sequence` ID) - `step_id`: Workflow Step (`sequence_step` ID) - `text`: Task description (text) - `updated_by`: Last updated by (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: Assigned User or Agent (`user_or_any_agent` ID) - `view`: Inbox view (one of `inbox`, `future`, `archive`)
            - `object_type` 'task.outbound_call', required: The object type the field belongs to.
            - `type` 'regular_field', required
          - TaskVoicemailSearchField: A built-in field of `task.voicemail` objects.
            - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.voicemail` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
            - `object_type` 'task.voicemail', required: The object type the field belongs to.
            - `type` 'regular_field', required
        - CustomSearchField: A custom field, referenced by its ID. Works for Lead, Contact, Opportunity, Activity and Custom Object custom fields as well as shared custom fields.
          - `custom_field_id` string, required: ID of the custom field, e.g. `cf_abc123`.
          - `type` 'custom_field', required
        - FormFieldSearchField: A field of a form submission, referenced by its ID.
          - `form_field_id` string, required: ID of the form field.
          - `type` 'form_field', required
      - `negate` boolean: Match objects that do NOT match this query instead.
      - `type` 'field_condition', required
    - HasRelatedQuery: Matches objects with at least one related object matching a query. Use it to filter by fields of other objects, e.g. Leads with a Contact who has a title, Contacts whose Lead is in a status, or Leads with a call in the last week.
      - `negate` boolean: Match objects that do NOT match this query instead.
      - `related_object_type` 'activity.call' | 'activity.created' | 'activity.custom_activity' | 'activity.email' | 'activity.email_thread' | 'activity.form_submission' | 'activity.import_update' | 'activity.lead_merge' | 'activity.lead_status_change' | 'activity.meeting' | 'activity.note' | 'activity.opportunity_status_change' | 'activity.sms' | 'activity.task_completed' | 'activity.whatsapp_message' | 'contact' | 'custom_fields.contact' | 'custom_fields.lead' | 'custom_fields.opportunity' | 'email_template' | 'sms_template' | 'lead' | 'opportunity' | 'saved_search' | 'status.lead' | 'status.opportunity' | 'task.answered_detached_call' | 'task.email_followup' | 'task.incoming_email' | 'task.lead_suggestion_incoming_email' | 'task.incoming_sms' | 'task.incoming_whatsapp_message' | 'task.lead' | 'task.outbound_call' | 'task.draft_email' | 'task.draft_sms' | 'task.missed_call' | 'task.opportunity_due' | 'task.opportunities_awaiting_action' | 'task.voicemail' | 'sequence_subscription' | 'subscription_history' | 'custom_object' | 'lead_file' | 'comment_thread' | 'comment' | 'lead_summary' | 'agent_call_grade' | 'address' | 'contact_email' | 'contact_phone' | 'contact_url', required: Type of a searchable object. - `lead`, `contact`, `opportunity`: Leads, Contacts and Opportunities. - `address`, `contact_email`, `contact_phone`, `contact_url`: a Lead's addresses and a Contact's email addresses, phone numbers and URLs. They're not searchable on their own, only as the `object_type` of a field or the `related_object_type` of a `has_related` query. - `activity.*`: Activities, e.g. `activity.call`, `activity.email`, `activity.meeting`, `activity.note`. - `task.*`: Tasks, e.g. `task.lead` for regular tasks or `task.outbound_call` for call tasks. - `sequence_subscription`: Workflow subscriptions of Contacts. - `custom_object`, `lead_file`, `comment_thread`, `comment`: Custom Objects, files, comment threads and comments. - Other types describe configuration, e.g. `status.lead` or `custom_fields.lead`.
      - `related_query` SearchQuery (recursive)
      - `this_object_type` 'activity.call' | 'activity.created' | 'activity.custom_activity' | 'activity.email' | 'activity.email_thread' | 'activity.form_submission' | 'activity.import_update' | 'activity.lead_merge' | 'activity.lead_status_change' | 'activity.meeting' | 'activity.note' | 'activity.opportunity_status_change' | 'activity.sms' | 'activity.task_completed' | 'activity.whatsapp_message' | 'contact' | 'custom_fields.contact' | 'custom_fields.lead' | 'custom_fields.opportunity' | 'email_template' | 'sms_template' | 'lead' | 'opportunity' | 'saved_search' | 'status.lead' | 'status.opportunity' | 'task.answered_detached_call' | 'task.email_followup' | 'task.incoming_email' | 'task.lead_suggestion_incoming_email' | 'task.incoming_sms' | 'task.incoming_whatsapp_message' | 'task.lead' | 'task.outbound_call' | 'task.draft_email' | 'task.draft_sms' | 'task.missed_call' | 'task.opportunity_due' | 'task.opportunities_awaiting_action' | 'task.voicemail' | 'sequence_subscription' | 'subscription_history' | 'custom_object' | 'lead_file' | 'comment_thread' | 'comment' | 'lead_summary' | 'agent_call_grade' | 'address' | 'contact_email' | 'contact_phone' | 'contact_url', required: Type of a searchable object. - `lead`, `contact`, `opportunity`: Leads, Contacts and Opportunities. - `address`, `contact_email`, `contact_phone`, `contact_url`: a Lead's addresses and a Contact's email addresses, phone numbers and URLs. They're not searchable on their own, only as the `object_type` of a field or the `related_object_type` of a `has_related` query. - `activity.*`: Activities, e.g. `activity.call`, `activity.email`, `activity.meeting`, `activity.note`. - `task.*`: Tasks, e.g. `task.lead` for regular tasks or `task.outbound_call` for call tasks. - `sequence_subscription`: Workflow subscriptions of Contacts. - `custom_object`, `lead_file`, `comment_thread`, `comment`: Custom Objects, files, comment threads and comments. - Other types describe configuration, e.g. `status.lead` or `custom_fields.lead`.
      - `type` 'has_related', required
    - TextQuery: Matches objects containing the given text in any of their text fields. This works like the search bar in Close.
      - `mode` 'full_words' | 'phrase' | 'beginning_of_words' | 'exact_value', required: How to match text.
      - `negate` boolean: Match objects that do NOT match this query instead.
      - `type` 'text', required
      - `value` string, required: The text to look for.
    - IdQuery: Matches a single object by its ID.
      - `negate` boolean: Match objects that do NOT match this query instead.
      - `type` 'id', required
      - `value` string, required: The object ID, e.g. `lead_abc123`.
    - MatchAllQuery: Matches every object. When negated, matches nothing.
      - `negate` boolean: Match objects that do NOT match this query instead.
      - `type` 'match_all', required
    - SavedSearchQuery: Matches objects matching a Smart View's query.
      - `negate` boolean: Match objects that do NOT match this query instead.
      - `saved_search_id` string, required: ID of the Smart View, e.g. `save_abc123`.
      - `type` 'saved_search', required
    - AnyOfSavedSearchQuery: Matches objects matching at least one of the given Smart Views.
      - `negate` boolean: Match objects that do NOT match this query instead.
      - `saved_search_ids` string[], required: IDs of the Smart Views. At most 10.
      - `type` 'any_of_saved_search', required
    - InStatusQuery: Matches Leads or Opportunities that were in any of the given statuses. Without a period, matches objects that were ever in the statuses.
      - `before` union: A point in time, evaluated when the search runs.
        - NowMoment: The current time.
          - `type` 'now', required
        - FixedUTCMoment: A specific point in time in UTC.
          - `type` 'fixed_utc', required
          - `value` string, date-time, required: ISO 8601 datetime, e.g. `2024-01-31T14:00:00Z`. A value without a timezone is treated as UTC. Other timezones are rejected.
        - FixedLocalMoment: A specific date and time in the request's timezone.
          - `type` 'fixed_local', required
          - `value` string, date-time, required: ISO 8601 datetime without a timezone, e.g. `2024-01-31T14:00:00`.
        - FixedLocalDateMoment: The start or end of a specific day in the request's timezone.
          - `type` 'fixed_local_date', required
          - `value` string, date, required: ISO 8601 date, e.g. `2024-01-31`.
          - `which` 'start' | 'end', required: The start or the end of a period.
        - StartEndOfPeriodMoment: The start or end of the calendar period containing another moment. For example, the start of the current week.
          - `moment` Moment (recursive)
          - `period` 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year', required: A calendar period. Weeks start on the user's week start day.
          - `type` 'start_end_of_period', required
          - `which` 'start' | 'end', required: The start or the end of a period.
        - StartEndOfPredefinedRelativePeriodMoment: The start or end of a predefined relative range like `last-week`.
          - `range` 'yesterday' | 'last-week' | 'last-month' | 'last-quarter' | 'last-year' | 'today' | 'this-week' | 'this-month' | 'this-quarter' | 'this-year' | 'tomorrow' | 'next-week' | 'next-month' | 'next-quarter' | 'next-year' | 'closest-monday' | 'closest-tuesday' | 'closest-wednesday' | 'closest-thursday' | 'closest-friday' | 'closest-saturday' | 'closest-sunday' | 'all-time', required: Relative datetime range options, in the user's timezone.
          - `type` 'start_end_of_predefined_relative_period', required
          - `which` 'start' | 'end', required: The start or the end of a period.
        - OffsetMoment: A moment shifted into the past or future by a duration. For example, 30 days ago is `{"type": "offset", "offset": {"days": 30}, "direction": "past"}`.
          - `direction` 'future' | 'past', required: Direction in time, into the past or the future.
          - `moment` Moment (recursive)
          - `offset` Duration, required: A calendar-aware duration. All given parts are added together.
            - `days` integer
            - `hours` integer
            - `minutes` integer
            - `months` integer
            - `seconds` integer
            - `weeks` integer
            - `years` integer
          - `type` 'offset', required
          - `which_day_end` 'start' | 'end': The start or the end of a period.
      - `negate` boolean: Match objects that do NOT match this query instead.
      - `on_or_after` union: A point in time, evaluated when the search runs.
        - NowMoment: The current time.
          - `type` 'now', required
        - FixedUTCMoment: A specific point in time in UTC.
          - `type` 'fixed_utc', required
          - `value` string, date-time, required: ISO 8601 datetime, e.g. `2024-01-31T14:00:00Z`. A value without a timezone is treated as UTC. Other timezones are rejected.
        - FixedLocalMoment: A specific date and time in the request's timezone.
          - `type` 'fixed_local', required
          - `value` string, date-time, required: ISO 8601 datetime without a timezone, e.g. `2024-01-31T14:00:00`.
        - FixedLocalDateMoment: The start or end of a specific day in the request's timezone.
          - `type` 'fixed_local_date', required
          - `value` string, date, required: ISO 8601 date, e.g. `2024-01-31`.
          - `which` 'start' | 'end', required: The start or the end of a period.
        - StartEndOfPeriodMoment: The start or end of the calendar period containing another moment. For example, the start of the current week.
          - `moment` Moment (recursive)
          - `period` 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year', required: A calendar period. Weeks start on the user's week start day.
          - `type` 'start_end_of_period', required
          - `which` 'start' | 'end', required: The start or the end of a period.
        - StartEndOfPredefinedRelativePeriodMoment: The start or end of a predefined relative range like `last-week`.
          - `range` 'yesterday' | 'last-week' | 'last-month' | 'last-quarter' | 'last-year' | 'today' | 'this-week' | 'this-month' | 'this-quarter' | 'this-year' | 'tomorrow' | 'next-week' | 'next-month' | 'next-quarter' | 'next-year' | 'closest-monday' | 'closest-tuesday' | 'closest-wednesday' | 'closest-thursday' | 'closest-friday' | 'closest-saturday' | 'closest-sunday' | 'all-time', required: Relative datetime range options, in the user's timezone.
          - `type` 'start_end_of_predefined_relative_period', required
          - `which` 'start' | 'end', required: The start or the end of a period.
        - OffsetMoment: A moment shifted into the past or future by a duration. For example, 30 days ago is `{"type": "offset", "offset": {"days": 30}, "direction": "past"}`.
          - `direction` 'future' | 'past', required: Direction in time, into the past or the future.
          - `moment` Moment (recursive)
          - `offset` Duration, required: A calendar-aware duration. All given parts are added together.
            - `days` integer
            - `hours` integer
            - `minutes` integer
            - `months` integer
            - `seconds` integer
            - `weeks` integer
            - `years` integer
          - `type` 'offset', required
          - `which_day_end` 'start' | 'end': The start or the end of a period.
      - `status_ids` string[], required: IDs of Lead or Opportunity statuses.
      - `type` 'in_status', required
  - `results_limit` integer, nullable: Maximum number of results across all pages, e.g. to act only on the first 100 matches. Use `0` with `include_counts` to only count matches.
  - `sort` SearchSort[]: Fields to sort results by. When paginating, sort by a field that rarely changes, like `date_created`, so no results are skipped.
    - `direction` 'asc' | 'desc', required: Items can be ordered either ascending (smallest value first) or descending (largest value first).
    - `field` union, required: A field to filter or sort by.
      - union
        - ActivityCallSearchField: A built-in field of `activity.call` objects.
          - `field_name` 'activity_at' | 'agent_config_id' | 'any_agent' | 'call_agent_grade_funnel_stage' | 'call_agent_grade_performance_summary' | 'call_agent_grade_sentiment_score' | 'call_method' | 'called_by' | 'called_to' | 'comm_type' | 'contact_id' | 'conversation_type_id' | 'conversation_type_reason' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date' | 'date_created' | 'date_updated' | 'dialer_id' | 'dialer_saved_search_id' | 'direction' | 'disposition' | 'duration' | 'has_any_tool_error' | 'has_note' | 'has_recording' | 'has_voicemail' | 'incoming_call_date' | 'is_actual' | 'is_missed' | 'is_to_group_number' | 'lead_id' | 'local_phone' | 'mentions' | 'note' | 'outcome_id' | 'outgoing_call_date' | 'phone' | 'playbook_id' | 'playbook_reason' | 'recording_duration' | 'recording_expires_at' | 'recording_summary' | 'recording_transcript' | 'remote_phone' | 'sequence_id' | 'sequence_subscription_id' | 'skill_use_names' | 'source' | 'status' | 'talk_time' | 'transferred' | 'transferred_from' | 'transferred_from_user' | 'transferred_to' | 'transferred_to_user' | 'updated_by' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'user_talk_time' | 'user_talk_time_ratio' | 'users' | 'voicemail_duration' | 'voicemail_transcript', required: Built-in fields of `activity.call` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `agent_config_id`: Agent Config (`agent_config` ID) - `any_agent`: `any_agent` ID - `call_agent_grade_funnel_stage`: Funnel Stage (one of `no_connection`, `human_reached`, `prospect_engaged`, `objective_met`) - `call_agent_grade_performance_summary`: text - `call_agent_grade_sentiment_score`: Sentiment Score (integer) - `call_method`: Method (fixed value) - `called_by`: Called by (`user` ID) - `called_to`: Called (`user` ID) - `comm_type`: Communication type (one of `call`, `outgoing_call`, `incoming_answered_call`, `missed_call`, `received_voicemail`, `received_email`, `sent_email`, `received_sms`, `sent_sms`, `received_whatsapp_message`, `sent_whatsapp_message`) - `contact_id`: Contact (`contact` ID) - `conversation_type_id`: Playbook (`conversation_type` ID) - `conversation_type_reason`: Playbook set by (one of `user-selected`, `autodetected`) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date`: Date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `dialer_id`: Dialer ID (`dialer` ID) - `dialer_saved_search_id`: Dialed from Smart View (`saved_search` ID) - `direction`: Direction (one of `inbound`, `outbound`) - `disposition`: Disposition (one of `no-answer`, `answered`, `vm-answer`, `vm-left`, `busy`, `blocked`, `error`, `abandoned`) - `duration`: Duration (integer) - `has_any_tool_error`: Has any tool error (boolean) - `has_note`: Has a note (boolean) - `has_recording`: Was recorded (boolean) - `has_voicemail`: Is a voicemail (boolean) - `incoming_call_date`: Incoming call date (datetime) - `is_actual`: Not sent or received (boolean) - `is_missed`: Missed (boolean) - `is_to_group_number`: Group number was called (boolean) - `lead_id`: Lead (`lead` ID) - `local_phone`: Local phone (phone number) - `mentions`: Mentions in the note (`user_or_group` ID) - `note`: Note (text) - `outcome_id`: Outcome (`outcome` ID) - `outgoing_call_date`: Outgoing call date (datetime) - `phone`: Phone number (phone number) - `playbook_id`: Playbook (`conversation_type` ID) - `playbook_reason`: Playbook set by (one of `user-selected`, `autodetected`) - `recording_duration`: Recording (integer) - `recording_expires_at`: Recording Expires At (datetime) - `recording_summary`: Recording Summary (text) - `recording_transcript`: Recording Transcript (text) - `remote_phone`: Remote phone (phone number) - `sequence_id`: Workflow used (`sequence` ID) - `sequence_subscription_id`: Called with a sequence subscription (`sequence_subscription` ID) - `skill_use_names`: Skill used (one of `schedule_callback`, `create_task`, `send_scheduling_link`, `book_meeting`, `send_handoff_alert`, `search_knowledge_base`, `transfer_call`, `press_keypad`) - `source`: Source (one of `close.io`, `external`) - `status`: Status (one of `created`, `in-progress`, `completed`, `cancel`, `no-answer`, `busy`, `failed`, `timeout`) - `talk_time`: Total Recording Talk Time (integer) - `transferred`: Transferred (boolean) - `transferred_from`: Transferred from (`activity.call` ID) - `transferred_from_user`: Transferred from (`user` ID) - `transferred_to`: Transferred to (`activity.call` ID) - `transferred_to_user`: Transferred to (`user` ID) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `user_talk_time`: Total User Talk Time (integer) - `user_talk_time_ratio`: User Talk Time Percent (number) - `users`: User (`user` ID) - `voicemail_duration`: Voicemail duration (integer) - `voicemail_transcript`: Voicemail Transcript (text)
          - `object_type` 'activity.call', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityCreatedSearchField: A built-in field of `activity.created` objects.
          - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'date_created' | 'date_updated' | 'import_id' | 'lead_id' | 'source' | 'updated_by' | 'user_id' | 'users', required: Built-in fields of `activity.created` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `import_id`: Created by Import (`import` ID) - `lead_id`: Lead (`lead` ID) - `source`: Source (one of `ui`, `api`, `import`, `clipper`, `email`, `suggestion`, `segment-integration`, `customerio-integration`, `calendly-integration`, `ai`, `whatsapp`, `webform`) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `users`: User (`user` ID)
          - `object_type` 'activity.created', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityCustomActivitySearchField: A built-in field of `activity.custom_activity` objects.
          - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'custom_activity_type_id' | 'custom_activity_type_version' | 'date_created' | 'date_updated' | 'lead_id' | 'mentions' | 'pinned_at' | 'source' | 'status' | 'updated_by' | 'updated_by_agent_id' | 'updated_by_any_agent' | 'updated_by_user_or_any_agent' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'users', required: Built-in fields of `activity.custom_activity` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `custom_activity_type_id`: Custom Activity Type (`custom_activity_type` ID) - `custom_activity_type_version`: integer - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `mentions`: Mentions within any rich text fields (`user_or_group` ID) - `pinned_at`: Pinned at (datetime) - `source`: Source (one of `ui`, `api`, `import`, `clipper`, `email`, `suggestion`, `segment-integration`, `customerio-integration`, `calendly-integration`, `ai`, `whatsapp`, `webform`) - `status`: Status (one of `draft`, `published`) - `updated_by`: Last updated by (`user` ID) - `updated_by_agent_id`: Last updated by agent (`agent_config` ID) - `updated_by_any_agent`: `any_agent` ID - `updated_by_user_or_any_agent`: Last updated by (`user_or_any_agent` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `users`: User (`user` ID)
          - `object_type` 'activity.custom_activity', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityEmailSearchField: A built-in field of `activity.email` objects.
          - `field_name` 'activity_at' | 'agent_action_reason' | 'agent_config_id' | 'all_bcc' | 'all_cc' | 'all_to' | 'any_agent' | 'attachment_count' | 'attachment_name' | 'bcc' | 'body_text' | 'bulk_email_action_id' | 'cc' | 'comm_type' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date' | 'date_created' | 'date_emailed' | 'date_received' | 'date_scheduled' | 'date_sent' | 'date_updated' | 'direction' | 'emailed_by' | 'emailed_template_id' | 'envelope/is_autoreply' | 'first_date_open' | 'has_reply' | 'has_template' | 'in_reply_to_id' | 'is_actual' | 'is_bulk_email' | 'last_date_open' | 'lead_id' | 'open_dates' | 'opens_count' | 'recipient' | 'send_as_id' | 'sender' | 'sent' | 'sequence_id' | 'sequence_subscription_id' | 'status' | 'subject' | 'template_id' | 'thread_id' | 'to' | 'updated_by' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'users', required: Built-in fields of `activity.email` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `agent_action_reason`: one of `send_scheduling_link`, `custom_agent_decision`, `voice_agent_callback` - `agent_config_id`: Agent Config (`agent_config` ID) - `all_bcc`: BCC (text) - `all_cc`: CC (text) - `all_to`: To (text) - `any_agent`: `any_agent` ID - `attachment_count`: Number of attachments (integer) - `attachment_name`: Email attachment name (text) - `bcc`: BCC (text) - `body_text`: Body (text) - `bulk_email_action_id`: Bulk Email (`bulk_action.email` ID) - `cc`: CC (text) - `comm_type`: Communication type (one of `call`, `outgoing_call`, `incoming_answered_call`, `missed_call`, `received_voicemail`, `received_email`, `sent_email`, `received_sms`, `sent_sms`, `received_whatsapp_message`, `sent_whatsapp_message`) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date`: Date (datetime) - `date_created`: Date created (datetime) - `date_emailed`: Emailed date (datetime) - `date_received`: Date received (datetime) - `date_scheduled`: Scheduled at (datetime) - `date_sent`: Date sent (datetime) - `date_updated`: Date last updated (datetime) - `direction`: Direction (one of `incoming`, `outgoing`) - `emailed_by`: Emailed by (text) - `emailed_template_id`: Email Template used (`email_template` ID) - `envelope/is_autoreply`: boolean - `first_date_open`: First open date (datetime) - `has_reply`: Has reply (boolean) - `has_template`: Sent with a template (boolean) - `in_reply_to_id`: In reply to (`activity.email` ID) - `is_actual`: Not sent or received (boolean) - `is_bulk_email`: Sent by bulk email (boolean) - `last_date_open`: Last open date (datetime) - `lead_id`: Lead (`lead` ID) - `open_dates`: Date opened (datetime) - `opens_count`: Number of opens (integer) - `recipient`: Recipient name or email address (text) - `send_as_id`: `user` ID - `sender`: Sender name or email address (text) - `sent`: Sent date (datetime) - `sequence_id`: Workflow used (`sequence` ID) - `sequence_subscription_id`: Sent with a sequence subscription (`sequence_subscription` ID) - `status`: Current state of the email (one of `inbox`, `draft`, `scheduled`, `outbox`, `sent`, `error`) - `subject`: Subject (text) - `template_id`: Email Template used (`email_template` ID) - `thread_id`: Thread (`activity.email_thread` ID) - `to`: To (text) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `users`: User (`user` ID)
          - `object_type` 'activity.email', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityEmailThreadSearchField: A built-in field of `activity.email_thread` objects.
          - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'date_created' | 'date_updated' | 'email_ids' | 'importance_reason' | 'is_important' | 'latest_normalized_subject' | 'lead_id' | 'n_emails' | 'updated_by' | 'user_id' | 'users', required: Built-in fields of `activity.email_thread` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `email_ids`: Emails (`activity.email` ID) - `importance_reason`: Importance Reason (fixed value) - `is_important`: Is Important (boolean) - `latest_normalized_subject`: Last normalized subject (text) - `lead_id`: Lead (`lead` ID) - `n_emails`: Number of emails (integer) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `users`: User (`user` ID)
          - `object_type` 'activity.email_thread', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityFormSubmissionSearchField: A built-in field of `activity.form_submission` objects.
          - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'date_created' | 'date_updated' | 'form_configuration_id' | 'form_id' | 'lead_id' | 'source_url' | 'source_url_normalized' | 'updated_by' | 'user_id', required: Built-in fields of `activity.form_submission` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `form_configuration_id`: `form_configuration` ID - `form_id`: Web Form (`form` ID) - `lead_id`: Lead (`lead` ID) - `source_url`: URL - `source_url_normalized`: Submission URL (URL) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID)
          - `object_type` 'activity.form_submission', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityImportUpdateSearchField: A built-in field of `activity.import_update` objects.
          - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'date_created' | 'date_updated' | 'import_id' | 'lead_id' | 'reverted' | 'updated_by' | 'user_id' | 'users', required: Built-in fields of `activity.import_update` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `import_id`: Updated by Import (`import` ID) - `lead_id`: Lead (`lead` ID) - `reverted`: Update was Reverted (boolean) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `users`: User (`user` ID)
          - `object_type` 'activity.import_update', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityLeadMergeSearchField: A built-in field of `activity.lead_merge` objects.
          - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'date_created' | 'date_updated' | 'destination_lead_id' | 'lead_id' | 'merge_status' | 'source_lead_id' | 'updated_by' | 'user_id' | 'users', required: Built-in fields of `activity.lead_merge` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `destination_lead_id`: Destination Lead ID (`lead` ID) - `lead_id`: Lead (`lead` ID) - `merge_status`: Merge Status (fixed value) - `source_lead_id`: Source Lead ID (`lead` ID) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `users`: User (`user` ID)
          - `object_type` 'activity.lead_merge', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityLeadStatusChangeSearchField: A built-in field of `activity.lead_status_change` objects.
          - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'date_created' | 'date_updated' | 'lead_id' | 'new_pipeline_id' | 'new_status_id' | 'old_pipeline_id' | 'old_status_id' | 'updated_by' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'users', required: Built-in fields of `activity.lead_status_change` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `new_pipeline_id`: New status (`pipeline` ID) - `new_status_id`: New status (`status.lead` ID) - `old_pipeline_id`: Old status (`pipeline` ID) - `old_status_id`: Old status (`status.lead` ID) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `users`: User (`user` ID)
          - `object_type` 'activity.lead_status_change', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityMeetingSearchField: A built-in field of `activity.meeting` objects.
          - `field_name` 'activity_at' | 'agent_config_id' | 'any_agent' | 'connected_account_id' | 'contact_id' | 'conversation_type_id' | 'conversation_type_reason' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date_created' | 'date_updated' | 'duration' | 'ends_at' | 'has_recording' | 'has_zoom_recordings' | 'is_actual' | 'is_declined' | 'is_recurring' | 'lead_id' | 'location' | 'mentions' | 'note' | 'outcome_id' | 'participant_count' | 'playbook_id' | 'playbook_reason' | 'recording_transcript' | 'source' | 'starts_at' | 'status' | 'talk_time' | 'title' | 'updated_by' | 'user_id' | 'user_note' | 'user_or_agent' | 'user_or_any_agent' | 'user_talk_time' | 'user_talk_time_ratio' | 'users', required: Built-in fields of `activity.meeting` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `agent_config_id`: Agent Config (`agent_config` ID) - `any_agent`: `any_agent` ID - `connected_account_id`: Account (`connected_account` ID) - `contact_id`: Contact (`contact` ID) - `conversation_type_id`: Playbook (`conversation_type` ID) - `conversation_type_reason`: Playbook set by (one of `user-selected`, `autodetected`) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `duration`: Duration (integer) - `ends_at`: Ends At (datetime) - `has_recording`: Was recorded (boolean) - `has_zoom_recordings`: Has Zoom recordings (boolean) - `is_actual`: boolean - `is_declined`: Declined (boolean) - `is_recurring`: Is Recurring (boolean) - `lead_id`: Lead (`lead` ID) - `location`: Location (text) - `mentions`: Mentions in the User's notes (`user_or_group` ID) - `note`: Event notes (text) - `outcome_id`: Outcome (`outcome` ID) - `participant_count`: Number of participants (integer) - `playbook_id`: Playbook (`conversation_type` ID) - `playbook_reason`: Playbook set by (one of `user-selected`, `autodetected`) - `recording_transcript`: Recording Transcript (text) - `source`: Source (one of `calendar`, `manual`) - `starts_at`: Date (datetime) - `status`: Status (one of `upcoming`, `in-progress`, `completed`, `canceled`, `declined-by-org`, `declined-by-lead`) - `talk_time`: Total Recording Talk Time (integer) - `title`: Title (text) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `user_note`: User notes (text) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `user_talk_time`: Total User Talk Time (integer) - `user_talk_time_ratio`: User Talk Time Percent (number) - `users`: User (`user` ID)
          - `object_type` 'activity.meeting', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityNoteSearchField: A built-in field of `activity.note` objects.
          - `field_name` 'activity_at' | 'agent_action_reason' | 'agent_config_id' | 'any_agent' | 'attachment_count' | 'attachment_name' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date_created' | 'date_updated' | 'lead_id' | 'mentions' | 'note' | 'pinned_at' | 'source' | 'title' | 'updated_by' | 'updated_by_agent_id' | 'updated_by_any_agent' | 'updated_by_user_or_any_agent' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'users', required: Built-in fields of `activity.note` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `agent_action_reason`: one of `send_scheduling_link`, `custom_agent_decision`, `voice_agent_callback` - `agent_config_id`: Agent Config (`agent_config` ID) - `any_agent`: `any_agent` ID - `attachment_count`: Number of attachments (integer) - `attachment_name`: Note attachment name (text) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `mentions`: Mentions within note body (`user_or_group` ID) - `note`: Text (text) - `pinned_at`: Pinned at (datetime) - `source`: Source (one of `ui`, `api`, `import`, `clipper`, `email`, `suggestion`, `segment-integration`, `customerio-integration`, `calendly-integration`, `ai`, `whatsapp`, `webform`) - `title`: Title (text) - `updated_by`: Last updated by (`user` ID) - `updated_by_agent_id`: Last updated by agent (`agent_config` ID) - `updated_by_any_agent`: `any_agent` ID - `updated_by_user_or_any_agent`: Last updated by (`user_or_any_agent` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `users`: User (`user` ID)
          - `object_type` 'activity.note', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityOpportunityStatusChangeSearchField: A built-in field of `activity.opportunity_status_change` objects.
          - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'date_created' | 'date_updated' | 'lead_id' | 'new_pipeline_id' | 'new_status_id' | 'new_status_type' | 'old_pipeline_id' | 'old_status_id' | 'old_status_type' | 'opportunity_id' | 'updated_by' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'users', required: Built-in fields of `activity.opportunity_status_change` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `new_pipeline_id`: New pipeline (`pipeline` ID) - `new_status_id`: New status (`status.opportunity` ID) - `new_status_type`: New status type (one of `won`, `lost`, `active`) - `old_pipeline_id`: Old pipeline (`pipeline` ID) - `old_status_id`: Old status (`status.opportunity` ID) - `old_status_type`: Old status type (one of `won`, `lost`, `active`) - `opportunity_id`: Opportunity (`opportunity` ID) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `users`: User (`user` ID)
          - `object_type` 'activity.opportunity_status_change', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivitySmsSearchField: A built-in field of `activity.sms` objects.
          - `field_name` 'activity_at' | 'agent_action_reason' | 'agent_config_id' | 'any_agent' | 'attachment_count' | 'attachment_name' | 'comm_type' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date' | 'date_created' | 'date_scheduled' | 'date_sent' | 'date_updated' | 'direction' | 'from_phone' | 'inbound_date' | 'is_actual' | 'lead_id' | 'local_phone' | 'outbound_date' | 'remote_phone' | 'sender' | 'sent' | 'source' | 'status' | 'template_id' | 'text' | 'to_phone' | 'updated_by' | 'user_id' | 'user_or_agent' | 'user_or_any_agent' | 'users', required: Built-in fields of `activity.sms` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `agent_action_reason`: one of `send_scheduling_link`, `custom_agent_decision`, `voice_agent_callback` - `agent_config_id`: Agent Config (`agent_config` ID) - `any_agent`: `any_agent` ID - `attachment_count`: Number of attachments (integer) - `attachment_name`: SMS attachment name (text) - `comm_type`: Communication type (one of `call`, `outgoing_call`, `incoming_answered_call`, `missed_call`, `received_voicemail`, `received_email`, `sent_email`, `received_sms`, `sent_sms`, `received_whatsapp_message`, `sent_whatsapp_message`) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date`: Date (datetime) - `date_created`: Date created (datetime) - `date_scheduled`: Date scheduled (datetime) - `date_sent`: Date sent (datetime) - `date_updated`: Date last updated (datetime) - `direction`: Direction (one of `inbound`, `outbound`) - `from_phone`: Phone (phone number) - `inbound_date`: Incoming SMS date (datetime) - `is_actual`: Not sent or received (boolean) - `lead_id`: Lead (`lead` ID) - `local_phone`: Local phone (phone number) - `outbound_date`: Outgoing SMS date (datetime) - `remote_phone`: Remote phone (phone number) - `sender`: Sender (`user` ID) - `sent`: Sent date (datetime) - `source`: Source (one of `Close.io`, `External`) - `status`: Status (one of `inbox`, `draft`, `scheduled`, `outbox`, `sent`, `error`) - `template_id`: SMS Template used (`sms_template` ID) - `text`: Message (text) - `to_phone`: Phone (phone number) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: User or Agent (`user_or_any_agent` ID) - `users`: User (`user` ID)
          - `object_type` 'activity.sms', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityTaskCompletedSearchField: A built-in field of `activity.task_completed` objects.
          - `field_name` 'activity_at' | 'contact_id' | 'created_by' | 'date_created' | 'date_updated' | 'lead_id' | 'task_assigned_to' | 'task_text' | 'updated_by' | 'user_id' | 'users', required: Built-in fields of `activity.task_completed` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `task_assigned_to`: Assigned to (`user` ID) - `task_text`: Description (text) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `users`: User (`user` ID)
          - `object_type` 'activity.task_completed', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ActivityWhatsappMessageSearchField: A built-in field of `activity.whatsapp_message` objects.
          - `field_name` 'activity_at' | 'attachment_count' | 'attachment_name' | 'comm_type' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'direction' | 'from_phone' | 'inbound_date' | 'lead_id' | 'local_phone' | 'outbound_date' | 'remote_phone' | 'sender' | 'source' | 'text' | 'to_phone' | 'updated_by' | 'user_id' | 'users', required: Built-in fields of `activity.whatsapp_message` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `activity_at`: At (datetime) - `attachment_count`: Number of attachments (integer) - `attachment_name`: WhatsApp attachment name (text) - `comm_type`: Communication type (one of `call`, `outgoing_call`, `incoming_answered_call`, `missed_call`, `received_voicemail`, `received_email`, `sent_email`, `received_sms`, `sent_sms`, `received_whatsapp_message`, `sent_whatsapp_message`) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `direction`: Direction (one of `incoming`, `outgoing`) - `from_phone`: Phone (phone number) - `inbound_date`: Incoming WhatsApp message date (datetime) - `lead_id`: Lead (`lead` ID) - `local_phone`: Local phone (phone number) - `outbound_date`: Outgoing WhatsApp message date (datetime) - `remote_phone`: Remote phone (phone number) - `sender`: Sender (`user` ID) - `source`: Source (one of `ui`, `api`, `import`, `clipper`, `email`, `suggestion`, `segment-integration`, `customerio-integration`, `calendly-integration`, `ai`, `whatsapp`, `webform`) - `text`: Message (text) - `to_phone`: Phone (phone number) - `updated_by`: Last updated by (`user` ID) - `user_id`: User (`user` ID) - `users`: User (`user` ID)
          - `object_type` 'activity.whatsapp_message', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - AddressSearchField: A built-in field of `address` objects.
          - `field_name` 'address_1' | 'address_2' | 'city' | 'country' | 'label' | 'location' | 'state' | 'timezone_id' | 'timezone_offset' | 'zipcode', required: Built-in fields of `address` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `address_1`: Address line 1 (text) - `address_2`: Address line 2 (text) - `city`: City (text) - `country`: Country (country) - `label`: Label (text) - `location`: Address (text) - `state`: State (state) - `timezone_id`: Local time (timezone) - `timezone_offset`: Timezone offset (integer) - `zipcode`: Zip code (text)
          - `object_type` 'address', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - AgentCallGradeSearchField: A built-in field of `agent_call_grade` objects.
          - `field_name` 'agent_grade_funnel_stage' | 'agent_grade_performance_summary' | 'agent_grade_sentiment_score' | 'call_id' | 'created_by' | 'date_created' | 'date_updated' | 'updated_by', required: Built-in fields of `agent_call_grade` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `agent_grade_funnel_stage`: Funnel Stage (one of `no_connection`, `human_reached`, `prospect_engaged`, `objective_met`) - `agent_grade_performance_summary`: Performance Summary (text) - `agent_grade_sentiment_score`: Sentiment Score (integer) - `call_id`: Call (`activity.call` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'agent_call_grade', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - CommentSearchField: A built-in field of `comment` objects.
          - `field_name` 'body_text' | 'created_by' | 'date_created' | 'date_updated' | 'lead_id' | 'mentions' | 'updated_by', required: Built-in fields of `comment` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `body_text`: Body (text) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `mentions`: Mentions within any rich text fields (`user_or_group` ID) - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'comment', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - CommentThreadSearchField: A built-in field of `comment_thread` objects.
          - `field_name` 'comment_count' | 'created_by' | 'date_created' | 'date_updated' | 'lead_id' | 'object_type' | 'updated_by' | 'users', required: Built-in fields of `comment_thread` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `comment_count`: Number of comments (integer) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `object_type`: Object Type (fixed value) - `updated_by`: Last updated by (`user` ID) - `users`: `user` ID
          - `object_type` 'comment_thread', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ContactSearchField: A built-in field of `contact` objects.
          - `field_name` 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date_created' | 'date_updated' | 'emails_count' | 'is_primary' | 'last_step_date_created' | 'lead_id' | 'max_step_last_processed_at' | 'max_tz_offset' | 'min_tz_offset' | 'name' | 'num_call_tasks' | 'num_completed_call_tasks' | 'num_incomplete_call_tasks' | 'phones_count' | 'timezone' | 'title' | 'updated_by' | 'updated_by_agent_id' | 'updated_by_any_agent' | 'updated_by_user_or_any_agent' | 'urls_count' | 'user_id' | 'users', required: Built-in fields of `contact` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `contact_id`: `contact` ID - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `emails_count`: Number of email addresses (integer) - `is_primary`: First contact (boolean) - `last_step_date_created`: Last Subscription Step Date Created (datetime) - `lead_id`: Lead (`lead` ID) - `max_step_last_processed_at`: Max Subscription Step Last Processed At (datetime) - `max_tz_offset`: integer - `min_tz_offset`: integer - `name`: Name (text) - `num_call_tasks`: integer - `num_completed_call_tasks`: integer - `num_incomplete_call_tasks`: integer - `phones_count`: Number of phone numbers (integer) - `timezone`: timezone - `title`: Title (text) - `updated_by`: Last updated by (`user` ID) - `updated_by_agent_id`: Last updated by agent (`agent_config` ID) - `updated_by_any_agent`: `any_agent` ID - `updated_by_user_or_any_agent`: Last updated by (`user_or_any_agent` ID) - `urls_count`: Number of URLs (integer) - `user_id`: `user` ID - `users`: `user` ID
          - `object_type` 'contact', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ContactEmailSearchField: A built-in field of `contact_email` objects.
          - `field_name` 'email' | 'is_unsubscribed', required: Built-in fields of `contact_email` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `email`: Email address (email address) - `is_unsubscribed`: Unsubscribed (boolean)
          - `object_type` 'contact_email', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ContactPhoneSearchField: A built-in field of `contact_phone` objects.
          - `field_name` 'is_toll_free' | 'phone' | 'timezone_id' | 'timezone_offset', required: Built-in fields of `contact_phone` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `is_toll_free`: Toll free (boolean) - `phone`: Phone number (phone number) - `timezone_id`: Local time (timezone) - `timezone_offset`: Timezone offset (integer)
          - `object_type` 'contact_phone', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - ContactUrlSearchField: A built-in field of `contact_url` objects.
          - `field_name` 'url', required: Built-in fields of `contact_url` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `url`: URL (URL)
          - `object_type` 'contact_url', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - CustomFieldsContactSearchField: A built-in field of `custom_fields.contact` objects.
          - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'name' | 'updated_by', required: Built-in fields of `custom_fields.contact` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `name`: Name (text) - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'custom_fields.contact', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - CustomFieldsLeadSearchField: A built-in field of `custom_fields.lead` objects.
          - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'name' | 'updated_by', required: Built-in fields of `custom_fields.lead` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `name`: Name (text) - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'custom_fields.lead', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - CustomFieldsOpportunitySearchField: A built-in field of `custom_fields.opportunity` objects.
          - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'name' | 'updated_by', required: Built-in fields of `custom_fields.opportunity` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `name`: Name (text) - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'custom_fields.opportunity', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - CustomObjectSearchField: A built-in field of `custom_object` objects.
          - `field_name` 'created_by' | 'custom_object_type_id' | 'date_created' | 'date_updated' | 'lead_id' | 'name' | 'updated_by', required: Built-in fields of `custom_object` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `custom_object_type_id`: Custom Object Type (`custom_object_type` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `name`: Name (text) - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'custom_object', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - EmailTemplateSearchField: A built-in field of `email_template` objects.
          - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'is_archived' | 'name' | 'updated_by', required: Built-in fields of `email_template` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_archived`: Archived (boolean) - `name`: Name (text) - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'email_template', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - LeadSearchField: A built-in field of `lead` objects.
          - `field_name` 'addresses_count' | 'all_urls_count' | 'avg_annual_active_opportunity_value' | 'avg_annual_lost_opportunity_value' | 'avg_annual_opportunity_value' | 'avg_annual_won_opportunity_value' | 'avg_annualized_active_opportunity_value' | 'avg_annualized_lost_opportunity_value' | 'avg_annualized_opportunity_value' | 'avg_annualized_won_opportunity_value' | 'avg_monthly_active_opportunity_value' | 'avg_monthly_lost_opportunity_value' | 'avg_monthly_opportunity_value' | 'avg_monthly_won_opportunity_value' | 'avg_one_time_active_opportunity_value' | 'avg_one_time_lost_opportunity_value' | 'avg_one_time_opportunity_value' | 'avg_one_time_won_opportunity_value' | 'call_notes_count' | 'call_recordings_count' | 'call_voicemails_count' | 'calls_over_60s_count' | 'calls_over_60s_duration' | 'canceled_meetings_duration' | 'completed_meetings_duration' | 'contact_ids' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date_created' | 'date_updated' | 'declined_by_lead_meetings_duration' | 'declined_by_org_meetings_duration' | 'declined_meetings_duration' | 'description' | 'display_name' | 'email_first_opened' | 'email_last_opened' | 'emails_opened_count' | 'first_actual_email_subject' | 'first_call_agent_config_id' | 'first_call_any_agent' | 'first_call_created' | 'first_call_direction' | 'first_call_disposition' | 'first_call_duration' | 'first_call_note' | 'first_call_outcome_id' | 'first_call_updated' | 'first_call_updated_by' | 'first_call_user' | 'first_communication_date' | 'first_communication_direction' | 'first_communication_type' | 'first_communication_user_id' | 'first_completed_meeting_outcome_id' | 'first_created_source' | 'first_email' | 'first_email_attachments' | 'first_email_bcc' | 'first_email_cc' | 'first_email_created' | 'first_email_direction' | 'first_email_from' | 'first_email_opened' | 'first_email_opens' | 'first_email_subject' | 'first_email_template' | 'first_email_to' | 'first_email_user' | 'first_emailed' | 'first_emailed_template' | 'first_incoming_call_date' | 'first_incoming_email_date' | 'first_incoming_email_user_id' | 'first_incoming_sms_date' | 'first_lead_status_change_date' | 'first_lead_status_change_new_status' | 'first_lead_status_change_old_status' | 'first_note_by' | 'first_note_created' | 'first_note_updated' | 'first_note_updated_by' | 'first_note_user' | 'first_opportunity_created_date_created' | 'first_opportunity_status_change_date' | 'first_opportunity_status_change_new_pipeline' | 'first_opportunity_status_change_new_status' | 'first_opportunity_status_change_old_pipeline' | 'first_opportunity_status_change_old_status' | 'first_opportunity_updated_date_updated' | 'first_opportunity_won_date_won' | 'first_outgoing_call_date' | 'first_outgoing_email_date' | 'first_outgoing_email_user_id' | 'first_outgoing_sms_date' | 'first_received_sms_date' | 'first_sent_sms_date' | 'first_sms_created' | 'first_sms_date' | 'first_sms_direction' | 'first_sms_text' | 'first_sms_user' | 'first_updated_note_updated' | 'first_voicemail_duration' | 'in_progress_meetings_duration' | 'last_activity_date' | 'last_activity_user_id' | 'last_actual_email_subject' | 'last_call_agent_config_id' | 'last_call_any_agent' | 'last_call_created' | 'last_call_direction' | 'last_call_disposition' | 'last_call_duration' | 'last_call_note' | 'last_call_outcome_id' | 'last_call_updated' | 'last_call_updated_by' | 'last_call_user_id' | 'last_communication_date' | 'last_communication_direction' | 'last_communication_type' | 'last_communication_user_id' | 'last_complete_task_due_date' | 'last_complete_task_updated' | 'last_completed_meeting_duration' | 'last_completed_meeting_ends_at' | 'last_completed_meeting_is_recurring' | 'last_completed_meeting_location' | 'last_completed_meeting_note' | 'last_completed_meeting_num_participants' | 'last_completed_meeting_outcome_id' | 'last_completed_meeting_source' | 'last_completed_meeting_starts_at' | 'last_completed_meeting_status' | 'last_completed_meeting_title' | 'last_completed_meeting_users' | 'last_email_attachments' | 'last_email_bcc' | 'last_email_cc' | 'last_email_created' | 'last_email_date' | 'last_email_direction' | 'last_email_from' | 'last_email_last_open_date' | 'last_email_opens_count' | 'last_email_subject' | 'last_email_template_id' | 'last_email_to' | 'last_email_user' | 'last_emailed' | 'last_emailed_template' | 'last_incoming_call_date' | 'last_incoming_communication_date' | 'last_incoming_email_date' | 'last_incoming_email_user_id' | 'last_incoming_sms_date' | 'last_lead_status_change_date' | 'last_lead_status_change_new_status' | 'last_lead_status_change_old_status' | 'last_note_by' | 'last_note_created' | 'last_note_updated' | 'last_note_updated_by' | 'last_note_user' | 'last_opportunity_created_date_created' | 'last_opportunity_status_change_date' | 'last_opportunity_status_change_new_status' | 'last_opportunity_status_change_old_status' | 'last_opportunity_updated_date_updated' | 'last_opportunity_won_date_won' | 'last_outgoing_call_date' | 'last_outgoing_communication_date' | 'last_outgoing_email_date' | 'last_outgoing_email_user_id' | 'last_outgoing_sms_date' | 'last_received_sms_date' | 'last_sent_sms_date' | 'last_sms_created' | 'last_sms_date' | 'last_sms_direction' | 'last_sms_text' | 'last_sms_user' | 'last_task_created' | 'last_task_creator' | 'last_task_due' | 'last_task_text' | 'last_task_updated' | 'last_task_updated_by' | 'last_updated_note_updated' | 'last_voicemail_duration' | 'longest_call_duration' | 'longest_recording_duration' | 'longest_voicemail_duration' | 'max_annual_active_opportunity_value' | 'max_annual_lost_opportunity_value' | 'max_annual_opportunity_value' | 'max_annual_won_opportunity_value' | 'max_annualized_active_opportunity_value' | 'max_annualized_lost_opportunity_value' | 'max_annualized_opportunity_value' | 'max_annualized_won_opportunity_value' | 'max_monthly_active_opportunity_value' | 'max_monthly_lost_opportunity_value' | 'max_monthly_opportunity_value' | 'max_monthly_won_opportunity_value' | 'max_one_time_active_opportunity_value' | 'max_one_time_lost_opportunity_value' | 'max_one_time_opportunity_value' | 'max_one_time_won_opportunity_value' | 'max_opportunity_annualized_annualized_value' | 'max_opportunity_confidence_confidence' | 'max_timezone_offset' | 'meetings_duration' | 'min_annual_active_opportunity_value' | 'min_annual_lost_opportunity_value' | 'min_annual_opportunity_value' | 'min_annual_won_opportunity_value' | 'min_annualized_active_opportunity_value' | 'min_annualized_lost_opportunity_value' | 'min_annualized_opportunity_value' | 'min_annualized_won_opportunity_value' | 'min_monthly_active_opportunity_value' | 'min_monthly_lost_opportunity_value' | 'min_monthly_opportunity_value' | 'min_monthly_won_opportunity_value' | 'min_one_time_active_opportunity_value' | 'min_one_time_lost_opportunity_value' | 'min_one_time_opportunity_value' | 'min_one_time_won_opportunity_value' | 'min_opportunity_confidence_confidence' | 'min_timezone_offset' | 'name' | 'next_due' | 'next_task_date' | 'next_task_due_date' | 'next_task_text' | 'next_task_user_id' | 'next_upcoming_meeting_duration' | 'next_upcoming_meeting_ends_at' | 'next_upcoming_meeting_is_recurring' | 'next_upcoming_meeting_location' | 'next_upcoming_meeting_note' | 'next_upcoming_meeting_num_participants' | 'next_upcoming_meeting_source' | 'next_upcoming_meeting_starts_at' | 'next_upcoming_meeting_status' | 'next_upcoming_meeting_title' | 'next_upcoming_meeting_users' | 'num_active_opportunities' | 'num_activities' | 'num_annual_opportunities' | 'num_calls' | 'num_canceled_meetings' | 'num_completed_meetings' | 'num_completed_tasks' | 'num_contact_urls' | 'num_contacts' | 'num_declined_by_lead_meetings' | 'num_declined_by_org_meetings' | 'num_declined_meetings' | 'num_draft_emails' | 'num_draft_sms' | 'num_email_addresses' | 'num_email_attachments' | 'num_email_opens' | 'num_emails' | 'num_error_emails' | 'num_error_sms' | 'num_in_progress_meetings' | 'num_incoming_calls' | 'num_incomplete_tasks' | 'num_lost_opportunities' | 'num_meetings' | 'num_missed_calls' | 'num_monthly_opportunities' | 'num_notes' | 'num_one_time_opportunities' | 'num_opportunities' | 'num_outbox_emails' | 'num_outbox_sms' | 'num_outgoing_calls' | 'num_outgoing_emails' | 'num_phone_numbers' | 'num_received_emails' | 'num_received_sms' | 'num_scheduled_emails' | 'num_scheduled_sms' | 'num_sent_emails' | 'num_sent_sms' | 'num_sms' | 'num_tasks' | 'num_upcoming_meetings' | 'num_won_opportunities' | 'original_lead_status' | 'outbound_sms_count' | 'pipeline_id' | 'primary_contact_name' | 'primary_email' | 'primary_opportunity_confidence' | 'primary_opportunity_created' | 'primary_opportunity_date_won' | 'primary_opportunity_period' | 'primary_opportunity_status' | 'primary_opportunity_status_type' | 'primary_opportunity_updated' | 'primary_opportunity_user_id' | 'primary_opportunity_value' | 'shortest_call_duration' | 'shortest_voicemail_duration' | 'status_id' | 'time_to_first_call' | 'time_to_first_communication' | 'time_to_first_email' | 'time_to_first_incoming_call' | 'time_to_first_incoming_communication' | 'time_to_first_incoming_email' | 'time_to_first_incoming_sms' | 'time_to_first_meeting' | 'time_to_first_outgoing_call' | 'time_to_first_outgoing_communication' | 'time_to_first_outgoing_email' | 'time_to_first_outgoing_sms' | 'time_to_first_sms' | 'times_communicated' | 'times_communicated_outgoing' | 'timezone_offset' | 'total_annual_active_opportunity_value' | 'total_annual_lost_opportunity_value' | 'total_annual_opportunity_value' | 'total_annual_won_opportunity_value' | 'total_annualized_active_opportunity_value' | 'total_annualized_lost_opportunity_value' | 'total_annualized_opportunity_value' | 'total_annualized_won_opportunity_value' | 'total_call_duration' | 'total_monthly_active_opportunity_value' | 'total_monthly_lost_opportunity_value' | 'total_monthly_opportunity_value' | 'total_monthly_won_opportunity_value' | 'total_one_time_active_opportunity_value' | 'total_one_time_lost_opportunity_value' | 'total_one_time_opportunity_value' | 'total_one_time_won_opportunity_value' | 'upcoming_meetings_duration' | 'updated_by' | 'updated_by_agent_id' | 'updated_by_any_agent' | 'updated_by_user_or_any_agent' | 'url' | 'urls_count', required: Built-in fields of `lead` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `addresses_count`: Total number of addresses (integer) - `all_urls_count`: Total number of URLs (integer) - `avg_annual_active_opportunity_value`: Opportunity value - average annual active (number) - `avg_annual_lost_opportunity_value`: Opportunity value - average annual lost (number) - `avg_annual_opportunity_value`: Opportunity value - average annual (number) - `avg_annual_won_opportunity_value`: Opportunity value - average annual won (number) - `avg_annualized_active_opportunity_value`: Opportunity value - average annualized active (number) - `avg_annualized_lost_opportunity_value`: Opportunity value - average annualized lost (number) - `avg_annualized_opportunity_value`: Opportunity value - average annualized (number) - `avg_annualized_won_opportunity_value`: Opportunity value - average annualized won (number) - `avg_monthly_active_opportunity_value`: Opportunity value - average monthly active (number) - `avg_monthly_lost_opportunity_value`: Opportunity value - average monthly lost (number) - `avg_monthly_opportunity_value`: Opportunity value - average monthly (number) - `avg_monthly_won_opportunity_value`: Opportunity value - average monthly won (number) - `avg_one_time_active_opportunity_value`: Opportunity value - average one time active (number) - `avg_one_time_lost_opportunity_value`: Opportunity value - average one time lost (number) - `avg_one_time_opportunity_value`: Opportunity value - average one time (number) - `avg_one_time_won_opportunity_value`: Opportunity value - average one time won (number) - `call_notes_count`: Number of calls with notes (integer) - `call_recordings_count`: Number of recordings (integer) - `call_voicemails_count`: Number of voicemails (integer) - `calls_over_60s_count`: Calls over 60s (integer) - `calls_over_60s_duration`: Calls over 60s duration (integer) - `canceled_meetings_duration`: Canceled meetings duration (integer) - `completed_meetings_duration`: Completed meetings duration (integer) - `contact_ids`: Contacts (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `declined_by_lead_meetings_duration`: Declined by lead meetings duration (integer) - `declined_by_org_meetings_duration`: Declined by org meetings duration (integer) - `declined_meetings_duration`: Declined meetings duration (integer) - `description`: Description (text) - `display_name`: Name (text) - `email_first_opened`: Date of first email open (datetime) - `email_last_opened`: Date of latest email open (datetime) - `emails_opened_count`: Number of opened emails (integer) - `first_actual_email_subject`: First actual email - Subject (text) - `first_call_agent_config_id`: First call - Agent Config (`agent_config` ID) - `first_call_any_agent`: First call - AI Agent (`any_agent` ID) - `first_call_created`: Date of first call (datetime) - `first_call_direction`: First call - Direction (one of `inbound`, `outbound`) - `first_call_disposition`: First call disposition (one of `no-answer`, `answered`, `vm-answer`, `vm-left`, `busy`, `blocked`, `error`, `abandoned`) - `first_call_duration`: First call - Duration (integer) - `first_call_note`: First call note (text) - `first_call_outcome_id`: First call - Outcome (`outcome` ID) - `first_call_updated`: First updated call date (datetime) - `first_call_updated_by`: First call - Updated by (`user` ID) - `first_call_user`: First call - User (`user` ID) - `first_communication_date`: First communication - Date (datetime) - `first_communication_direction`: First communication - Direction (one of `incoming`, `outgoing`) - `first_communication_type`: First communication - Type (one of `call`, `outgoing_call`, `incoming_answered_call`, `missed_call`, `received_voicemail`, `received_email`, `sent_email`, `received_sms`, `sent_sms`, `received_whatsapp_message`, `sent_whatsapp_message`) - `first_communication_user_id`: First communication - User (`user` ID) - `first_completed_meeting_outcome_id`: First completed meeting - Outcome (`outcome` ID) - `first_created_source`: First created source (one of `ui`, `api`, `import`, `clipper`, `email`, `suggestion`, `segment-integration`, `customerio-integration`, `calendly-integration`, `ai`, `whatsapp`, `webform`) - `first_email`: First email - Date (datetime) - `first_email_attachments`: First email - Attachment count (integer) - `first_email_bcc`: First email - BCC (text) - `first_email_cc`: First email - CC (text) - `first_email_created`: First email - Date created (datetime) - `first_email_direction`: First email - Direction (one of `incoming`, `outgoing`) - `first_email_from`: First email - From (text) - `first_email_opened`: First email - Open date (datetime) - `first_email_opens`: First email - Opens count (integer) - `first_email_subject`: Earliest email subject (text) - `first_email_template`: First email - Template (`email_template` ID) - `first_email_to`: First email - To (text) - `first_email_user`: First email - User (`user` ID) - `first_emailed`: First email - Recipient (text) - `first_emailed_template`: First templated email - Template (`email_template` ID) - `first_incoming_call_date`: First incoming call - Date (datetime) - `first_incoming_email_date`: First incoming email - Date received (datetime) - `first_incoming_email_user_id`: First incoming email - User (`user` ID) - `first_incoming_sms_date`: First incoming SMS - Date (datetime) - `first_lead_status_change_date`: First lead status change - Date (datetime) - `first_lead_status_change_new_status`: First lead status change - New status (`status.lead` ID) - `first_lead_status_change_old_status`: First lead status change - Old status (`status.lead` ID) - `first_note_by`: First note - Created by (`user` ID) - `first_note_created`: First note - Date (datetime) - `first_note_updated`: First note - Date updated (datetime) - `first_note_updated_by`: First note - Updated by (`user` ID) - `first_note_user`: First note - User (`user` ID) - `first_opportunity_created_date_created`: First opportunity - Date created (datetime) - `first_opportunity_status_change_date`: First opportunity status change - Date (datetime) - `first_opportunity_status_change_new_pipeline`: `status.opportunity` ID - `first_opportunity_status_change_new_status`: First opportunity status change - New status (`status.opportunity` ID) - `first_opportunity_status_change_old_pipeline`: `status.opportunity` ID - `first_opportunity_status_change_old_status`: First opportunity status change - Old status (`status.opportunity` ID) - `first_opportunity_updated_date_updated`: First opportunity - Date updated (datetime) - `first_opportunity_won_date_won`: First won opportunity date (date) - `first_outgoing_call_date`: First outgoing call - Date (datetime) - `first_outgoing_email_date`: First outgoing email - Date sent (datetime) - `first_outgoing_email_user_id`: First outgoing email - User (`user` ID) - `first_outgoing_sms_date`: First outgoing SMS - Date (datetime) - `first_received_sms_date`: First received SMS date (datetime) - `first_sent_sms_date`: First sent SMS date (datetime) - `first_sms_created`: First SMS created (datetime) - `first_sms_date`: First SMS date (datetime) - `first_sms_direction`: First SMS - Direction (one of `inbound`, `outbound`) - `first_sms_text`: First SMS text (text) - `first_sms_user`: First SMS - User (`user` ID) - `first_updated_note_updated`: First updated note - Date updated (datetime) - `first_voicemail_duration`: First voicemail - Duration (integer) - `in_progress_meetings_duration`: In-progress meetings duration (integer) - `last_activity_date`: Latest activity date (datetime) - `last_activity_user_id`: Latest activity user (`user` ID) - `last_actual_email_subject`: Last actual email - Subject (text) - `last_call_agent_config_id`: Last call - Agent Config (`agent_config` ID) - `last_call_any_agent`: Last call - AI Agent (`any_agent` ID) - `last_call_created`: Last call - Date (datetime) - `last_call_direction`: Last call - Direction (one of `inbound`, `outbound`) - `last_call_disposition`: Last call - Disposition (one of `no-answer`, `answered`, `vm-answer`, `vm-left`, `busy`, `blocked`, `error`, `abandoned`) - `last_call_duration`: Last call duration (integer) - `last_call_note`: Last call note (text) - `last_call_outcome_id`: Last call - Outcome (`outcome` ID) - `last_call_updated`: Last updated call date (datetime) - `last_call_updated_by`: Last call - Updated by (`user` ID) - `last_call_user_id`: Last call - User (`user` ID) - `last_communication_date`: Last communication - Date (datetime) - `last_communication_direction`: Last communication - Direction (one of `incoming`, `outgoing`) - `last_communication_type`: Last communication - Type (one of `call`, `outgoing_call`, `incoming_answered_call`, `missed_call`, `received_voicemail`, `received_email`, `sent_email`, `received_sms`, `sent_sms`, `received_whatsapp_message`, `sent_whatsapp_message`) - `last_communication_user_id`: Last communication - User (`user` ID) - `last_complete_task_due_date`: Last completed task - Due date (datetime) - `last_complete_task_updated`: Last completed task - Date updated (datetime) - `last_completed_meeting_duration`: Last completed meeting - Duration (integer) - `last_completed_meeting_ends_at`: Last completed meeting - End time (datetime) - `last_completed_meeting_is_recurring`: Last completed meeting - Is recurring (boolean) - `last_completed_meeting_location`: Last completed meeting - Location (text) - `last_completed_meeting_note`: Last completed meeting - Event notes (text) - `last_completed_meeting_num_participants`: Last completed meeting - Number of participants (integer) - `last_completed_meeting_outcome_id`: Last completed meeting - Outcome (`outcome` ID) - `last_completed_meeting_source`: Last completed meeting - Source (one of `calendar`, `manual`) - `last_completed_meeting_starts_at`: Last completed meeting - Date (datetime) - `last_completed_meeting_status`: Last completed meeting - Status (one of `upcoming`, `in-progress`, `completed`, `canceled`, `declined-by-org`, `declined-by-lead`) - `last_completed_meeting_title`: Last completed meeting - Title (text) - `last_completed_meeting_users`: Last completed meeting - User (`user` ID) - `last_email_attachments`: Last email - Attachment count (integer) - `last_email_bcc`: Last email - BCC (text) - `last_email_cc`: Last email - CC (text) - `last_email_created`: Last email - Date created (datetime) - `last_email_date`: Last email - Date (datetime) - `last_email_direction`: Last email - Direction (one of `incoming`, `outgoing`) - `last_email_from`: Last email - From (text) - `last_email_last_open_date`: Last email - Date opened (datetime) - `last_email_opens_count`: Last email - Number of opens (integer) - `last_email_subject`: Latest email subject (text) - `last_email_template_id`: Last email - Email Template used (`email_template` ID) - `last_email_to`: Last email - To (text) - `last_email_user`: Last email - User (`user` ID) - `last_emailed`: Last email recipient (text) - `last_emailed_template`: Last emailed template (`email_template` ID) - `last_incoming_call_date`: Last incoming call - Date incoming (datetime) - `last_incoming_communication_date`: Latest incoming communication date (datetime) - `last_incoming_email_date`: Last incoming email - Date received (datetime) - `last_incoming_email_user_id`: Last incoming email - User (`user` ID) - `last_incoming_sms_date`: Last incoming SMS - Date (datetime) - `last_lead_status_change_date`: Date (datetime) - `last_lead_status_change_new_status`: New status (`status.lead` ID) - `last_lead_status_change_old_status`: Previous status (`status.lead` ID) - `last_note_by`: Last note - Created by (`user` ID) - `last_note_created`: Last note - Date (datetime) - `last_note_updated`: Last note - Date updated (datetime) - `last_note_updated_by`: Last note - Updated by (`user` ID) - `last_note_user`: Last note - User (`user` ID) - `last_opportunity_created_date_created`: Last opportunity - Date created (datetime) - `last_opportunity_status_change_date`: Last opportunity status change - Date (datetime) - `last_opportunity_status_change_new_status`: Last opportunity status change - New status (`status.opportunity` ID) - `last_opportunity_status_change_old_status`: Last opportunity status change - Previous status (`status.opportunity` ID) - `last_opportunity_updated_date_updated`: Last opportunity - Date updated (datetime) - `last_opportunity_won_date_won`: Last won opportunity date (date) - `last_outgoing_call_date`: Last outgoing call - Date outgoing (datetime) - `last_outgoing_communication_date`: Latest outgoing communication date (datetime) - `last_outgoing_email_date`: Last outgoing email - Date sent (datetime) - `last_outgoing_email_user_id`: Last outgoing email - User (`user` ID) - `last_outgoing_sms_date`: Last outgoing SMS - Date (datetime) - `last_received_sms_date`: Last received SMS - Date received (datetime) - `last_sent_sms_date`: Last sent SMS - Date sent (datetime) - `last_sms_created`: Last SMS created (datetime) - `last_sms_date`: Last SMS - Date (datetime) - `last_sms_direction`: Last SMS - Direction (one of `inbound`, `outbound`) - `last_sms_text`: Last SMS text (text) - `last_sms_user`: Last SMS - User (`user` ID) - `last_task_created`: Last task - Date created (datetime) - `last_task_creator`: Last task - Created by (`user` ID) - `last_task_due`: Last task - Due date (datetime) - `last_task_text`: Last task - Text (text) - `last_task_updated`: Last task - Date updated (datetime) - `last_task_updated_by`: Last task - Updated by (`user` ID) - `last_updated_note_updated`: Last updated note - Date updated (datetime) - `last_voicemail_duration`: Last voicemail duration (integer) - `longest_call_duration`: Longest call duration (integer) - `longest_recording_duration`: Longest recording duration (integer) - `longest_voicemail_duration`: Longest voicemail duration (integer) - `max_annual_active_opportunity_value`: Opportunity value - largest annual active (number) - `max_annual_lost_opportunity_value`: Opportunity value - largest annual lost (number) - `max_annual_opportunity_value`: Opportunity value - largest annual (number) - `max_annual_won_opportunity_value`: Opportunity value - largest annual won (number) - `max_annualized_active_opportunity_value`: Opportunity value - largest annualized active (number) - `max_annualized_lost_opportunity_value`: Opportunity value - largest annualized lost (number) - `max_annualized_opportunity_value`: Opportunity value - largest annualized (number) - `max_annualized_won_opportunity_value`: Opportunity value - largest annualized won (number) - `max_monthly_active_opportunity_value`: Opportunity value - largest monthly active (number) - `max_monthly_lost_opportunity_value`: Opportunity value - largest monthly lost (number) - `max_monthly_opportunity_value`: Opportunity value - largest monthly (number) - `max_monthly_won_opportunity_value`: Opportunity value - largest monthly won (number) - `max_one_time_active_opportunity_value`: Opportunity value - largest one time active (number) - `max_one_time_lost_opportunity_value`: Opportunity value - largest one time lost (number) - `max_one_time_opportunity_value`: Opportunity value - largest one time (number) - `max_one_time_won_opportunity_value`: Opportunity value - largest one time won (number) - `max_opportunity_annualized_annualized_value`: Maximum opportunity annualized value (number) - `max_opportunity_confidence_confidence`: Maximum opportunity confidence (integer) - `max_timezone_offset`: integer - `meetings_duration`: Total meetings duration (integer) - `min_annual_active_opportunity_value`: Opportunity value - smallest annual active (number) - `min_annual_lost_opportunity_value`: Opportunity value - smallest annual lost (number) - `min_annual_opportunity_value`: Opportunity value - smallest annual (number) - `min_annual_won_opportunity_value`: Opportunity value - smallest annual won (number) - `min_annualized_active_opportunity_value`: Opportunity value - smallest annualized active (number) - `min_annualized_lost_opportunity_value`: Opportunity value - smallest annualized lost (number) - `min_annualized_opportunity_value`: Opportunity value - smallest annualized (number) - `min_annualized_won_opportunity_value`: Opportunity value - smallest annualized won (number) - `min_monthly_active_opportunity_value`: Opportunity value - smallest monthly active (number) - `min_monthly_lost_opportunity_value`: Opportunity value - smallest monthly lost (number) - `min_monthly_opportunity_value`: Opportunity value - smallest monthly (number) - `min_monthly_won_opportunity_value`: Opportunity value - smallest monthly won (number) - `min_one_time_active_opportunity_value`: Opportunity value - smallest one time active (number) - `min_one_time_lost_opportunity_value`: Opportunity value - smallest one time lost (number) - `min_one_time_opportunity_value`: Opportunity value - smallest one time (number) - `min_one_time_won_opportunity_value`: Opportunity value - smallest one time won (number) - `min_opportunity_confidence_confidence`: Minimum opportunity confidence (integer) - `min_timezone_offset`: integer - `name`: Name (text) - `next_due`: Next task due date (datetime) - `next_task_date`: Next task date (datetime) - `next_task_due_date`: Next task due date (datetime) - `next_task_text`: Next task text (text) - `next_task_user_id`: Next task user (`user` ID) - `next_upcoming_meeting_duration`: Next upcoming meeting - Duration (integer) - `next_upcoming_meeting_ends_at`: Next upcoming meeting ends at (datetime) - `next_upcoming_meeting_is_recurring`: Next upcoming meeting - Is recurring (boolean) - `next_upcoming_meeting_location`: Next upcoming meeting - Location (text) - `next_upcoming_meeting_note`: Next upcoming meeting - Event notes (text) - `next_upcoming_meeting_num_participants`: Next upcoming meeting - Number of participants (integer) - `next_upcoming_meeting_source`: Next upcoming meeting - Source (one of `calendar`, `manual`) - `next_upcoming_meeting_starts_at`: Next upcoming meeting (datetime) - `next_upcoming_meeting_status`: Next upcoming meeting - Status (one of `upcoming`, `in-progress`, `completed`, `canceled`, `declined-by-org`, `declined-by-lead`) - `next_upcoming_meeting_title`: Next upcoming meeting - Title (text) - `next_upcoming_meeting_users`: Next upcoming meeting - User (`user` ID) - `num_active_opportunities`: Number of active opportunities (integer) - `num_activities`: Total number of activities (integer) - `num_annual_opportunities`: Opportunities - Annual (integer) - `num_calls`: Total number of calls (integer) - `num_canceled_meetings`: Number of canceled meetings (integer) - `num_completed_meetings`: Number of completed meetings (integer) - `num_completed_tasks`: Number of completed tasks (integer) - `num_contact_urls`: # Contact URLs (integer) - `num_contacts`: Total number of contacts (integer) - `num_declined_by_lead_meetings`: Meetings - Declined By Lead (integer) - `num_declined_by_org_meetings`: Meetings - Declined By Org (integer) - `num_declined_meetings`: Number of declined meetings (integer) - `num_draft_emails`: Number of draft emails (integer) - `num_draft_sms`: Number of draft SMS (integer) - `num_email_addresses`: Total number of email addresses (integer) - `num_email_attachments`: # Email attachments (integer) - `num_email_opens`: Total number of email opens (integer) - `num_emails`: Total number of emails (integer) - `num_error_emails`: Number of emails that errored (integer) - `num_error_sms`: Number of SMS that errored (integer) - `num_in_progress_meetings`: Number of in-progress meetings (integer) - `num_incoming_calls`: Number of incoming calls (integer) - `num_incomplete_tasks`: Number of incomplete tasks (integer) - `num_lost_opportunities`: Number of lost opportunities (integer) - `num_meetings`: Total number of meetings (integer) - `num_missed_calls`: Number of missed calls (integer) - `num_monthly_opportunities`: Opportunities - Monthly (integer) - `num_notes`: Total number of notes (integer) - `num_one_time_opportunities`: Opportunities - One-Time (integer) - `num_opportunities`: Total number of opportunities (integer) - `num_outbox_emails`: Number of emails in outbox (integer) - `num_outbox_sms`: Number of SMS in outbox (integer) - `num_outgoing_calls`: Number of outgoing calls (integer) - `num_outgoing_emails`: # Outgoing emails (integer) - `num_phone_numbers`: Total number of phone numbers (integer) - `num_received_emails`: Number of received emails (integer) - `num_received_sms`: Number of received SMS (integer) - `num_scheduled_emails`: Number of scheduled emails (integer) - `num_scheduled_sms`: Number of scheduled SMS (integer) - `num_sent_emails`: Number of sent emails (integer) - `num_sent_sms`: Number of sent SMS (integer) - `num_sms`: Total number of SMS (integer) - `num_tasks`: Total number of tasks (integer) - `num_upcoming_meetings`: Number of upcoming meetings (integer) - `num_won_opportunities`: Number of won opportunities (integer) - `original_lead_status`: Initial lead status (`status.lead` ID) - `outbound_sms_count`: Outbound SMS count (integer) - `pipeline_id`: Current status (`pipeline` ID) - `primary_contact_name`: Primary contact name (text) - `primary_email`: Primary email (email address) - `primary_opportunity_confidence`: Primary opportunity confidence (integer) - `primary_opportunity_created`: Primary opportunity created (datetime) - `primary_opportunity_date_won`: Primary opportunity date won (date) - `primary_opportunity_period`: Primary opportunity period (one of `one_time`, `monthly`, `annual`) - `primary_opportunity_status`: Primary opportunity status (`status.opportunity` ID) - `primary_opportunity_status_type`: Primary opportunity status type (one of `won`, `lost`, `active`) - `primary_opportunity_updated`: Primary opportunity updated (datetime) - `primary_opportunity_user_id`: Primary opportunity assigned to (`user` ID) - `primary_opportunity_value`: Primary opportunity value (number) - `shortest_call_duration`: Longest call duration (integer) - `shortest_voicemail_duration`: Shortest voicemail duration (integer) - `status_id`: Current status (`status.lead` ID) - `time_to_first_call`: Time to first call (integer) - `time_to_first_communication`: Time to first communication (integer) - `time_to_first_email`: Time to first email (integer) - `time_to_first_incoming_call`: Time to first incoming call (integer) - `time_to_first_incoming_communication`: Time to first incoming communication (integer) - `time_to_first_incoming_email`: Time to first incoming email (integer) - `time_to_first_incoming_sms`: Time to first incoming SMS (integer) - `time_to_first_meeting`: Time to first meeting (integer) - `time_to_first_outgoing_call`: Time to first outgoing call (integer) - `time_to_first_outgoing_communication`: Time to first outgoing communication (integer) - `time_to_first_outgoing_email`: Time to first outgoing email (integer) - `time_to_first_outgoing_sms`: Time to first outgoing SMS (integer) - `time_to_first_sms`: Time to first SMS (integer) - `times_communicated`: Total number of times communicated (integer) - `times_communicated_outgoing`: integer - `timezone_offset`: Timezone offset (integer) - `total_annual_active_opportunity_value`: Opportunity value - annual active (number) - `total_annual_lost_opportunity_value`: Opportunity value - annual lost (number) - `total_annual_opportunity_value`: Opportunity value - annual (number) - `total_annual_won_opportunity_value`: Opportunity value - annual won (number) - `total_annualized_active_opportunity_value`: Opportunity value - annualized active (number) - `total_annualized_lost_opportunity_value`: Opportunity value - annualized lost (number) - `total_annualized_opportunity_value`: Opportunity value - annualized (number) - `total_annualized_won_opportunity_value`: Opportunity value - annualized won (number) - `total_call_duration`: Total call duration (integer) - `total_monthly_active_opportunity_value`: Opportunity value - monthly active (number) - `total_monthly_lost_opportunity_value`: Opportunity value - monthly lost (number) - `total_monthly_opportunity_value`: Opportunity value - monthly (number) - `total_monthly_won_opportunity_value`: Opportunity value - monthly won (number) - `total_one_time_active_opportunity_value`: Opportunity value - one time active (number) - `total_one_time_lost_opportunity_value`: Opportunity value - one time lost (number) - `total_one_time_opportunity_value`: Opportunity value - one time (number) - `total_one_time_won_opportunity_value`: Opportunity value - one time won (number) - `upcoming_meetings_duration`: Upcoming meetings duration (integer) - `updated_by`: Last updated by (`user` ID) - `updated_by_agent_id`: Last updated by agent (`agent_config` ID) - `updated_by_any_agent`: `any_agent` ID - `updated_by_user_or_any_agent`: Last updated by (`user_or_any_agent` ID) - `url`: URL (URL) - `urls_count`: Lead URL (integer)
          - `object_type` 'lead', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - LeadFileSearchField: A built-in field of `lead_file` objects.
          - `field_name` 'content_type' | 'created_by' | 'date_created' | 'date_updated' | 'is_pinned' | 'last_activity_at' | 'lead_id' | 'name' | 'size' | 'updated_by', required: Built-in fields of `lead_file` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `content_type`: Content Type (content type) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_pinned`: Is Pinned (boolean) - `last_activity_at`: Last Activity At (datetime) - `lead_id`: Lead (`lead` ID) - `name`: Name (text) - `size`: Size (integer) - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'lead_file', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - LeadSummarySearchField: A built-in field of `lead_summary` objects.
          - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'lead_id' | 'status' | 'summary_type' | 'text' | 'updated_by', required: Built-in fields of `lead_summary` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `lead_id`: Lead (`lead` ID) - `status`: Status (fixed value) - `summary_type`: Summary Type (fixed value) - `text`: text - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'lead_summary', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - OpportunitySearchField: A built-in field of `opportunity` objects.
          - `field_name` 'annualized_expected_value' | 'annualized_value' | 'confidence' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date_created' | 'date_lost' | 'date_updated' | 'date_won' | 'expected_value' | 'is_stalled' | 'lead_id' | 'note' | 'original_opportunity_status' | 'pipeline_id' | 'status_id' | 'status_type' | 'updated_by' | 'updated_by_agent_id' | 'updated_by_any_agent' | 'updated_by_user_or_any_agent' | 'user_id' | 'users' | 'value' | 'value_currency' | 'value_period', required: Built-in fields of `opportunity` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `annualized_expected_value`: Annualized expected value (number) - `annualized_value`: Value, annualized (number) - `confidence`: Confidence (integer) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date_created`: Date created (datetime) - `date_lost`: Date lost (datetime) - `date_updated`: Date last updated (datetime) - `date_won`: Close date (date) - `expected_value`: Expected value (number) - `is_stalled`: Needs attention (boolean) - `lead_id`: Lead (`lead` ID) - `note`: Note (text) - `original_opportunity_status`: Initial status (`status.opportunity` ID) - `pipeline_id`: Pipeline (`pipeline` ID) - `status_id`: Current status (`status.opportunity` ID) - `status_type`: Status type (one of `won`, `lost`, `active`) - `updated_by`: Last updated by (`user` ID) - `updated_by_agent_id`: Last updated by agent (`agent_config` ID) - `updated_by_any_agent`: `any_agent` ID - `updated_by_user_or_any_agent`: Last updated by (`user_or_any_agent` ID) - `user_id`: Assigned to (`user` ID) - `users`: `user` ID - `value`: Value (number) - `value_currency`: Value currency (fixed value) - `value_period`: Period (one of `one_time`, `monthly`, `annual`)
          - `object_type` 'opportunity', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - SavedSearchSearchField: A built-in field of `saved_search` objects.
          - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'is_shared' | 'name' | 'updated_by' | 'user_id', required: Built-in fields of `saved_search` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_shared`: Shared (boolean) - `name`: Name (text) - `updated_by`: Last updated by (`user` ID) - `user_id`: Owner (`user` ID)
          - `object_type` 'saved_search', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - SequenceSubscriptionSearchField: A built-in field of `sequence_subscription` objects.
          - `field_name` 'calls_assigned_to' | 'contact_id' | 'created_by' | 'date_created' | 'date_paused' | 'date_updated' | 'initial_email_id' | 'last_completed_step' | 'last_processed_step' | 'lead_id' | 'owner_id' | 'run_once' | 'sender_account_id' | 'sequence_id' | 'start_date' | 'status' | 'status_reason' | 'step_last_processed_at' | 'steps_completed' | 'time_to_goal' | 'updated_by', required: Built-in fields of `sequence_subscription` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `calls_assigned_to`: Calls assigned to (`user_or_group` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_paused`: Date paused (datetime) - `date_updated`: Date last updated (datetime) - `initial_email_id`: Initial email (`activity.email` ID) - `last_completed_step`: Last completed step (`sequence_step` ID) - `last_processed_step`: Last processed step (`sequence_step` ID) - `lead_id`: Lead (`lead` ID) - `owner_id`: Owner (`user` ID) - `run_once`: Run once (boolean) - `sender_account_id`: Sender account (`connected_account` ID) - `sequence_id`: Workflow (`sequence` ID) - `start_date`: Start date (datetime) - `status`: Status (one of `active`, `paused`, `finished`, `goal`, `error`) - `status_reason`: Status reason (one of `manual`, `pending-call-timed-out`, `bulk-action`, `rate-limited`, `sequence-deleted`, `workflow-paused`, `filter-not-matched`, `insufficient-ai-credit-balance`, `plan-not-supported`, `reply-received`, `call-answered`, `meeting-booked`, `lead-status-changed`, `outcome-met`, `account-invalid`, `account-failures`, `sending-throttled-too-long`, `membership-inactive`, `send-as-error`, `email-bounced`, `call-failed`, `sms-failed`, `no-user-phone`, `billing-error`, `assignment-field-invalid`, `lead-status-field-invalid`, `assignees-missing`, `run-as-disabled`, `lead-not-visible`, `internal-error`, `field-mapping-error`, `filter-config-invalid`, `email-ai-generation-failed`) - `step_last_processed_at`: Last processed step date (datetime) - `steps_completed`: Number of completed subscription steps (integer) - `time_to_goal`: Time to goal (integer) - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'sequence_subscription', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - SmsTemplateSearchField: A built-in field of `sms_template` objects.
          - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'is_shared' | 'name' | 'owned_by' | 'status' | 'updated_by', required: Built-in fields of `sms_template` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_shared`: Is Shared (boolean) - `name`: Name (text) - `owned_by`: Owned by (`user` ID) - `status`: Status (fixed value) - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'sms_template', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - StatusLeadSearchField: A built-in field of `status.lead` objects.
          - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'label' | 'updated_by', required: Built-in fields of `status.lead` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `label`: Status label (text) - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'status.lead', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - StatusOpportunitySearchField: A built-in field of `status.opportunity` objects.
          - `field_name` 'created_by' | 'date_created' | 'date_updated' | 'label' | 'updated_by', required: Built-in fields of `status.opportunity` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `label`: Status label (text) - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'status.opportunity', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - SubscriptionHistorySearchField: A built-in field of `subscription_history` objects.
          - `field_name` 'created_by' | 'date_created' | 'date_sent' | 'date_updated' | 'email_id' | 'lead_id' | 'sequence_subscription_id' | 'status' | 'step_id' | 'step_type' | 'subject' | 'template_id' | 'updated_by', required: Built-in fields of `subscription_history` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `created_by`: Created by (`user` ID) - `date_created`: Date created (datetime) - `date_sent`: datetime - `date_updated`: Date last updated (datetime) - `email_id`: Email (`activity.email` ID) - `lead_id`: Lead (`lead` ID) - `sequence_subscription_id`: Subscription (`sequence_subscription` ID) - `status`: History Status (fixed value) - `step_id`: Workflow Step (`sequence_step` ID) - `step_type`: Step Type (fixed value) - `subject`: text - `template_id`: `email_template` ID - `updated_by`: Last updated by (`user` ID)
          - `object_type` 'subscription_history', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskAnsweredDetachedCallSearchField: A built-in field of `task.answered_detached_call` objects.
          - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.answered_detached_call` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
          - `object_type` 'task.answered_detached_call', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskDraftEmailSearchField: A built-in field of `task.draft_email` objects.
          - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'sequence_id' | 'sequence_subscription_history_id' | 'sequence_subscription_id' | 'step_id' | 'updated_by' | 'view', required: Built-in fields of `task.draft_email` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `sequence_id`: Workflow (`sequence` ID) - `sequence_subscription_history_id`: Workflow Run History (`subscription_history` ID) - `sequence_subscription_id`: Workflow Run (`sequence_subscription` ID) - `step_id`: Workflow Step (`sequence_step` ID) - `updated_by`: Last updated by (`user` ID) - `view`: Inbox view (one of `inbox`, `future`, `archive`)
          - `object_type` 'task.draft_email', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskDraftSmsSearchField: A built-in field of `task.draft_sms` objects.
          - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'sequence_id' | 'sequence_subscription_history_id' | 'sequence_subscription_id' | 'step_id' | 'updated_by' | 'view', required: Built-in fields of `task.draft_sms` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `sequence_id`: Workflow (`sequence` ID) - `sequence_subscription_history_id`: Workflow Run History (`subscription_history` ID) - `sequence_subscription_id`: Workflow Run (`sequence_subscription` ID) - `step_id`: Workflow Step (`sequence_step` ID) - `updated_by`: Last updated by (`user` ID) - `view`: Inbox view (one of `inbox`, `future`, `archive`)
          - `object_type` 'task.draft_sms', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskEmailFollowupSearchField: A built-in field of `task.email_followup` objects.
          - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'email_id' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.email_followup` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `email_id`: Email (`activity.email` ID) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
          - `object_type` 'task.email_followup', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskIncomingEmailSearchField: A built-in field of `task.incoming_email` objects.
          - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'emails' | 'is_answered' | 'is_autoreply' | 'is_bounce' | 'is_cc_or_bcc' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'is_scheduling_email' | 'is_transactional' | 'lead_id' | 'object_type' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.incoming_email` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `emails`: Email (`activity.email` ID) - `is_answered`: boolean - `is_autoreply`: email is an autoreply (boolean) - `is_bounce`: email is a bounce notification (boolean) - `is_cc_or_bcc`: boolean - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `is_scheduling_email`: email is likely coordinating event scheduling (boolean) - `is_transactional`: email is likely transactional (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
          - `object_type` 'task.incoming_email', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskIncomingSmsSearchField: A built-in field of `task.incoming_sms` objects.
          - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_answered' | 'is_complete' | 'is_new' | 'is_opt_out' | 'is_primary_lead_notification' | 'lead_id' | 'local_phone' | 'object_type' | 'remote_phone' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.incoming_sms` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_answered`: boolean - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_opt_out`: boolean - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `local_phone`: Local phone (phone number) - `object_type`: Type of referenced object (fixed value) - `remote_phone`: Remote phone (phone number) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
          - `object_type` 'task.incoming_sms', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskIncomingWhatsappMessageSearchField: A built-in field of `task.incoming_whatsapp_message` objects.
          - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'local_phone' | 'object_type' | 'remote_phone' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.incoming_whatsapp_message` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: `user` ID - `contact_id`: `contact` ID - `created_by`: `user` ID - `date`: datetime - `date_created`: datetime - `date_updated`: datetime - `is_complete`: boolean - `is_new`: boolean - `is_primary_lead_notification`: boolean - `lead_id`: `lead` ID - `local_phone`: phone number - `object_type`: fixed value - `remote_phone`: phone number - `updated_by`: `user` ID - `user_id`: `user` ID - `users`: `user` ID - `view`: one of `inbox`, `future`, `archive`
          - `object_type` 'task.incoming_whatsapp_message', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskLeadSearchField: A built-in field of `task.lead` objects.
          - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date' | 'date_created' | 'date_updated' | 'due_date' | 'is_complete' | 'is_dateless' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'priority' | 'text' | 'updated_by' | 'updated_by_agent_id' | 'updated_by_any_agent' | 'updated_by_user_or_any_agent' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.lead` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `due_date`: Date due (datetime) - `is_complete`: Complete (boolean) - `is_dateless`: Has a date (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `priority`: Priority (one of `high`, `medium`) - `text`: Task description (text) - `updated_by`: Last updated by (`user` ID) - `updated_by_agent_id`: Last updated by agent (`agent_config` ID) - `updated_by_any_agent`: `any_agent` ID - `updated_by_user_or_any_agent`: Last updated by (`user_or_any_agent` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
          - `object_type` 'task.lead', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskLeadSuggestionIncomingEmailSearchField: A built-in field of `task.lead_suggestion_incoming_email` objects.
          - `field_name` 'assigned_to' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'updated_by' | 'user_id' | 'view', required: Built-in fields of `task.lead_suggestion_incoming_email` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: `user` ID - `created_by`: `user` ID - `date`: datetime - `date_created`: datetime - `date_updated`: datetime - `is_complete`: boolean - `is_new`: boolean - `is_primary_lead_notification`: boolean - `lead_id`: `lead` ID - `object_type`: fixed value - `updated_by`: `user` ID - `user_id`: `user` ID - `view`: one of `inbox`, `future`, `archive`
          - `object_type` 'task.lead_suggestion_incoming_email', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskMissedCallSearchField: A built-in field of `task.missed_call` objects.
          - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'local_phone' | 'object_type' | 'phone' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.missed_call` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `local_phone`: Local phone (phone number) - `object_type`: Type of referenced object (fixed value) - `phone`: Phone (phone number) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
          - `object_type` 'task.missed_call', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskOpportunitiesAwaitingActionSearchField: A built-in field of `task.opportunities_awaiting_action` objects.
          - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'opportunity_id' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.opportunities_awaiting_action` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `opportunity_id`: Opportunity (`opportunity` ID) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
          - `object_type` 'task.opportunities_awaiting_action', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskOpportunityDueSearchField: A built-in field of `task.opportunity_due` objects.
          - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_datetime' | 'is_deleted' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'membership' | 'object_type' | 'opportunity_note' | 'opportunity_value' | 'opportunity_value_period' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.opportunity_due` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_datetime`: boolean - `is_deleted`: boolean - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `membership`: `membership` ID - `object_type`: Type of referenced object (fixed value) - `opportunity_note`: text - `opportunity_value`: integer - `opportunity_value_period`: one of `one_time`, `monthly`, `annual` - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
          - `object_type` 'task.opportunity_due', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskOutboundCallSearchField: A built-in field of `task.outbound_call` objects.
          - `field_name` 'agent_config_id' | 'any_agent' | 'assigned_to' | 'contact_id' | 'created_by' | 'created_by_agent_id' | 'created_by_any_agent' | 'created_by_user_or_any_agent' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'priority' | 'sequence_id' | 'step_id' | 'text' | 'updated_by' | 'user_or_agent' | 'user_or_any_agent' | 'view', required: Built-in fields of `task.outbound_call` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `agent_config_id`: Agent Config (`agent_config` ID) - `any_agent`: `any_agent` ID - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `created_by_agent_id`: Created by agent (`agent_config` ID) - `created_by_any_agent`: `any_agent` ID - `created_by_user_or_any_agent`: Created by (`user_or_any_agent` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `priority`: Priority (one of `high`, `medium`) - `sequence_id`: Workflow (`sequence` ID) - `step_id`: Workflow Step (`sequence_step` ID) - `text`: Task description (text) - `updated_by`: Last updated by (`user` ID) - `user_or_agent`: User or Agent (`user_or_any_agent` ID) - `user_or_any_agent`: Assigned User or Agent (`user_or_any_agent` ID) - `view`: Inbox view (one of `inbox`, `future`, `archive`)
          - `object_type` 'task.outbound_call', required: The object type the field belongs to.
          - `type` 'regular_field', required
        - TaskVoicemailSearchField: A built-in field of `task.voicemail` objects.
          - `field_name` 'assigned_to' | 'contact_id' | 'created_by' | 'date' | 'date_created' | 'date_updated' | 'is_complete' | 'is_new' | 'is_primary_lead_notification' | 'lead_id' | 'object_type' | 'updated_by' | 'user_id' | 'users' | 'view', required: Built-in fields of `task.voicemail` objects and their value types. The value type decides which conditions apply, see `FieldCondition`. For `... ID` fields, use a `reference` condition with that `reference_type`. - `assigned_to`: Assigned to (`user` ID) - `contact_id`: Contact (`contact` ID) - `created_by`: Created by (`user` ID) - `date`: Due date (datetime) - `date_created`: Date created (datetime) - `date_updated`: Date last updated (datetime) - `is_complete`: Complete (boolean) - `is_new`: Not archived (boolean) - `is_primary_lead_notification`: For the primary lead (boolean) - `lead_id`: Lead (`lead` ID) - `object_type`: Type of referenced object (fixed value) - `updated_by`: Last updated by (`user` ID) - `user_id`: `user` ID - `users`: `user` ID - `view`: Inbox view (one of `inbox`, `future`, `archive`)
          - `object_type` 'task.voicemail', required: The object type the field belongs to.
          - `type` 'regular_field', required
      - CustomSearchField: A custom field, referenced by its ID. Works for Lead, Contact, Opportunity, Activity and Custom Object custom fields as well as shared custom fields.
        - `custom_field_id` string, required: ID of the custom field, e.g. `cf_abc123`.
        - `type` 'custom_field', required
      - FormFieldSearchField: A field of a form submission, referenced by its ID.
        - `form_field_id` string, required: ID of the form field.
        - `type` 'form_field', required

## Response `200`

Successful response

- DataSearchResponse
  - `count` SearchResultCount
    - `limited` integer, required: Number of matching objects available through pagination, i.e. `total` capped at `results_limit`.
    - `total` integer, required: Number of objects matching the query.
  - `cursor` string, nullable, required: Pass it as `cursor` to get the next page. `null` on the last page.
  - `data` SearchResult[], required: The matching objects on this page.
    - union
      - LeadSearchResult: A Lead. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'lead', required: The type of the object.
        - `addresses` LeadAddress[]
          - `address_1` string, nullable, required
          - `address_2` string, nullable, required
          - `city` string, nullable, required
          - `country` string, nullable, required
          - `label` string, nullable, required
          - `state` string, nullable, required
          - `tz_ids` string[]
          - `zipcode` string, nullable, required
        - `contact_ids` string[]
        - `contacts` Contact[]
          - `created_by` string, nullable, required: ID of the user who created the contact, e.g. `user_N6KhMpzHRCYQHdn4gRNIFNN5JExnsrprKA6ekxM63XA`
          - `created_by_agent_id` string, nullable: ID of the agent that created the contact, or null if no agent created it
          - `date_created` string, date-time, required: When the contact was created, as an ISO 8601 timestamp in UTC
          - `date_updated` string, date-time, required: When the contact was last updated, as an ISO 8601 timestamp in UTC
          - `display_name` string, required: Name to display for the contact: the contact's `name` if set, otherwise the first email address, then the first phone number in international format, then `Unnamed`
          - `emails` ContactEmail[]: Email addresses of the contact
            - `email` string, required: Email address
            - `is_unsubscribed` boolean, required: Whether this email address has unsubscribed from bulk and workflow emails sent from Close
            - `type` string, required: Label for the email address, e.g. `office`, `home`, or `other`
          - `id` string, required: The contact's ID, e.g. `cont_q4xYmlGhA3060dEl0NDJuHRxPMuVjqLn30AFSzh1fRk`
          - `integration_links` RenderedIntegrationLink[]: The organization's contact integration links, rendered with this contact's data
            - `name` string, required: The name or label
            - `url` string, required: Link URL, with its template placeholders filled in from the object's data
          - `lead_id` string, nullable: The owning lead's ID, e.g. `lead_etYl6PwL12hkj14567kjolJwZuZehb9b85EDH9CKuAI`. Every contact belongs to exactly one lead. Always returned, even when not requested in `_fields`.
          - `name` string, nullable, required: Full name of the contact, or null if unnamed
          - `organization_id` string, required: The owning organization's ID, e.g. `orga_RbREgmiiwcr1w2b4cOnCMQaQPSIFxMqAD2Dh243uxcH`
          - `phones` ContactPhone[]: Phone numbers of the contact
            - `country` string, nullable: Country code inferred from the phone number in ISO 3166-1 alpha-2 format, e.g. `US`
            - `phone` string, required: Phone number in E.164 format, e.g. `+16503334444`
            - `phone_formatted` string: Phone number formatted for display, with the country code, e.g. `+1 650-333-4444`
            - `type` string, required: Label for the phone number, e.g. `office`, `mobile`, or `home`
          - `timezone` string, nullable: IANA timezone ID of the contact, e.g. `America/New_York`. Set manually, or else inferred from the contact's phone numbers. Null if neither is available. See `timezone_source`.
          - `timezone_source` string, nullable: Where `timezone` came from: `manual` if set explicitly, `inferred_from_phone_number` if derived from the contact's phone numbers, or null if `timezone` is null
          - `title` string, nullable, required: Job title of the contact, e.g. `CEO`, or null if unset
          - `updated_by` string, nullable, required: ID of the user who last updated the contact, e.g. `user_N6KhMpzHRCYQHdn4gRNIFNN5JExnsrprKA6ekxM63XA`
          - `updated_by_agent_id` string, nullable: ID of the agent that last updated the contact, or null if the last update wasn't made by an agent
          - `urls` ContactUrl[]: URLs associated with the contact
            - `type` string, required: Label for the URL, e.g. `url`
            - `url` string, required: The URL
        - `contacts_summary` string
        - `created_by` string, nullable
        - `created_by_agent_id` string, nullable: ID of the agent that created the lead, or null if no agent created it.
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `description` string, nullable
        - `display_name` string
        - `html_url` string
        - `id` string
        - `integration_links` RenderedIntegrationLink[]
          - `name` string, required: The name or label
          - `url` string, required: Link URL, with its template placeholders filled in from the object's data
        - `localtime` string, date-time, nullable
        - `name` string, nullable
        - `opportunities` Opportunity[]
          - `annualized_expected_value` integer, nullable, required: Annualized expected value in cents.
          - `annualized_value` integer, nullable, required: Annualized value in cents.
          - `attachments` Attachment[]
            - `content_id` string, nullable: MIME Content-ID field, referenced from the body HTML as a `cid:` link
            - `content_type` string, nullable, required
            - `filename` string, nullable, required
            - `inline_only` boolean: Whether the attachment is embedded in the body HTML (e.g. a signature logo) rather than being standalone
            - `size` integer, nullable, required
            - `thumbnail_url` string, nullable
            - `url` string, required
          - `comment_summary` CommentSummary
            - `comment_count` integer, required
            - `thread_id` string, required
          - `confidence` integer, required
          - `contact_id` string, nullable, required
          - `contact_name` string, nullable
          - `created_by` string, nullable, required
          - `created_by_agent_id` string, nullable: ID of the agent that created the opportunity, or null if no agent created it.
          - `created_by_name` string, nullable
          - `date_created` string, date-time, required
          - `date_lost` string, date-time, nullable, required
          - `date_updated` string, date-time, required
          - `date_won` string, date, nullable, required
          - `expected_value` integer, nullable, required: Value multiplied by confidence, in cents.
          - `id` string, required
          - `integration_links` RenderedIntegrationLink[]
            - `name` string, required: The name or label
            - `url` string, required: Link URL, with its template placeholders filled in from the object's data
          - `is_stalled` boolean
          - `lead_id` string, required
          - `lead_name` string, nullable
          - `lead_primary_email` ContactEmail
            - `email` string, required: Email address
            - `is_unsubscribed` boolean, required: Whether this email address has unsubscribed from bulk and workflow emails sent from Close
            - `type` string, required: Label for the email address, e.g. `office`, `home`, or `other`
          - `lead_primary_phone` ContactPhone[], nullable
            - `country` string, nullable: Country code inferred from the phone number in ISO 3166-1 alpha-2 format, e.g. `US`
            - `phone` string, required: Phone number in E.164 format, e.g. `+16503334444`
            - `phone_formatted` string: Phone number formatted for display, with the country code, e.g. `+1 650-333-4444`
            - `type` string, required: Label for the phone number, e.g. `office`, `mobile`, or `home`
          - `note` string, nullable, required
          - `note_html` string, nullable, required
          - `organization_id` string, required
          - `pipeline_id` string, nullable
          - `pipeline_name` string, nullable
          - `stall_status` StalledOpportunityActionItems
            - `communication_issue` 'no_issue' | 'cant_get_in_touch' | 'no_communication_attempts', required: Why communication on a stalled Opportunity has stalled, or `no_issue`.
            - `next_action` ActionItem, required
              - …
          - `status_display_name` string
          - `status_id` string, required
          - `status_label` string
          - `status_type` 'won' | 'lost' | 'active': Type of an Opportunity Status: `active` for open Opportunities, `won` or `lost` for closed ones.
          - `suggested_action` OpportunitySuggestedAction
            - `action` 'change_status' | 'adjust_close_date' | 'follow_up_email' | 'follow_up_call' | 'follow_up_sms', required: A suggested next step for a stalled Opportunity.
            - `details` union, required
              - …
            - `justification` string, required
          - `updated_by` string, nullable, required
          - `updated_by_agent_id` string, nullable: ID of the agent that last updated the opportunity, or null if the last update wasn't made by an agent.
          - `updated_by_name` string, nullable
          - `user_id` string, required
          - `user_name` string, nullable
          - `value` integer, nullable, required: Monetary value of the opportunity in cents, e.g. `340000` for $3,400.00. See `value_formatted` for a human-readable version.
          - `value_currency` string, nullable
          - `value_formatted` string, nullable
          - `value_period` 'one_time' | 'monthly' | 'annual', required: How often the Opportunity's value is paid: `one_time`, `monthly` or `annual`.
        - `organization_id` string
        - `primary_address_full` string, nullable
        - `primary_address_summary` string, nullable
        - `primary_email` ContactEmail
          - `email` string, required: Email address
          - `is_unsubscribed` boolean, required: Whether this email address has unsubscribed from bulk and workflow emails sent from Close
          - `type` string, required: Label for the email address, e.g. `office`, `home`, or `other`
        - `primary_phone` ContactPhone
          - `country` string, nullable: Country code inferred from the phone number in ISO 3166-1 alpha-2 format, e.g. `US`
          - `phone` string, required: Phone number in E.164 format, e.g. `+16503334444`
          - `phone_formatted` string: Phone number formatted for display, with the country code, e.g. `+1 650-333-4444`
          - `type` string, required: Label for the phone number, e.g. `office`, `mobile`, or `home`
        - `status_id` string
        - `status_label` string
        - `tasks` object[]
        - `updated_by` string, nullable
        - `updated_by_agent_id` string, nullable: ID of the agent that last updated the lead, or null if the last update wasn't made by an agent.
        - `updated_by_name` string, nullable
        - `url` string, nullable
      - ContactSearchResult: A Contact. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'contact', required: The type of the object.
        - `created_by` string, nullable: ID of the user who created the contact, e.g. `user_N6KhMpzHRCYQHdn4gRNIFNN5JExnsrprKA6ekxM63XA`
        - `created_by_agent_id` string, nullable: ID of the agent that created the contact, or null if no agent created it
        - `date_created` string, date-time: When the contact was created, as an ISO 8601 timestamp in UTC
        - `date_updated` string, date-time: When the contact was last updated, as an ISO 8601 timestamp in UTC
        - `display_name` string: Name to display for the contact: the contact's `name` if set, otherwise the first email address, then the first phone number in international format, then `Unnamed`
        - `emails` ContactEmail[]: Email addresses of the contact
          - `email` string, required: Email address
          - `is_unsubscribed` boolean, required: Whether this email address has unsubscribed from bulk and workflow emails sent from Close
          - `type` string, required: Label for the email address, e.g. `office`, `home`, or `other`
        - `id` string: The contact's ID, e.g. `cont_q4xYmlGhA3060dEl0NDJuHRxPMuVjqLn30AFSzh1fRk`
        - `integration_links` RenderedIntegrationLink[]: The organization's contact integration links, rendered with this contact's data
          - `name` string, required: The name or label
          - `url` string, required: Link URL, with its template placeholders filled in from the object's data
        - `lead_id` string, nullable: The owning lead's ID, e.g. `lead_etYl6PwL12hkj14567kjolJwZuZehb9b85EDH9CKuAI`. Every contact belongs to exactly one lead. Always returned, even when not requested in `_fields`.
        - `name` string, nullable: Full name of the contact, or null if unnamed
        - `organization_id` string: The owning organization's ID, e.g. `orga_RbREgmiiwcr1w2b4cOnCMQaQPSIFxMqAD2Dh243uxcH`
        - `phones` ContactPhone[]: Phone numbers of the contact
          - `country` string, nullable: Country code inferred from the phone number in ISO 3166-1 alpha-2 format, e.g. `US`
          - `phone` string, required: Phone number in E.164 format, e.g. `+16503334444`
          - `phone_formatted` string: Phone number formatted for display, with the country code, e.g. `+1 650-333-4444`
          - `type` string, required: Label for the phone number, e.g. `office`, `mobile`, or `home`
        - `timezone` string, nullable: IANA timezone ID of the contact, e.g. `America/New_York`. Set manually, or else inferred from the contact's phone numbers. Null if neither is available. See `timezone_source`.
        - `timezone_source` string, nullable: Where `timezone` came from: `manual` if set explicitly, `inferred_from_phone_number` if derived from the contact's phone numbers, or null if `timezone` is null
        - `title` string, nullable: Job title of the contact, e.g. `CEO`, or null if unset
        - `updated_by` string, nullable: ID of the user who last updated the contact, e.g. `user_N6KhMpzHRCYQHdn4gRNIFNN5JExnsrprKA6ekxM63XA`
        - `updated_by_agent_id` string, nullable: ID of the agent that last updated the contact, or null if the last update wasn't made by an agent
        - `urls` ContactUrl[]: URLs associated with the contact
          - `type` string, required: Label for the URL, e.g. `url`
          - `url` string, required: The URL
      - OpportunitySearchResult: An Opportunity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'opportunity', required: The type of the object.
        - `annualized_expected_value` integer, nullable: Annualized expected value in cents.
        - `annualized_value` integer, nullable: Annualized value in cents.
        - `attachments` Attachment[]
          - `content_id` string, nullable: MIME Content-ID field, referenced from the body HTML as a `cid:` link
          - `content_type` string, nullable, required
          - `filename` string, nullable, required
          - `inline_only` boolean: Whether the attachment is embedded in the body HTML (e.g. a signature logo) rather than being standalone
          - `size` integer, nullable, required
          - `thumbnail_url` string, nullable
          - `url` string, required
        - `confidence` integer
        - `contact_id` string, nullable
        - `contact_name` string, nullable
        - `created_by` string, nullable
        - `created_by_agent_id` string, nullable: ID of the agent that created the opportunity, or null if no agent created it.
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_lost` string, date-time, nullable
        - `date_updated` string, date-time
        - `date_won` string, date, nullable
        - `expected_value` integer, nullable: Value multiplied by confidence, in cents.
        - `id` string
        - `integration_links` RenderedIntegrationLink[]
          - `name` string, required: The name or label
          - `url` string, required: Link URL, with its template placeholders filled in from the object's data
        - `is_stalled` boolean
        - `lead_id` string
        - `lead_name` string, nullable
        - `lead_primary_email` ContactEmail
          - `email` string, required: Email address
          - `is_unsubscribed` boolean, required: Whether this email address has unsubscribed from bulk and workflow emails sent from Close
          - `type` string, required: Label for the email address, e.g. `office`, `home`, or `other`
        - `lead_primary_phone` ContactPhone[], nullable
          - `country` string, nullable: Country code inferred from the phone number in ISO 3166-1 alpha-2 format, e.g. `US`
          - `phone` string, required: Phone number in E.164 format, e.g. `+16503334444`
          - `phone_formatted` string: Phone number formatted for display, with the country code, e.g. `+1 650-333-4444`
          - `type` string, required: Label for the phone number, e.g. `office`, `mobile`, or `home`
        - `note` string, nullable
        - `note_html` string, nullable
        - `organization_id` string
        - `pipeline_id` string, nullable
        - `pipeline_name` string, nullable
        - `stall_status` StalledOpportunityActionItems
          - `communication_issue` 'no_issue' | 'cant_get_in_touch' | 'no_communication_attempts', required: Why communication on a stalled Opportunity has stalled, or `no_issue`.
          - `next_action` ActionItem, required
            - `action` 'mark_as_lost' | 'change_status' | 'follow_up' | 'adjust_close_date' | 'ask_someone_else_to_reach_out' | 'change_communication_method', required: Deprecated. A suggested next step for a stalled Opportunity.
            - `justification` string, required: A short justification for the recommended action in the sales pipeline. Maximum 2 sentences.
        - `status_display_name` string
        - `status_id` string
        - `status_label` string
        - `status_type` 'won' | 'lost' | 'active': Type of an Opportunity Status: `active` for open Opportunities, `won` or `lost` for closed ones.
        - `suggested_action` OpportunitySuggestedAction
          - `action` 'change_status' | 'adjust_close_date' | 'follow_up_email' | 'follow_up_call' | 'follow_up_sms', required: A suggested next step for a stalled Opportunity.
          - `details` union, required
            - OpportunityChangeStatusActionDetails
              - …
            - OpportunityFollowUpEmailActionDetails
              - …
            - OpportunityFollowUpSMSActionDetails
              - …
            - OpportunityFollowUpCallActionDetails
              - …
            - OpportunityAdjustCloseDateActionDetails
              - …
          - `justification` string, required
        - `updated_by` string, nullable
        - `updated_by_agent_id` string, nullable: ID of the agent that last updated the opportunity, or null if the last update wasn't made by an agent.
        - `updated_by_name` string, nullable
        - `user_id` string
        - `user_name` string, nullable
        - `value` integer, nullable: Monetary value of the opportunity in cents, e.g. `340000` for $3,400.00. See `value_formatted` for a human-readable version.
        - `value_currency` string, nullable
        - `value_formatted` string, nullable
        - `value_period` 'one_time' | 'monthly' | 'annual': How often the Opportunity's value is paid: `one_time`, `monthly` or `annual`.
      - CallSearchResult: A Call activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.call', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `contact_id` string, nullable
        - `created_by` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `id` string
        - `lead_id` string, nullable
        - `organization_id` string
        - `outcome_id` string, nullable
        - `sequence_id` string, nullable
        - `sequence_name` string, nullable
        - `sequence_subscription_id` string, nullable
        - `source` 'Close.io' | 'External': Source of a phone activity. Describes whether the phone activity (such as a call or an SMS) was handled by Close's telephony provider or handled externally by a 3rd party and is merely logged in Close.
        - `status` 'created' | 'in-progress' | 'completed' | 'cancel' | 'no-answer' | 'busy' | 'failed' | 'timeout': Current status of the call.
        - `updated_by` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `users` string[]
      - CreatedSearchResult: A Lead creation activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.created', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `contact_id` string, nullable
        - `created_by` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `id` string
        - `import_id` string, nullable
        - `lead_id` string, nullable
        - `organization_id` string
        - `source` 'ui' | 'api' | 'import' | 'clipper' | 'email' | 'suggestion' | 'segment-integration' | 'customerio-integration' | 'calendly-integration' | 'ai' | 'whatsapp' | 'webform': How the object was created, e.g. `ui` in the Close app, `api` through the API, `import` by a bulk import, or by an integration.
        - `updated_by` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `users` string[]
      - CustomActivitySearchResult: A Custom Activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.custom_activity', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `contact_id` string, nullable
        - `created_by` string, nullable
        - `created_by_agent_id` string, nullable
        - `created_by_name` string, nullable
        - `custom_activity_type_id` string
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `id` string
        - `last_published_at` string, date-time, nullable
        - `lead_id` string, nullable
        - `mentions` string[]
        - `mentions_updated_at` string, date-time, nullable
        - `organization_id` string
        - `pinned` boolean
        - `pinned_at` string, date-time, nullable
        - `source` 'ui' | 'api' | 'import' | 'clipper' | 'email' | 'suggestion' | 'segment-integration' | 'customerio-integration' | 'calendly-integration' | 'ai' | 'whatsapp' | 'webform': How the object was created, e.g. `ui` in the Close app, `api` through the API, `import` by a bulk import, or by an integration.
        - `status` 'draft' | 'published': Status of a Custom Activity. `draft` activities don't require their required fields to be filled in yet.
        - `updated_by` string, nullable
        - `updated_by_agent_id` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `users` string[]
      - EmailSearchResult: An Email activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.email', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `agent_action_reason` string, nullable
        - `agent_config_id` string, nullable: Deprecated. Use `created_by_agent_id` instead.
        - `attachments` Attachment[], nullable
          - `content_id` string, nullable: MIME Content-ID field, referenced from the body HTML as a `cid:` link
          - `content_type` string, nullable, required
          - `filename` string, nullable, required
          - `inline_only` boolean: Whether the attachment is embedded in the body HTML (e.g. a signature logo) rather than being standalone
          - `size` integer, nullable, required
          - `thumbnail_url` string, nullable
          - `url` string, required
        - `bcc` string[]
        - `body_html` string, nullable
        - `body_preview` string, nullable
        - `body_text` string, nullable
        - `bulk_email_action_id` string, nullable
        - `cc` string[]
        - `contact_id` string, nullable
        - `created_by` string, nullable
        - `created_by_agent_id` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_scheduled` string, date-time, nullable
        - `date_sent` string, date-time, nullable
        - `date_updated` string, date-time
        - `direction` 'incoming' | 'outgoing': Direction of communication. Outgoing means the communication flowing from the user to the lead/contact. Inbound means the opposite.
        - `email_account_id` string, nullable
        - `envelope` object, nullable
        - `followup_sequence_add_cc_bcc` boolean
        - `followup_sequence_delay` integer, nullable
        - `followup_sequence_id` string, nullable
        - `has_reply` boolean
        - `id` string
        - `in_reply_to_id` string, nullable
        - `lead_id` string, nullable
        - `message_ids` string[]
        - `need_smtp_credentials` boolean
        - `opens` EmailOpen[], nullable
          - `ip_address` string, nullable, required
          - `opened_at` string, date-time, required
          - `opened_by` string, nullable, required
          - `user_agent` string, nullable, required
        - `opens_summary` string, nullable
        - `organization_id` string
        - `references` string[]
        - `send_as_id` string, nullable
        - `send_attempts` SendAttempt[], nullable
          - `date` string, required
          - `error_class` string, nullable, required
          - `error_message` string, required
        - `sender` string, nullable
        - `sequence_id` string, nullable
        - `sequence_name` string, nullable
        - `sequence_subscription_id` string, nullable
        - `status` 'inbox' | 'draft' | 'scheduled' | 'outbox' | 'sent' | 'error': Status of a message, such as Email or SMS.
        - `subject` string, nullable
        - `template_id` string, nullable
        - `template_name` string, nullable
        - `thread_id` string, nullable
        - `to` string[]
        - `updated_by` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `users` string[]
      - EmailThreadSearchResult: An Email Thread activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.email_thread', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `contact_id` string, nullable
        - `created_by` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `id` string
        - `importance` union
          - ImportantEmailThread
            - `reason` 'manual' | 'contains-manual-message' | 'most-recent-communication' | 'has-response' | 'whitelisted' | 'by-default' | 'unset-initial-default', required: Why an Email Thread is considered important.
            - `type` 'important', required
          - NotImportantEmailThread
            - `reason` 'manual' | 'scheduling-emails' | 'automated-outbound' | 'marketing-or-transactional' | 'by-default', required: Why an Email Thread is considered not important.
            - `type` 'not_important', required
        - `latest_emails` EmailPreview[]
          - `bcc` string[], required
          - `body_preview` string, nullable, required
          - `cc` string[], required
          - `date_created` string, date-time, required
          - `date_sent` string, date-time, nullable, required
          - `date_updated` string, date-time, required
          - `direction` 'incoming' | 'outgoing', required: Direction of communication. Outgoing means the communication flowing from the user to the lead/contact. Inbound means the opposite.
          - `envelope` EmailEnvelope, required
            - `bcc` EmailIdentity[], required
              - …
            - `cc` EmailIdentity[], required
              - …
            - `date` string, nullable, required
            - `from` EmailIdentity[], required
              - …
            - `in_reply_to` string, nullable, required
            - `is_autoreply` boolean, required
            - `message_id` string, nullable, required
            - `reply_to` EmailIdentity[], required
              - …
            - `sender` EmailIdentity[], required
              - …
            - `subject` string, nullable, required
            - `to` EmailIdentity[], required
              - …
          - `has_attachments` boolean, nullable, required
          - `id` string, nullable, required
          - `opens_summary` string, nullable, required
          - `send_as_id` string, nullable, required
          - `sender` string, nullable, required
          - `status` 'inbox' | 'draft' | 'scheduled' | 'outbox' | 'sent' | 'error', required: Status of a message, such as Email or SMS.
          - `subject` string, nullable, required
          - `to` string[], required
          - `user_id` string, nullable, required
        - `latest_normalized_subject` string, nullable
        - `lead_id` string, nullable
        - `n_emails` integer, nullable
        - `organization_id` string
        - `participants` EmailIdentity[]
          - `email` string, required
          - `name` string, required
        - `summary` EmailThreadSummary
          - `expired_at` string, date-time, nullable, required
          - `feedback` EmailThreadSummaryFeedback
            - `detail` string, nullable, required
            - `given_at` string, date-time, required
            - `rating` 'positive' | 'negative', required: A user's rating of an AI summary.
          - `generated_at` string, date-time, nullable, required
          - `status` 'pending' | 'success' | 'failure' | 'expired', required: Status of an AI summary. `expired` means newer activity made the summary out of date.
          - `summary_html` string, nullable, required
          - `summary_text` string, nullable, required
          - `updated_at` string, date-time, required
        - `updated_by` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `users` string[]
      - FormSubmissionSearchResult: A Form Submission activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.form_submission', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `contact_id` string, nullable
        - `created_by` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `form_configuration_id` string
        - `form_id` string
        - `id` string
        - `ip_address` string, nullable
        - `lead_id` string, nullable
        - `organization_id` string
        - `origin` string, nullable
        - `source_url` string, nullable
        - `source_url_normalized` string, nullable
        - `updated_by` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `values` object
      - ImportUpdateSearchResult: An import update activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.import_update', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `contact_id` string, nullable
        - `created_by` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `id` string
        - `import_id` string, nullable
        - `lead_id` string, nullable
        - `organization_id` string
        - `reverted` boolean
        - `updated_by` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `users` string[]
      - LeadMergeSearchResult: A Lead merge activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.lead_merge', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `contact_id` string, nullable
        - `created_by` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `destination_display_name` string, nullable
        - `destination_lead_id` string
        - `error_message` string, nullable
        - `id` string
        - `lead_id` string, nullable
        - `merge_status` 'pending' | 'in_progress' | 'completed' | 'errored': Progress of a Lead merge.
        - `organization_id` string
        - `source_display_name` string, nullable
        - `source_lead_id` string
        - `updated_by` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `users` string[]
      - LeadStatusChangeSearchResult: A Lead Status change activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.lead_status_change', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `contact_id` string, nullable
        - `created_by` string, nullable
        - `created_by_agent_id` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `id` string
        - `lead_id` string, nullable
        - `new_status_id` string
        - `new_status_label` string
        - `old_status_id` string
        - `old_status_label` string
        - `organization_id` string
        - `updated_by` string, nullable
        - `updated_by_agent_id` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `users` string[]
      - MeetingSearchResult: A Meeting activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.meeting', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `actual_duration` integer, nullable
        - `agent_config_id` string, nullable: Deprecated. Use `created_by_agent_id` instead.
        - `attached_call_ids` string[]
        - `attendees` MeetingAttendee[]
          - `contact_id` string, nullable, required
          - `email` string, nullable, required
          - `is_organizer` boolean, nullable, required
          - `name` string, nullable, required
          - `status` string, nullable, required
          - `user_id` string, nullable, required
        - `calendar_event_link` string, nullable
        - `calendar_event_uids` string[]
        - `conference_links` MeetingConferenceLink[]
          - `type` 'ZOOM' | 'GOOGLE_MEET' | 'GOOGLE_HANGOUTS' | 'MICROSOFT_TEAMS' | 'SKYPE' | 'WEBEX' | 'GO_TO_MEETING', required: The video conferencing service of a Meeting's link.
          - `url` string, required
        - `connected_account_id` string, nullable
        - `contact_id` string, nullable
        - `conversation_type_id` string, nullable
        - `conversation_type_reason` 'user-selected' | 'autodetected': How the value was chosen: `user-selected` by a user, or `autodetected` by AI.
        - `created_by` string, nullable
        - `created_by_agent_id` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `duration` integer
        - `ends_at` string, date-time
        - `id` string
        - `integrations` object[]
        - `is_recurring` boolean
        - `lead_id` string, nullable
        - `location` string
        - `note` string
        - `notetaker_id` string, nullable
        - `organization_id` string
        - `outcome_autofill_confidence` 'low' | 'medium' | 'high': How confident AI was in an Outcome it autofilled.
        - `outcome_autofill_reasoning` string, nullable
        - `outcome_id` string, nullable
        - `outcome_reason` 'autofilled' | 'user-selected' | 'voicemail-dropped': How the Outcome was set: `autofilled` by AI, `user-selected` by a user, or `voicemail-dropped` automatically after a voicemail drop.
        - `playbook_id` string, nullable
        - `playbook_reason` 'user-selected' | 'autodetected': How the value was chosen: `user-selected` by a user, or `autodetected` by AI.
        - `provider_calendar_event_id` string, nullable
        - `provider_calendar_ids` string[]
        - `provider_calendar_type` 'google' | 'microsoft': The calendar provider a Meeting was synced from.
        - `source` 'calendar' | 'manual': How the Meeting got into Close: `calendar` if it was synced from a connected calendar, `manual` if it was created in Close.
        - `starts_at` string, date-time
        - `status` 'upcoming' | 'in-progress' | 'completed' | 'canceled' | 'declined-by-org' | 'declined-by-lead': Status of the Meeting. `canceled` means it was removed from the synced calendars or has no Lead participants left. `declined-by-org` means every Close user declined it, `declined-by-lead` that a Lead participant declined it and none accepted.
        - `summary` MeetingSummary
          - `html` string, required
          - `text` string, required
        - `title` string
        - `updated_by` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `user_note` string, nullable
        - `user_note_date_updated` string, date-time, nullable
        - `user_note_html` string, nullable
        - `user_note_mentions` string[]
        - `users` string[]
      - NoteSearchResult: A Note activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.note', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `agent_action_reason` string, nullable
        - `agent_config_id` string, nullable: Deprecated. Use `created_by_agent_id` instead.
        - `attachments` Attachment[]
          - `content_id` string, nullable: MIME Content-ID field, referenced from the body HTML as a `cid:` link
          - `content_type` string, nullable, required
          - `filename` string, nullable, required
          - `inline_only` boolean: Whether the attachment is embedded in the body HTML (e.g. a signature logo) rather than being standalone
          - `size` integer, nullable, required
          - `thumbnail_url` string, nullable
          - `url` string, required
        - `contact_id` string, nullable
        - `created_by` string, nullable
        - `created_by_agent_id` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `id` string
        - `lead_id` string, nullable
        - `note` string
        - `note_html` string
        - `note_mentions` string[]
        - `organization_id` string
        - `pinned` boolean
        - `pinned_at` string, date-time, nullable
        - `source` 'ui' | 'api' | 'import' | 'clipper' | 'email' | 'suggestion' | 'segment-integration' | 'customerio-integration' | 'calendly-integration' | 'ai' | 'whatsapp' | 'webform': How the object was created, e.g. `ui` in the Close app, `api` through the API, `import` by a bulk import, or by an integration.
        - `title` string, nullable
        - `updated_by` string, nullable
        - `updated_by_agent_id` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `users` string[]
      - OpportunityStatusChangeSearchResult: An Opportunity Status change activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.opportunity_status_change', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `contact_id` string, nullable
        - `created_by` string, nullable
        - `created_by_agent_id` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `id` string
        - `lead_id` string, nullable
        - `new_pipeline_id` string
        - `new_pipeline_name` string
        - `new_status_id` string
        - `new_status_label` string
        - `new_status_type` 'won' | 'lost' | 'active': Type of an Opportunity Status: `active` for open Opportunities, `won` or `lost` for closed ones.
        - `old_pipeline_id` string
        - `old_pipeline_name` string
        - `old_status_id` string
        - `old_status_label` string
        - `old_status_type` 'won' | 'lost' | 'active': Type of an Opportunity Status: `active` for open Opportunities, `won` or `lost` for closed ones.
        - `opportunity_confidence` integer, nullable
        - `opportunity_date_won` string, date-time, nullable
        - `opportunity_id` string, nullable
        - `opportunity_value` integer, nullable
        - `opportunity_value_currency` string, nullable
        - `opportunity_value_formatted` string, nullable
        - `opportunity_value_period` 'one_time' | 'monthly' | 'annual': How often the Opportunity's value is paid: `one_time`, `monthly` or `annual`.
        - `organization_id` string
        - `updated_by` string, nullable
        - `updated_by_agent_id` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `users` string[]
      - SMSSearchResult: An SMS activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.sms', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `agent_action_reason` string, nullable
        - `agent_config_id` string, nullable: Deprecated. Use `created_by_agent_id` instead.
        - `caller_id_mode` 'fixed' | 'auto': How a caller's outbound number is chosen. Fixed uses a single configured number; Auto lets Close select the best number per call/SMS (Managed by Close Caller ID).
        - `caller_id_reason` 'context' | 'local_presence' | 'fallback': Why a number was chosen in Auto mode: reused from a prior communication (context), picked for geographic proximity (local_presence), or the default/oldest fallback.
        - `contact_id` string, nullable
        - `cost` string, nullable
        - `created_by` string, nullable
        - `created_by_agent_id` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_scheduled` string, date-time, nullable
        - `date_sent` string, date-time, nullable
        - `date_updated` string, date-time
        - `direction` 'inbound' | 'outbound': Direction of a phone activity, such as a call or an SMS message.
        - `error_message` string, nullable
        - `id` string
        - `lead_id` string, nullable
        - `local_country_iso` string, nullable
        - `local_phone` string, nullable
        - `local_phone_formatted` string, nullable
        - `organization_id` string
        - `remote_country_iso` string, nullable
        - `remote_phone` string, nullable
        - `remote_phone_formatted` string, nullable
        - `sequence_id` string, nullable
        - `sequence_name` string, nullable
        - `sequence_subscription_id` string, nullable
        - `source` 'Close.io' | 'External': Source of a phone activity. Describes whether the phone activity (such as a call or an SMS) was handled by Close's telephony provider or handled externally by a 3rd party and is merely logged in Close.
        - `status` 'inbox' | 'draft' | 'scheduled' | 'outbox' | 'sent' | 'error': Status of a message, such as Email or SMS.
        - `template_id` string, nullable
        - `text` string, nullable
        - `updated_by` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
      - TaskCompletedSearchResult: A task completion activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.task_completed', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `created_by` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `id` string
        - `lead_id` string, nullable
        - `organization_id` string
        - `task_assigned_to` string, nullable
        - `task_assigned_to_name` string, nullable
        - `task_id` string, nullable
        - `task_text` string, nullable
        - `updated_by` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
        - `users` string[]
      - WhatsAppMessageSearchResult: A WhatsApp message activity. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'activity.whatsapp_message', required: The type of the object.
        - `_type` string
        - `activity_at` string, date-time, nullable
        - `attachments` Attachment[]
          - `content_id` string, nullable: MIME Content-ID field, referenced from the body HTML as a `cid:` link
          - `content_type` string, nullable, required
          - `filename` string, nullable, required
          - `inline_only` boolean: Whether the attachment is embedded in the body HTML (e.g. a signature logo) rather than being standalone
          - `size` integer, nullable, required
          - `thumbnail_url` string, nullable
          - `url` string, required
        - `contact_id` string, nullable
        - `created_by` string, nullable
        - `created_by_name` string, nullable
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `direction` 'incoming' | 'outgoing': Direction of communication. Outgoing means the communication flowing from the user to the lead/contact. Inbound means the opposite.
        - `external_whatsapp_message_id` string
        - `id` string
        - `integration_link` string, nullable
        - `integration_name` string, nullable
        - `lead_id` string, nullable
        - `local_phone` string
        - `local_phone_formatted` string
        - `message_html` string
        - `message_markdown` string
        - `organization_id` string
        - `remote_phone` string
        - `remote_phone_formatted` string
        - `response_to_id` string, nullable
        - `source` 'ui' | 'api' | 'import' | 'clipper' | 'email' | 'suggestion' | 'segment-integration' | 'customerio-integration' | 'calendly-integration' | 'ai' | 'whatsapp' | 'webform': How the object was created, e.g. `ui` in the Close app, `api` through the API, `import` by a bulk import, or by an integration.
        - `text` string
        - `updated_by` string, nullable
        - `updated_by_name` string, nullable
        - `user_id` string, nullable
        - `user_name` string, nullable
      - LeadFileSearchResult: A file attached to a Lead. Contains the fields requested in `_fields`, in the same format as the object's own endpoint.
        - `__object_type` 'lead_file', required: The type of the object.
        - `checksum` string
        - `content_type` string
        - `date_created` string, date-time
        - `date_updated` string, date-time
        - `download_url` string
        - `id` string
        - `is_pinned` boolean
        - `last_activity_at` string, date-time
        - `last_object_id` string
        - `last_object_type` string
        - `lead_id` string
        - `name` string
        - `organization_id` string
        - `size` integer
        - `thumbnail_url` string, nullable
        - `updated_by` string, nullable
      - OtherSearchResult: An object of another type, e.g. a Task or a Custom Object. Contains the fields requested in `_fields`.
        - `__object_type` 'custom_fields.contact' | 'custom_fields.lead' | 'custom_fields.opportunity' | 'email_template' | 'sms_template' | 'saved_search' | 'status.lead' | 'status.opportunity' | 'task.answered_detached_call' | 'task.email_followup' | 'task.incoming_email' | 'task.lead_suggestion_incoming_email' | 'task.incoming_sms' | 'task.incoming_whatsapp_message' | 'task.lead' | 'task.outbound_call' | 'task.draft_email' | 'task.draft_sms' | 'task.missed_call' | 'task.opportunity_due' | 'task.opportunities_awaiting_action' | 'task.voicemail' | 'sequence_subscription' | 'subscription_history' | 'custom_object' | 'comment_thread' | 'comment' | 'lead_summary' | 'agent_call_grade', required: Type of a search result without its own result schema, e.g. a Task (`task.*`), a Custom Object (`custom_object`) or a Workflow subscription (`sequence_subscription`).
        - `id` string: ID of the object, e.g. `task_abc123`.

## Other responses

- `400`: Bad request, such as a validation error.
- `401`: Authentication is missing or invalid.
- `403`: The user can't access the organization.
- `429`: Too many requests.

## Changes

- **2026-11-02** `b93f4716e9bf`: 20 breaking, 10 warning, 20 info
  - removed the pattern property `^custom\.` from the `data/items/oneOf[subschema #10: ImportUpdateSearchResult]/` response property for the status `200`
  - removed the pattern property `^custom\.` from the `data/items/oneOf[subschema #11: LeadMergeSearchResult]/` response property for the status `200`
  - removed the pattern property `^custom\.` from the `data/items/oneOf[subschema #12: LeadStatusChangeSearchResult]/` response property for the status `200`
  - removed the pattern property `^custom\.` from the `data/items/oneOf[subschema #13: MeetingSearchResult]/` response property for the status `200`
  - …46 more
- **2026-11-02** `8e360c61058c`: 2 info
  - added the pattern property `^custom\.(cf|lcf|ccf|acf|gcf|scf)_[A-Za-z0-9]+$` to the `data/items/oneOf[subschema #1: LeadSearchResult]/contacts/items/` response property for the status `200`
  - added the pattern property `^custom\.(cf|lcf|ccf|acf|gcf|scf)_[A-Za-z0-9]+$` to the `data/items/oneOf[subschema #1: LeadSearchResult]/opportunities/items/` response property for the status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/close/apis/close-api/changes/data/search/post.md)

---

[API](https://skmtc.dev/close/apis/close-api.md) - [All operations](https://skmtc.dev/close/apis/close-api/llms.txt) - [OpenAPI document](https://skmtc.dev/close/apis/close-api/revisions/b93f4716e9bf?raw)
