> ## 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: Tasks Index

> List tasks. Salesloft Tasks Index reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

List tasks.

<Info>
  Tool ID: `salesloft_tasks_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_tasks_index',
  {
    "ids": [
      123
    ],
    "user_id": [
      123
    ],
    "person_id": [
      123
    ]
  },
);

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

### CLI

```bash theme={null}
deepline tools execute salesloft_tasks_index --input '{
  "ids": [
    123
  ],
  "user_id": [
    123
  ],
  "person_id": [
    123
  ]
}' --json
```

## Example response

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

```json theme={null}
{
  "data": [
    {
      "id": 123,
      "created_at": "2026-01-15T12:00:00Z",
      "updated_at": "2026-01-15T12:00:00Z"
    }
  ]
}
```

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

## Input reference

Fetches multiple task records. The records can be filtered, paged, and sorted according to the respective parameters. Tasks associated with cadence steps will not be returned in the response.

| Name                              | Type      | Required | Default | Details                                                                                                                                                    |
| --------------------------------- | --------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.ids`                     | `array`   | No       | —       | IDs of tasks to fetch.                                                                                                                                     |
| `payload.user_id`                 | `array`   | No       | —       | Filters tasks by the user to which they are assigned.                                                                                                      |
| `payload.person_id`               | `array`   | No       | —       | Filters tasks by the person to which they are associated.                                                                                                  |
| `payload.account_id`              | `array`   | No       | —       | Filters tasks by the account to which they are associated.                                                                                                 |
| `payload.current_state`           | `array`   | No       | —       | Filters tasks by their current state. Valid current\_states include: \['scheduled', 'completed'].                                                          |
| `payload.task_type`               | `array`   | No       | —       | Filters tasks by their task type. Valid task\_types include: \['call', 'email', 'general'].                                                                |
| `payload.time_interval_filter`    | `string`  | No       | —       | Filters tasks by time interval. Valid time\_intervals include: \['overdue', 'today', 'tomorrow', 'this\_week', 'next\_week'].                              |
| `payload.completed_time_interval` | `string`  | No       | —       | Filters tasks by time interval. Valid time\_intervals include: \['today', 'yesterday', 'this\_week', 'previous\_week', 'this\_month'].                     |
| `payload.idempotency_key`         | `string`  | No       | —       | Filters tasks by idempotency key.                                                                                                                          |
| `payload.locale`                  | `array`   | No       | —       | Filters tasks by locale of the person to which they are associated.                                                                                        |
| `payload.source`                  | `array`   | No       | —       | Filters tasks by source.                                                                                                                                   |
| `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.completed_at`            | `object`  | No       | —       | Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision.                     |
| `payload.include_counts_acted_on` | `object`  | No       | —       | Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision.                     |
| `payload.sort_by`                 | `string`  | No       | —       | Key to sort on, must be one of: due\_date, due\_at, utc\_offset, company, updated\_at, completed\_at, salesloft.prioritizers/rhythm. Defaults to due\_date |
| `payload.sort_direction`          | `string`  | No       | —       | Direction to sort in, must be one of: ASC, DESC. Defaults to ASC                                                                                           |
| `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.limit_paging_counts`     | `boolean` | No       | —       | Specifies whether the max limit of 10k records should be applied to pagination counts. Affects the total\_count and total\_pages data                      |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Fetches multiple task records. The records can be filtered, paged, and sorted according to the respective parameters. Tasks associated with cadence steps will not be returned in the response.",
    "properties": {
      "ids": {
        "type": "array",
        "description": "IDs of tasks to fetch.",
        "items": {
          "type": "integer"
        }
      },
      "user_id": {
        "type": "array",
        "description": "Filters tasks by the user to which they are assigned.",
        "items": {
          "type": "integer"
        }
      },
      "person_id": {
        "type": "array",
        "description": "Filters tasks by the person to which they are associated.",
        "items": {
          "type": "integer"
        }
      },
      "account_id": {
        "type": "array",
        "description": "Filters tasks by the account to which they are associated.",
        "items": {
          "type": "integer"
        }
      },
      "current_state": {
        "type": "array",
        "description": "Filters tasks by their current state. Valid current_states include: ['scheduled', 'completed'].",
        "items": {
          "type": "string"
        }
      },
      "task_type": {
        "type": "array",
        "description": "Filters tasks by their task type. Valid task_types include: ['call', 'email', 'general'].",
        "items": {
          "type": "string"
        }
      },
      "time_interval_filter": {
        "type": "string",
        "description": "Filters tasks by time interval. Valid time_intervals include: ['overdue', 'today', 'tomorrow', 'this_week', 'next_week']."
      },
      "completed_time_interval": {
        "type": "string",
        "description": "Filters tasks by time interval. Valid time_intervals include: ['today', 'yesterday', 'this_week', 'previous_week', 'this_month']."
      },
      "idempotency_key": {
        "type": "string",
        "description": "Filters tasks by idempotency key."
      },
      "locale": {
        "type": "array",
        "description": "Filters tasks by locale of the person to which they are associated.",
        "items": {
          "type": "string"
        }
      },
      "source": {
        "type": "array",
        "description": "Filters tasks by source.",
        "items": {
          "type": "string"
        }
      },
      "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
      },
      "completed_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
      },
      "include_counts_acted_on": {
        "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
      },
      "sort_by": {
        "type": "string",
        "description": "Key to sort on, must be one of: due_date, due_at, utc_offset, company, updated_at, completed_at, salesloft.prioritizers/rhythm. Defaults to due_date"
      },
      "sort_direction": {
        "type": "string",
        "description": "Direction to sort in, must be one of: ASC, DESC. Defaults to ASC"
      },
      "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"
      },
      "limit_paging_counts": {
        "type": "boolean",
        "description": "Specifies whether the max limit of 10k records should be applied to pagination counts. Affects the total_count and total_pages data"
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                  | Type      | Required | Default | Details                                                                                                        |
| ------------------------------------- | --------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------- |
| `result.data`                         | `array`   | Yes      | —       | Provider response payload.                                                                                     |
| `result.data[].id`                    | `integer` | No       | —       | ID of Task                                                                                                     |
| `result.data[].created_at`            | `string`  | No       | —       | Datetime of when the Task was created Format: `date-time`.                                                     |
| `result.data[].updated_at`            | `string`  | No       | —       | Datetime of when the Task was last updated Format: `date-time`.                                                |
| `result.data[].description`           | `string`  | No       | —       | A description of the task recorded for person at completion time                                               |
| `result.data[].due_date`              | `string`  | No       | —       | Date of when the Task is due, ISO-8601 date format required Format: `date`.                                    |
| `result.data[].due_at`                | `string`  | No       | —       | Datetime of when the Task is due, can be null. ISO-8601 datetime format required Format: `date-time`.          |
| `result.data[].subject`               | `string`  | No       | —       | Subject line of the task                                                                                       |
| `result.data[].current_state`         | `string`  | No       | —       | The state of the task. Valid states are: scheduled, completed                                                  |
| `result.data[].person`                | `object`  | No       | —       | The person to be contacted                                                                                     |
| `result.data[].person.id`             | `integer` | No       | —       | —                                                                                                              |
| `result.data[].person._href`          | `string`  | No       | —       | —                                                                                                              |
| `result.data[].opportunity`           | `object`  | No       | —       | The opportunity associated with task                                                                           |
| `result.data[].opportunity.id`        | `integer` | No       | —       | —                                                                                                              |
| `result.data[].opportunity._href`     | `string`  | No       | —       | —                                                                                                              |
| `result.data[].user`                  | `object`  | No       | —       | User who is assigned the task                                                                                  |
| `result.data[].user.id`               | `integer` | No       | —       | —                                                                                                              |
| `result.data[].user._href`            | `string`  | No       | —       | —                                                                                                              |
| `result.data[].created_by_user`       | `object`  | No       | —       | User who created the task                                                                                      |
| `result.data[].created_by_user.id`    | `integer` | No       | —       | —                                                                                                              |
| `result.data[].created_by_user._href` | `string`  | No       | —       | —                                                                                                              |
| `result.data[].task_type`             | `string`  | No       | —       | The type of the task. Valid types are: call, email, general                                                    |
| `result.data[].remind_at`             | `string`  | No       | —       | Datetime of when the user will be reminded of the task, ISO-8601 datetime format required Format: `date-time`. |
| `result.data[].expires_after`         | `string`  | No       | —       | Datetime of when the the task will expire, ISO-8601 datetime format required Format: `date-time`.              |
| `result.data[].completed_at`          | `string`  | No       | —       | Datetime of when the task was completed, ISO-8601 datetime format required Format: `date-time`.                |
| `result.data[].completed_by`          | `object`  | No       | —       | User who completed the task                                                                                    |
| `result.data[].completed_by.id`       | `integer` | No       | —       | —                                                                                                              |
| `result.data[].completed_by._href`    | `string`  | No       | —       | —                                                                                                              |
| `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": {
            "id": {
              "type": "integer",
              "description": "ID of Task"
            },
            "created_at": {
              "type": "string",
              "description": "Datetime of when the Task was created",
              "format": "date-time"
            },
            "updated_at": {
              "type": "string",
              "description": "Datetime of when the Task was last updated",
              "format": "date-time"
            },
            "description": {
              "type": "string",
              "description": "A description of the task recorded for person at completion time"
            },
            "due_date": {
              "type": "string",
              "description": "Date of when the Task is due, ISO-8601 date format required",
              "format": "date"
            },
            "due_at": {
              "type": "string",
              "description": "Datetime of when the Task is due, can be null. ISO-8601 datetime format required",
              "format": "date-time"
            },
            "subject": {
              "type": "string",
              "description": "Subject line of the task"
            },
            "current_state": {
              "type": "string",
              "description": "The state of the task. Valid states are: scheduled, completed"
            },
            "person": {
              "type": "object",
              "description": "The person to be contacted",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "opportunity": {
              "type": "object",
              "description": "The opportunity associated with task",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "user": {
              "type": "object",
              "description": "User who is assigned the task",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "created_by_user": {
              "type": "object",
              "description": "User who created the task",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "task_type": {
              "type": "string",
              "description": "The type of the task. Valid types are: call, email, general"
            },
            "remind_at": {
              "type": "string",
              "description": "Datetime of when the user will be reminded of the task, ISO-8601 datetime format required",
              "format": "date-time"
            },
            "expires_after": {
              "type": "string",
              "description": "Datetime of when the the task will expire, ISO-8601 datetime format required",
              "format": "date-time"
            },
            "completed_at": {
              "type": "string",
              "description": "Datetime of when the task was completed, ISO-8601 datetime format required",
              "format": "date-time"
            },
            "completed_by": {
              "type": "object",
              "description": "User who completed the task",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "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)
