> ## 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.

# Outreach: List Snippets

> List the reusable text snippets saved in Outreach. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

List the reusable text snippets saved in Outreach.

> [!NOTE]
>
> Tool ID: `outreach_list_snippets`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'outreach_list_snippets',
  {
    "newFilterSyntax": true,
    "page_size": 123,
    "page_after": "cursor_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run outreach_list_snippets --input '{
  "newFilterSyntax": true,
  "page_size": 123,
  "page_after": "cursor_123"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "data": [
      {
        "attributes": {
          "bodyHtml": "example",
          "bodyText": "example",
          "createdAt": "2026-01-15T12:00:00Z"
        },
        "id": 123,
        "relationships": {
          "contentCategoryMemberships": {},
          "creator": {},
          "favorites": {}
        }
      }
    ]
  }
}
```

Use `deepline describe outreach_list_snippets --json` for the latest machine-readable contract.

## Input reference

Get a Collection of Snippets

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.newFilterSyntax` | `boolean` | No | — | Use Outreach array/range filter syntax for literal commas and ranges. |
| `payload.page_size` | `integer` | No | — | Cursor page size sent as page\[size]. Minimum: 1. Maximum: 1000. |
| `payload.page_after` | `string` | No | — | Cursor returned by the previous page. |
| `payload.page_before` | `string` | No | — | Cursor returned by the next page. |
| `payload.page_limit` | `integer` | No | — | Deprecated offset-pagination limit sent as page\[limit]. Prefer page\_size. Minimum: 1. Maximum: 1000. |
| `payload.page_offset` | `integer` | No | — | Deprecated offset-pagination offset sent as page\[offset]. Prefer cursors. Minimum: 0. Maximum: 10000. |
| `payload.count` | `boolean` | No | — | Request Outreach total-count metadata. false is faster for pagination. |
| `payload.sort` | `string` | No | — | Comma-separated sortable fields. prefix a field with - for descending order. |
| `payload.include` | `string` | No | — | Comma-separated related resources to include. |
| `payload.fields` | `object` | No | — | Sparse fieldsets keyed by JSON:API resource type, sent as fields\[resource]. |
| `payload.filters` | `object` | No | — | Endpoint-specific Outreach filters. Relationship attributes use keys such as owner\[id]. |

