> ## 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: Activities Emails Index

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

List emails.

<Info>
  Tool ID: `salesloft_activities_emails_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_activities_emails_index',
  {
    "ids": [
      123
    ],
    "updated_at": {
      "gt": "example",
      "gte": "example",
      "lt": "example"
    },
    "bounced": true
  },
);

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

### CLI

```bash theme={null}
deepline tools execute salesloft_activities_emails_index --input '{
  "ids": [
    123
  ],
  "updated_at": {
    "gt": "example",
    "gte": "example",
    "lt": "example"
  },
  "bounced": true
}' --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_activities_emails_index --json` for the latest machine-readable contract.

## Input reference

Fetches multiple email records. The records can be filtered, paged, and sorted according to the respective parameters.

| Name                            | Type      | Required | Default | Details                                                                                                                                                                                                                                                             |
| ------------------------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.ids`                   | `array`   | No       | —       | IDs of emails to fetch. If a record can't be found, that record won't be returned and your request will be successful                                                                                                                                               |
| `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.bounced`               | `boolean` | No       | —       | Filters emails by whether they have bounced or not                                                                                                                                                                                                                  |
| `payload.crm_activity_id`       | `array`   | No       | —       | Filters emails by crm\_activity\_id. Multiple crm activity ids can be applied                                                                                                                                                                                       |
| `payload.action_id`             | `array`   | No       | —       | Filters emails by action\_id. Multiple action ids can be applied                                                                                                                                                                                                    |
| `payload.user_id`               | `array`   | No       | —       | Filters emails by user\_id. Multiple User ids can be applied                                                                                                                                                                                                        |
| `payload.status`                | `array`   | No       | —       | Filters emails by status. Multiple status can be applied, possible values are sent, sent\_from\_gmail, sent\_from\_external, pending, pending\_reply\_check, scheduled, sending, delivering, failed, cancelled, pending\_through\_gmail, pending\_through\_external |
| `payload.cadence_id`            | `array`   | No       | —       | Filters emails by cadence. Multiple cadence ids can be applied                                                                                                                                                                                                      |
| `payload.step_id`               | `array`   | No       | —       | Filters emails by step. Multiple step ids can be applied                                                                                                                                                                                                            |
| `payload.one_off`               | `boolean` | No       | —       | Filters emails by one-off only                                                                                                                                                                                                                                      |
| `payload.scoped_fields`         | `array`   | No       | —       | Specify explicit scoped fields desired on the Email Resource.                                                                                                                                                                                                       |
| `payload.person_id`             | `array`   | No       | —       | Filters emails by person\_id. Multiple person ids can be applied                                                                                                                                                                                                    |
| `payload.email_addresses`       | `array`   | No       | —       | Filters emails by recipient email address. Multiple emails can be applied.                                                                                                                                                                                          |
| `payload.personalization`       | `array`   | No       | —       | Filters emails by personalization score                                                                                                                                                                                                                             |
| `payload.sent_at`               | `object`  | No       | —       | Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision.                                                                                                                              |
| `payload.email_template_id`     | `array`   | No       | —       | Filters emails by email\_template\_id. Multiple Email Template ids can be applied                                                                                                                                                                                   |
| `payload.account_id`            | `array`   | No       | —       | Filters emails by account\_id. Multiple Account ids can be applied                                                                                                                                                                                                  |
| `payload.has_replies`           | `boolean` | No       | —       | Filters emails by whether they have any replies or none                                                                                                                                                                                                             |
| `payload.has_clicks`            | `boolean` | No       | —       | Filters emails by whether they have any clicks or none                                                                                                                                                                                                              |
| `payload.has_views`             | `boolean` | No       | —       | Filters emails by whether they have any views or none                                                                                                                                                                                                               |
| `payload.draft_with_ai`         | `boolean` | No       | —       | Filters emails by whether they were drafted with AI assistance or not                                                                                                                                                                                               |
| `payload.sort_by`               | `string`  | No       | —       | Key to sort on, must be one of: updated\_at, recipient, send\_time, account, subject, views, clicks, replies. Defaults to updated\_at                                                                                                                               |
| `payload.sort_direction`        | `string`  | No       | —       | Direction to sort in, must be one of: ASC, DESC. Defaults to DESC                                                                                                                                                                                                   |
| `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 email records. The records can be filtered, paged, and sorted according to the respective parameters.",
    "properties": {
      "ids": {
        "type": "array",
        "description": "IDs of emails to fetch. If a record can't be found, that record won't be returned and your request will be successful",
        "items": {
          "type": "integer"
        }
      },
      "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
      },
      "bounced": {
        "type": "boolean",
        "description": "Filters emails by whether they have bounced or not"
      },
      "crm_activity_id": {
        "type": "array",
        "description": "Filters emails by crm_activity_id. Multiple crm activity ids can be applied",
        "items": {
          "type": "integer"
        }
      },
      "action_id": {
        "type": "array",
        "description": "Filters emails by action_id. Multiple action ids can be applied",
        "items": {
          "type": "integer"
        }
      },
      "user_id": {
        "type": "array",
        "description": "Filters emails by user_id. Multiple User ids can be applied",
        "items": {
          "type": "integer"
        }
      },
      "status": {
        "type": "array",
        "description": "Filters emails by status. Multiple status can be applied, possible values are sent, sent_from_gmail, sent_from_external, pending, pending_reply_check, scheduled, sending, delivering, failed, cancelled, pending_through_gmail, pending_through_external",
        "items": {
          "type": "string"
        }
      },
      "cadence_id": {
        "type": "array",
        "description": "Filters emails by cadence. Multiple cadence ids can be applied",
        "items": {
          "type": "integer"
        }
      },
      "step_id": {
        "type": "array",
        "description": "Filters emails by step. Multiple step ids can be applied",
        "items": {
          "type": "integer"
        }
      },
      "one_off": {
        "type": "boolean",
        "description": "Filters emails by one-off only"
      },
      "scoped_fields": {
        "type": "array",
        "description": "Specify explicit scoped fields desired on the Email Resource.",
        "items": {
          "type": "string"
        }
      },
      "person_id": {
        "type": "array",
        "description": "Filters emails by person_id. Multiple person ids can be applied",
        "items": {
          "type": "integer"
        }
      },
      "email_addresses": {
        "type": "array",
        "description": "Filters emails by recipient email address. Multiple emails can be applied.",
        "items": {
          "type": "string"
        }
      },
      "personalization": {
        "type": "array",
        "description": "Filters emails by personalization score",
        "items": {
          "type": "string"
        }
      },
      "sent_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
      },
      "email_template_id": {
        "type": "array",
        "description": "Filters emails by email_template_id. Multiple Email Template ids can be applied",
        "items": {
          "type": "integer"
        }
      },
      "account_id": {
        "type": "array",
        "description": "Filters emails by account_id. Multiple Account ids can be applied",
        "items": {
          "type": "integer"
        }
      },
      "has_replies": {
        "type": "boolean",
        "description": "Filters emails by whether they have any replies or none"
      },
      "has_clicks": {
        "type": "boolean",
        "description": "Filters emails by whether they have any clicks or none"
      },
      "has_views": {
        "type": "boolean",
        "description": "Filters emails by whether they have any views or none"
      },
      "draft_with_ai": {
        "type": "boolean",
        "description": "Filters emails by whether they were drafted with AI assistance or not"
      },
      "sort_by": {
        "type": "string",
        "description": "Key to sort on, must be one of: updated_at, recipient, send_time, account, subject, views, clicks, replies. Defaults to updated_at"
      },
      "sort_direction": {
        "type": "string",
        "description": "Direction to sort in, must be one of: ASC, DESC. Defaults to DESC"
      },
      "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 Email                                                                                                                                                                                                                                                  |
