> ## 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: Team Templates Index

> List team templates. Salesloft Team Templates Index reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

List team templates.

<Info>
  Tool ID: `salesloft_team_templates_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_team_templates_index',
  {
    "ids": [
      "id_123"
    ],
    "updated_at": {
      "gt": "example",
      "gte": "example",
      "lt": "example"
    },
    "search": "software companies hiring engineers"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute salesloft_team_templates_index --input '{
  "ids": [
    "id_123"
  ],
  "updated_at": {
    "gt": "example",
    "gte": "example",
    "lt": "example"
  },
  "search": "software companies hiring engineers"
}' --json
```

## Example response

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

```json theme={null}
{
  "data": [
    {
      "id": "id_123",
      "title": "VP of Engineering",
      "subject": "Introduction"
    }
  ]
}
```

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

## Input reference

Fetches multiple team template records. The records can be filtered, paged, and sorted according to the respective parameters. Team templates are templates that are available team-wide. Admins may use team templates to create original content for the entire team, monitor version control to ensure templates are always up to date, and track template performance across the entire organization. All metrics on a team template reflect usage across the team; individual metrics can be found with the email\_templates API endpoint.

| Name                                 | Type      | Required | Default | Details                                                                                                                                |
| ------------------------------------ | --------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.ids`                        | `array`   | No       | —       | IDs of team templates 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.search`                     | `string`  | No       | —       | Filters email templates by title or subject                                                                                            |
| `payload.tag_ids`                    | `array`   | No       | —       | Filters email templates by tags applied to the template by tag ID, not to exceed 100 IDs                                               |
| `payload.tag`                        | `array`   | No       | —       | Filters team templates by tags applied to the template, not to exceed 100 tags                                                         |
| `payload.include_archived_templates` | `boolean` | No       | —       | Filters email templates to include archived templates or not                                                                           |
| `payload.sort_by`                    | `string`  | No       | —       | Key to sort on, must be one of: created\_at, updated\_at, last\_used\_at. 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 team template records. The records can be filtered, paged, and sorted according to the respective parameters. Team templates are templates that are available team-wide. Admins may use team templates to create original content for the entire team, monitor version control to ensure templates are always up to date, and track template performance across the entire organization. All metrics on a team template reflect usage across the team; individual metrics can be found with the email_templates API endpoint.",
    "properties": {
      "ids": {
        "type": "array",
        "description": "IDs of team templates to fetch. If a record can't be found, that record won't be returned and your request will be successful",
        "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
      },
      "search": {
        "type": "string",
        "description": "Filters email templates by title or subject"
      },
      "tag_ids": {
        "type": "array",
        "description": "Filters email templates by tags applied to the template by tag ID, not to exceed 100 IDs",
        "items": {
          "type": "integer"
        }
      },
      "tag": {
        "type": "array",
        "description": "Filters team templates by tags applied to the template, not to exceed 100 tags",
        "items": {
          "type": "string"
        }
      },
      "include_archived_templates": {
        "type": "boolean",
        "description": "Filters email templates to include archived templates or not"
      },
      "sort_by": {
        "type": "string",
        "description": "Key to sort on, must be one of: created_at, updated_at, last_used_at. 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`                       | `string`  | No       | —       | ID of team template                                                               |
| `result.data[].title`                    | `string`  | No       | —       | Title of the team template                                                        |
| `result.data[].subject`                  | `string`  | No       | —       | Subject of the team template                                                      |
| `result.data[].body`                     | `string`  | No       | —       | Body of the team template                                                         |
| `result.data[].body_preview`             | `string`  | No       | —       | A plain text version of the first 100 characters of the body of the team template |
| `result.data[].created_at`               | `string`  | No       | —       | Datetime of when the team template was created Format: `date-time`.               |
| `result.data[].updated_at`               | `string`  | No       | —       | Datetime of when the team template was last updated Format: `date-time`.          |
| `result.data[].last_used_at`             | `string`  | No       | —       | Datetime of when the team template was last used Format: `date-time`.             |
| `result.data[].archived_at`              | `string`  | No       | —       | Datetime of when the team template was archived, if archived Format: `date-time`. |
| `result.data[].last_modified_at`         | `string`  | No       | —       | Datetime of when the team template was last modified Format: `date-time`.         |
| `result.data[].open_tracking_enabled`    | `boolean` | No       | —       | Whether open tracking is enabled for this team template                           |
| `result.data[].click_tracking_enabled`   | `boolean` | No       | —       | Whether click tracking is enabled for this team template                          |
| `result.data[].counts`                   | `object`  | No       | —       | —                                                                                 |
| `result.data[].counts.sent_emails`       | `integer` | No       | —       | The number of times the team template was sent out                                |
| `result.data[].counts.views`             | `integer` | No       | —       | The number of times the team template was opened                                  |
| `result.data[].counts.clicks`            | `integer` | No       | —       | The number of times links in the team template were clicked                       |
| `result.data[].counts.replies`           | `integer` | No       | —       | The number of replies the team template received                                  |
| `result.data[].counts.bounces`           | `integer` | No       | —       | The number of bounces the team template received                                  |
| `result.data[].last_modified_user`       | `object`  | No       | —       | User that last modified this team template                                        |
| `result.data[].last_modified_user.id`    | `integer` | No       | —       | —                                                                                 |
| `result.data[].last_modified_user._href` | `string`  | No       | —       | —                                                                                 |
| `result.data[].groups`                   | `array`   | No       | —       | Groups to which this team template is assigned, if any                            |
| `result.data[].groups[].id`              | `integer` | No       | —       | —                                                                                 |
| `result.data[].groups[]._href`           | `string`  | No       | —       | —                                                                                 |
| `result.data[].owner_email_template_id`  | `integer` | No       | —       | The email template ID created for the owner account, if requested                 |
| `result.data[]._links`                   | `record`  | No       | —       | Links to attachments resource for this template                                   |
| `result.data[].tags`                     | `array`   | No       | —       | All tags applied to this team template                                            |
| `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": "string",
              "description": "ID of team template"
            },
            "title": {
              "type": "string",
              "description": "Title of the team template"
            },
            "subject": {
              "type": "string",
              "description": "Subject of the team template"
            },
            "body": {
              "type": "string",
              "description": "Body of the team template"
            },
            "body_preview": {
              "type": "string",
              "description": "A plain text version of the first 100 characters of the body of the team template"
            },
            "created_at": {
              "type": "string",
              "description": "Datetime of when the team template was created",
              "format": "date-time"
            },
            "updated_at": {
              "type": "string",
              "description": "Datetime of when the team template was last updated",
              "format": "date-time"
            },
            "last_used_at": {
              "type": "string",
              "description": "Datetime of when the team template was last used",
              "format": "date-time"
            },
            "archived_at": {
              "type": "string",
              "description": "Datetime of when the team template was archived, if archived",
              "format": "date-time"
            },
            "last_modified_at": {
              "type": "string",
              "description": "Datetime of when the team template was last modified",
              "format": "date-time"
            },
            "open_tracking_enabled": {
              "type": "boolean",
              "description": "Whether open tracking is enabled for this team template"
            },
            "click_tracking_enabled": {
              "type": "boolean",
              "description": "Whether click tracking is enabled for this team template"
            },
            "counts": {
              "type": "object",
              "properties": {
                "sent_emails": {
                  "type": "integer",
                  "description": "The number of times the team template was sent out"
                },
                "views": {
                  "type": "integer",
                  "description": "The number of times the team template was opened"
                },
                "clicks": {
                  "type": "integer",
                  "description": "The number of times links in the team template were clicked"
                },
                "replies": {
                  "type": "integer",
                  "description": "The number of replies the team template received"
                },
                "bounces": {
                  "type": "integer",
                  "description": "The number of bounces the team template received"
                }
              },
              "additionalProperties": false
            },
            "last_modified_user": {
              "type": "object",
              "description": "User that last modified this team template",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "groups": {
              "type": "array",
              "description": "Groups to which this team template is assigned, if any",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer"
                  },
                  "_href": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "owner_email_template_id": {
              "type": "integer",
              "description": "The email template ID created for the owner account, if requested"
            },
            "_links": {
              "type": "object",
              "description": "Links to attachments resource for this template"
            },
            "tags": {
              "type": "array",
              "description": "All tags applied to this team template",
              "items": {
                "type": "string"
              }
            }
          },
          "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)
