> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Salesloft: Activity Histories Index

> List Past Activities. Salesloft Activity Histories Index reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

List Past Activities.

<Info>
  Tool ID: `salesloft_activity_histories_index`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'salesloft_activity_histories_index',
  {
    "per_page": 123,
    "page": 123,
    "include_paging_counts": true
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute salesloft_activity_histories_index --input '{
  "per_page": 123,
  "page": 123,
  "include_paging_counts": true
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": [
    {
      "user_guid": "user_123",
      "updated_at": "2026-01-15T12:00:00Z",
      "type": "example"
    }
  ]
}
```

Use `deepline tools get salesloft_activity_histories_index --json` for the latest machine-readable contract.

## Input reference

Fetches all of the customer's past activities for your application. Returns all the Activities that are found on the Salesloft Activity Feed.

| Name                            | Type      | Required | Default | Details                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `payload.per_page`              | `integer` | No       | —       | How many records to show per page in the range \[1, 100]. Defaults to 25                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `payload.page`                  | `integer` | No       | —       | The current page to fetch results from. Defaults to 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `payload.include_paging_counts` | `boolean` | No       | —       | Whether to include total\_pages and total\_count in the metadata. Defaults to false                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `payload.sort_by`               | `string`  | No       | —       | Key to sort on, must be one of: occurred\_at, updated\_at. Defaults to occurred\_at                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `payload.sort_direction`        | `string`  | No       | —       | Direction to sort in, must be one of: ASC, DESC. Defaults to DESC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `payload.type`                  | `string`  | No       | —       | Filter by the type of activity. Must be one of: added\_to\_cadence, account\_added\_to\_cadence, call, completed\_action, dnc\_event, email\_reply, external\_meeting, missed\_call, live\_chat, meeting, meeting\_held, meeting\_logged, message\_conversation, note, opportunity\_amount\_change, opportunity\_close\_date\_change, opportunity\_stage\_change, received\_email, requested\_email, residency\_change, sent\_email, site\_visit, share\_internal\_note, signal, success, task, voicemail, review. Can be provided as an array, See the live schema for the complete constraint. |
| `payload.occurred_at`           | `object`  | No       | —       | Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision.                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `payload.pinned`                | `boolean` | No       | —       | Filter by the pinned status of activity. Must be 'true' or 'false'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `payload.resource_type`         | `string`  | No       | —       | Filter by the resource type. A resource is a Salesloft object that the activity is attributed to. A valid resource types must be one of person, account, crm\_opportunity. Can be provided as an array                                                                                                                                                                                                                                                                                                                                                                                           |
| `payload.resource_id`           | `array`   | No       | —       | Filter by the resource id. "resource\_type" filter is required to use this filter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `payload.ids`                   | `array`   | No       | —       | Filter by the activity id.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `payload.updated_at`            | `object`  | No       | —       | Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision.                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `payload.user_guid`             | `string`  | No       | —       | Filter activities by a user's guid.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Fetches all of the customer's past activities for your application. Returns all the Activities that are found on the Salesloft Activity Feed.",
    "properties": {
      "per_page": {
        "type": "integer",
        "description": "How many records to show per page in the range [1, 100]. Defaults to 25"
      },
      "page": {
        "type": "integer",
        "description": "The current page to fetch results from. Defaults to 1"
      },
      "include_paging_counts": {
        "type": "boolean",
        "description": "Whether to include total_pages and total_count in the metadata. Defaults to false"
      },
      "sort_by": {
        "type": "string",
        "description": "Key to sort on, must be one of: occurred_at, updated_at. Defaults to occurred_at"
      },
      "sort_direction": {
        "type": "string",
        "description": "Direction to sort in, must be one of: ASC, DESC. Defaults to DESC"
      },
      "type": {
        "type": "string",
        "description": "Filter by the type of activity. Must be one of: added_to_cadence, account_added_to_cadence, call, completed_action, dnc_event, email_reply, external_meeting, missed_call, live_chat, meeting, meeting_held, meeting_logged, message_conversation, note, opportunity_amount_change, opportunity_close_date_change, opportunity_stage_change, received_email, requested_email, residency_change, sent_email, site_visit, share_internal_note, signal, success, task, voicemail, review. Can be provided as an array, or as an object of type[resource_type][]=type"
      },
      "occurred_at": {
        "type": "object",
        "description": "Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision.",
        "properties": {
          "gt": {
            "type": "string",
            "description": "Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision."
          },
          "gte": {
            "type": "string",
            "description": "Returns all matching records that are greater than or equal to the provided iso8601 timestamp. The comparison is done using microsecond precision."
          },
          "lt": {
            "type": "string",
            "description": "Returns all matching records that are less than the provided iso8601 timestamp. The comparison is done using microsecond precision."
          },
          "lte": {
            "type": "string",
            "description": "Returns all matching records that are less than or equal to the provided iso8601 timestamp. The comparison is done using microsecond precision."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "pinned": {
        "type": "boolean",
        "description": "Filter by the pinned status of activity. Must be 'true' or 'false'"
      },
      "resource_type": {
        "type": "string",
        "description": "Filter by the resource type. A resource is a Salesloft object that the activity is attributed to. A valid resource types must be one of person, account, crm_opportunity. Can be provided as an array"
      },
      "resource_id": {
        "type": "array",
        "description": "Filter by the resource id. \"resource_type\" filter is required to use this filter.",
        "items": {}
      },
      "ids": {
        "type": "array",
        "description": "Filter by the activity id.",
        "items": {}
      },
      "updated_at": {
        "type": "object",
        "description": "Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision.",
        "properties": {
          "gt": {
            "type": "string",
            "description": "Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision."
          },
          "gte": {
            "type": "string",
            "description": "Returns all matching records that are greater than or equal to the provided iso8601 timestamp. The comparison is done using microsecond precision."
          },
          "lt": {
            "type": "string",
            "description": "Returns all matching records that are less than the provided iso8601 timestamp. The comparison is done using microsecond precision."
          },
          "lte": {
            "type": "string",
            "description": "Returns all matching records that are less than or equal to the provided iso8601 timestamp. The comparison is done using microsecond precision."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "user_guid": {
        "type": "string",
        "description": "Filter activities by a user's guid."
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                     | Type      | Required | Default | Details                                                                                                                                 |
| ---------------------------------------- | --------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `result.data`                            | `array`   | Yes      | —       | Provider response payload.                                                                                                              |
| `result.data[].user_guid`                | `string`  | No       | —       | UUID of the user this activity is for                                                                                                   |
| `result.data[].updated_at`               | `string`  | No       | —       | When this record was updated Format: `date-time`.                                                                                       |
| `result.data[].type`                     | `string`  | No       | —       | The type of activity                                                                                                                    |
| `result.data[].tags`                     | `array`   | No       | —       | A list of tags for this activity                                                                                                        |
| `result.data[].static_data`              | `record`  | No       | —       | The static data for this activity                                                                                                       |
| `result.data[].resource_type`            | `string`  | No       | —       | Type of the resource this activity is for. One of: account, person                                                                      |
| `result.data[].resource_id`              | `integer` | No       | —       | ID of the resource this activity is for. It will be a string for the following resource types: crm\_opportunity                         |
| `result.data[].pinned_at`                | `string`  | No       | —       | When this record was pinned Format: `date-time`.                                                                                        |
| `result.data[].occurred_at`              | `string`  | No       | —       | When this activity occurred Format: `date-time`.                                                                                        |
| `result.data[].id`                       | `string`  | No       | —       | ID of this activity in \{type}-\{id} format                                                                                             |
| `result.data[].failed_dynamic_resources` | `array`   | No       | —       | A list of remote resource names that failed to load.                                                                                    |
| `result.data[].dynamic_data`             | `record`  | No       | —       | Attributes from associated records. This is specific to the type of activity and may change over time. Not returned for create requests |
| `result.data[].created_at`               | `string`  | No       | —       | When this record was created Format: `date-time`.                                                                                       |
| `result.meta`                            | `object`  | No       | —       | Additional response metadata (status, paging).                                                                                          |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "array",
        "description": "Provider response payload.",
        "items": {
          "type": "object",
          "description": "Provider response payload.",
          "properties": {
            "user_guid": {
              "type": "string",
              "description": "UUID of the user this activity is for"
            },
            "updated_at": {
              "type": "string",
              "description": "When this record was updated",
              "format": "date-time"
            },
            "type": {
              "type": "string",
              "description": "The type of activity"
            },
            "tags": {
              "type": "array",
              "description": "A list of tags for this activity",
              "items": {
                "type": "string"
              }
            },
            "static_data": {
              "type": "object",
              "description": "The static data for this activity"
            },
            "resource_type": {
              "type": "string",
              "description": "Type of the resource this activity is for. One of: account, person"
            },
            "resource_id": {
              "type": "integer",
              "description": "ID of the resource this activity is for. It will be a string for the following resource types: crm_opportunity"
            },
            "pinned_at": {
              "type": "string",
              "description": "When this record was pinned",
              "format": "date-time"
            },
            "occurred_at": {
              "type": "string",
              "description": "When this activity occurred",
              "format": "date-time"
            },
            "id": {
              "type": "string",
              "description": "ID of this activity in {type}-{id} format"
            },
            "failed_dynamic_resources": {
              "type": "array",
              "description": "A list of remote resource names that failed to load.",
              "items": {
                "type": "string"
              }
            },
            "dynamic_data": {
              "type": "object",
              "description": "Attributes from associated records. This is specific to the type of activity and may change over time. Not returned for create requests"
            },
            "created_at": {
              "type": "string",
              "description": "When this record was created",
              "format": "date-time"
            }
          },
          "additionalProperties": false
        }
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Salesloft provider guide](/docs/providers/salesloft/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