| `result.data[].created_at`              | `string`  | No       | —       | Datetime of when the email was created Format: `date-time`.                                                                                                                                                                                                  |
| `result.data[].updated_at`              | `string`  | No       | —       | Datetime of when the email was last updated Format: `date-time`.                                                                                                                                                                                             |
| `result.data[].recipient_email_address` | `string`  | No       | —       | Email address of the recipient                                                                                                                                                                                                                               |
| `result.data[].status`                  | `string`  | No       | —       | Status of this email through the sending process. Possible values are: sent, sent\_from\_gmail, sent\_from\_external, pending, pending\_reply\_check, scheduled, sending, delivering, failed, cancelled, pending\_through\_gmail, pending\_through\_external |
| `result.data[].bounced`                 | `boolean` | No       | —       | Whether this email bounced                                                                                                                                                                                                                                   |
| `result.data[].send_after`              | `string`  | No       | —       | When this email will be sent, or null if already sent Format: `date-time`.                                                                                                                                                                                   |
| `result.data[].sent_at`                 | `string`  | No       | —       | When this email was sent, or null if it was not sent Format: `date-time`.                                                                                                                                                                                    |
| `result.data[].view_tracking`           | `boolean` | No       | —       | Whether this email had view tracking enabled                                                                                                                                                                                                                 |
| `result.data[].click_tracking`          | `boolean` | No       | —       | Whether this email had click tracking enabled                                                                                                                                                                                                                |
| `result.data[].message_id`              | `string`  | No       | —       | ID of Client Email Message                                                                                                                                                                                                                                   |
| `result.data[].headers`                 | `record`  | No       | —       | Selected headers that are included if this email used them. Available keys are: cc, bcc                                                                                                                                                                      |
| `result.data[].personalization`         | `string`  | No       | —       | Percentage of this email that has been personalized                                                                                                                                                                                                          |
| `result.data[].subject`                 | `string`  | No       | —       | Subject of the email. This field has been determined sensitive and requires a specific scope to access it.                                                                                                                                                   |
| `result.data[].body`                    | `string`  | No       | —       | Email Body                                                                                                                                                                                                                                                   |
| `result.data[].error_message`           | `string`  | No       | —       | Error message of the email. This field has been determined sensitive and requires a specific scope to access it.                                                                                                                                             |
| `result.data[].draft_with_ai`           | `boolean` | No       | —       | Whether this email body was drafted with AI assistance                                                                                                                                                                                                       |
| `result.data[].email_thread_id`         | `integer` | No       | —       | ID of the email thread this email belongs to                                                                                                                                                                                                                 |
| `result.data[].counts`                  | `object`  | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].counts.clicks`           | `integer` | No       | —       | The number of times links in the email were clicked                                                                                                                                                                                                          |
| `result.data[].counts.views`            | `integer` | No       | —       | The number of times the email was opened                                                                                                                                                                                                                     |
| `result.data[].counts.replies`          | `integer` | No       | —       | The number of replies the email received                                                                                                                                                                                                                     |
| `result.data[].counts.unique_devices`   | `integer` | No       | —       | The number of unique devices that opened the email                                                                                                                                                                                                           |
| `result.data[].counts.unique_locations` | `integer` | No       | —       | The number of unique locations that opened the email                                                                                                                                                                                                         |
| `result.data[].counts.attachments`      | `integer` | No       | —       | The number of attachments on the email                                                                                                                                                                                                                       |
| `result.data[].user`                    | `object`  | No       | —       | User that sent this email                                                                                                                                                                                                                                    |
| `result.data[].user.id`                 | `integer` | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].user._href`              | `string`  | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].recipient`               | `object`  | No       | —       | The person whom received this email                                                                                                                                                                                                                          |
| `result.data[].recipient.id`            | `integer` | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].recipient._href`         | `string`  | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].mailing`                 | `object`  | No       | —       | The mailing that this email was a part of                                                                                                                                                                                                                    |
| `result.data[].mailing.id`              | `integer` | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].action`                  | `object`  | No       | —       | Action that this email was sent from, or null if not sent through a cadence                                                                                                                                                                                  |
| `result.data[].action.id`               | `integer` | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].task`                    | `object`  | No       | —       | Task that this email was sent from, or null if not sent through a cadence                                                                                                                                                                                    |
| `result.data[].task.id`                 | `integer` | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].crm_activity`            | `object`  | No       | —       | CRM Activity associated with this email                                                                                                                                                                                                                      |
| `result.data[].crm_activity.id`         | `integer` | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].crm_activity._href`      | `string`  | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].cadence`                 | `object`  | No       | —       | Cadence the email was sent on                                                                                                                                                                                                                                |
| `result.data[].cadence.id`              | `integer` | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].cadence._href`           | `string`  | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].step`                    | `object`  | No       | —       | Step the email was sent on                                                                                                                                                                                                                                   |
| `result.data[].step.id`                 | `integer` | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].step._href`              | `string`  | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].email_template`          | `object`  | No       | —       | Template used for this email                                                                                                                                                                                                                                 |
| `result.data[].email_template.id`       | `integer` | No       | —       | —                                                                                                                                                                                                                                                            |
| `result.data[].email_template._href`    | `string`  | No       | —       | —                                                                                                                                                                                                                                                            |