> [!NOTE]
>
> This input schema is too large for an inline display. Read the complete live contract with `deepline describe outreach_list_snippets --json`.

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `array` | No | — | — |
| `result.data.data[].attributes` | `object` | No | — | A piece of an email to be reused in multiple messages. |
| `result.data.data[].attributes.bodyHtml` | `string \| null` | No | — | The HTML of the snippet. Maximum length: 16777215. |
| `result.data.data[].attributes.bodyText` | `string \| null` | No | — | The text of the snippet. Maximum length: 16777215. |
| `result.data.data[].attributes.createdAt` | `string \| null` | No | — | The date and time the snippet was created. Format: `date-time`. |
| `result.data.data[].attributes.name` | `string \| null` | No | — | The name of the snippet. Maximum length: 255. |
| `result.data.data[].attributes.shareType` | `string \| null` | No | — | The permissions for sharing the snippet. must be "private" or "shared." Maximum length: 255. |
| `result.data.data[].attributes.tags` | `array \| null` | No | — | A list of tags associated with the snippet (e.g. \["Useful", "Prospecting"]). |
| `result.data.data[].attributes.updatedAt` | `string \| null` | No | — | The date and time the snippet was last updated. Format: `date-time`. |
| `result.data.data[].id` | `integer` | No | — | — |
| `result.data.data[].relationships` | `object` | No | — | — |
| `result.data.data[].relationships.contentCategoryMemberships` | `object` | No | — | The content categories (collections) of the snippet. You can use only the attribute id to filter snippets by contentCategoryMemberships (e.g. filter\[contentCategoryMemberships]\[id]=X). |
| `result.data.data[].relationships.contentCategoryMemberships.data` | `array` | No | — | — |
| `result.data.data[].relationships.contentCategoryMemberships.data[].id` | `integer` | No | — | — |
| `result.data.data[].relationships.contentCategoryMemberships.data[].type` | `"contentCategoryMembership"` | No | — | Allowed: `contentCategoryMembership`. |
| `result.data.data[].relationships.contentCategoryMemberships.links` | `object` | No | — | — |
| `result.data.data[].relationships.contentCategoryMemberships.links.related` | `string` | No | — | Format: `uri`. |
| `result.data.data[].relationships.creator` | `object` | No | — | The creator of the snippet. You can use only the attribute id to filter snippets by creator (e.g. filter\[creator]\[id]=X). |
| `result.data.data[].relationships.creator.data` | `object \| null` | No | — | — |
| `result.data.data[].relationships.creator.data.id` | `integer` | No | — | — |
| `result.data.data[].relationships.creator.data.type` | `"user"` | No | — | Allowed: `user`. |
| `result.data.data[].relationships.creator.links` | `object` | No | — | — |
| `result.data.data[].relationships.creator.links.related` | `string` | No | — | Format: `uri`. |
| `result.data.data[].relationships.favorites` | `object` | No | — | The snippet favorited by the user. |
| `result.data.data[].relationships.favorites.data` | `array` | No | — | — |
| `result.data.data[].relationships.favorites.data[].id` | `integer` | No | — | — |
| `result.data.data[].relationships.favorites.data[].type` | `"favorite"` | No | — | Allowed: `favorite`. |
| `result.data.data[].relationships.favorites.links` | `object` | No | — | — |
| `result.data.data[].relationships.favorites.links.related` | `string` | No | — | Format: `uri`. |
| `result.data.data[].relationships.owner` | `object` | No | — | The owner of the snippet. You can use only the attribute id to filter snippets by owner (e.g. filter\[owner]\[id]=X). |
| `result.data.data[].relationships.owner.data` | `object \| null` | No | — | — |
| `result.data.data[].relationships.owner.data.id` | `integer` | No | — | — |
| `result.data.data[].relationships.owner.data.type` | `"user"` | No | — | Allowed: `user`. |
| `result.data.data[].relationships.owner.links` | `object` | No | — | — |
| `result.data.data[].relationships.owner.links.related` | `string` | No | — | Format: `uri`. |
| `result.data.data[].relationships.updater` | `object` | No | — | The updater of the snippet. You can use only the attribute id to filter snippets by updater (e.g. filter\[updater]\[id]=X). |
| `result.data.data[].relationships.updater.data` | `object \| null` | No | — | — |
| `result.data.data[].relationships.updater.data.id` | `integer` | No | — | — |
| `result.data.data[].relationships.updater.data.type` | `"user"` | No | — | Allowed: `user`. |
| `result.data.data[].relationships.updater.links` | `object` | No | — | — |
| `result.data.data[].relationships.updater.links.related` | `string` | No | — | Format: `uri`. |
| `result.data.data[].type` | `string` | No | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "description": "Provider response payload.",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "attributes": {
                  "type": "object",
                  "description": "A piece of an email to be reused in multiple messages.",
                  "properties": {
                    "bodyHtml": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The HTML of the snippet.",
                      "maxLength": 16777215
                    },
                    "bodyText": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The text of the snippet.",
                      "maxLength": 16777215
                    },
                    "createdAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The date and time the snippet was created.",
                      "format": "date-time"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The name of the snippet.",
                      "maxLength": 255
                    },
                    "shareType": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The permissions for sharing the snippet; must be \"private\" or \"shared.\"",
                      "maxLength": 255
                    },
                    "tags": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "description": "A list of tags associated with the snippet (e.g. [\"Useful\", \"Prospecting\"]).",
                      "items": {
                        "type": "string"
                      }
                    },
                    "updatedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The date and time the snippet was last updated.",
                      "format": "date-time"
                    }
                  },
                  "additionalProperties": false
                },
                "id": {
                  "type": "integer"
                },
                "relationships": {
                  "type": "object",
                  "properties": {
                    "contentCategoryMemberships": {
                      "description": "The content categories (collections) of the snippet. You can use only the attribute id to filter snippets by contentCategoryMemberships (e.g. filter[contentCategoryMemberships][id]=X).",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "contentCategoryMembership"
                                ]
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "links": {
                          "type": "object",
                          "properties": {
                            "related": {
                              "type": "string",
                              "format": "uri"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "creator": {
                      "description": "The creator of the snippet. You can use only the attribute id to filter snippets by creator (e.g. filter[creator][id]=X).",
                      "properties": {
                        "data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "id": {
                              "type": "integer"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "links": {
                          "type": "object",
                          "properties": {
                            "related": {
                              "type": "string",
                              "format": "uri"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "favorites": {
                      "description": "The snippet favorited by the user.",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "favorite"
                                ]
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "links": {
                          "type": "object",
                          "properties": {
                            "related": {
                              "type": "string",
                              "format": "uri"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "owner": {
                      "description": "The owner of the snippet. You can use only the attribute id to filter snippets by owner (e.g. filter[owner][id]=X).",
                      "properties": {
                        "data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "id": {
                              "type": "integer"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "links": {
                          "type": "object",
                          "properties": {
                            "related": {
                              "type": "string",
                              "format": "uri"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "updater": {
                      "description": "The updater of the snippet. You can use only the attribute id to filter snippets by updater (e.g. filter[updater][id]=X).",
                      "properties": {
                        "data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "id": {
                              "type": "integer"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "links": {
                          "type": "object",
                          "properties": {
                            "related": {
                              "type": "string",
                              "format": "uri"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "type": {
                  "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

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.