The table shows the first 50 fields. Expand the raw schema below for every field.

<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 Email"
            },
            "created_at": {
              "type": "string",
              "description": "Datetime of when the email was created",
              "format": "date-time"
            },
            "updated_at": {
              "type": "string",
              "description": "Datetime of when the email was last updated",
              "format": "date-time"
            },
            "recipient_email_address": {
              "type": "string",
              "description": "Email address of the recipient"
            },
            "status": {
              "type": "string",
              "description": "Status of this email through the sending process. Possible values are: sent, sent_from_gmail, sent_from_external, pending, pending_reply_check, scheduled, sending, delivering, failed, cancelled, pending_through_gmail, pending_through_external"
            },
            "bounced": {
              "type": "boolean",
              "description": "Whether this email bounced"
            },
            "send_after": {
              "type": "string",
              "description": "When this email will be sent, or null if already sent",
              "format": "date-time"
            },
            "sent_at": {
              "type": "string",
              "description": "When this email was sent, or null if it was not sent",
              "format": "date-time"
            },
            "view_tracking": {
              "type": "boolean",
              "description": "Whether this email had view tracking enabled"
            },
            "click_tracking": {
              "type": "boolean",
              "description": "Whether this email had click tracking enabled"
            },
            "message_id": {
              "type": "string",
              "description": "ID of Client Email Message"
            },
            "headers": {
              "type": "object",
              "description": "Selected headers that are included if this email used them. Available keys are: cc, bcc"
            },
            "personalization": {
              "type": "string",
              "description": "Percentage of this email that has been personalized"
            },
            "subject": {
              "type": "string",
              "description": "Subject of the email. This field has been determined sensitive and requires a specific scope to access it."
            },
            "body": {
              "type": "string",
              "description": "Email Body"
            },
            "error_message": {
              "type": "string",
              "description": "Error message of the email. This field has been determined sensitive and requires a specific scope to access it."
            },
            "draft_with_ai": {
              "type": "boolean",
              "description": "Whether this email body was drafted with AI assistance"
            },
            "email_thread_id": {
              "type": "integer",
              "description": "ID of the email thread this email belongs to"
            },
            "counts": {
              "type": "object",
              "properties": {
                "clicks": {
                  "type": "integer",
                  "description": "The number of times links in the email were clicked"
                },
                "views": {
                  "type": "integer",
                  "description": "The number of times the email was opened"
                },
                "replies": {
                  "type": "integer",
                  "description": "The number of replies the email received"
                },
                "unique_devices": {
                  "type": "integer",
                  "description": "The number of unique devices that opened the email"
                },
                "unique_locations": {
                  "type": "integer",
                  "description": "The number of unique locations that opened the email"
                },
                "attachments": {
                  "type": "integer",
                  "description": "The number of attachments on the email"
                }
              },
              "additionalProperties": false
            },
            "user": {
              "type": "object",
              "description": "User that sent this email",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "recipient": {
              "type": "object",
              "description": "The person whom received this email",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "mailing": {
              "type": "object",
              "description": "The mailing that this email was a part of",
              "properties": {
                "id": {
                  "type": "integer"
                }
              },
              "additionalProperties": false
            },
            "action": {
              "type": "object",
              "description": "Action that this email was sent from, or null if not sent through a cadence",
              "properties": {
                "id": {
                  "type": "integer"
                }
              },
              "additionalProperties": false
            },
            "task": {
              "type": "object",
              "description": "Task that this email was sent from, or null if not sent through a cadence",
              "properties": {
                "id": {
                  "type": "integer"
                }
              },
              "additionalProperties": false
            },
            "crm_activity": {
              "type": "object",
              "description": "CRM Activity associated with this email",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "cadence": {
              "type": "object",
              "description": "Cadence the email was sent on",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "step": {
              "type": "object",
              "description": "Step the email was sent on",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "email_template": {
              "type": "object",
              "description": "Template used for this email",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "additional_recipients": {
              "type": "array",
              "description": "The list of people, other than the (primary) recipient, who received this email via TO and CC",
              "items": {
                "type": "object",
                "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)
