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

# Clarify: List Record Attachments

> List record attachments. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

List record attachments.

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

## 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(
  'clarify_list_record_attachments',
  {
    "workspace": "example",
    "object": "example",
    "id": "id_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_list_record_attachments --input '{
  "workspace": "example",
  "object": "example",
  "id": "id_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": {
    "links": {
      "next": "example",
      "prev": "example"
    },
    "meta": {
      "total_records": 123,
      "total_pages": 123
    },
    "data": [
      {
        "_id": "_123",
        "name": "Example",
        "_created_at": "2026-01-15T12:00:00Z",
        "_created_by": "example",
        "source": "user",
        "mime_type": "example",
        "size_bytes": 1
      }
    ]
  }
}
```

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

## Input reference

Returns the attachments on a record, both user uploads and files extracted from emails. Omit `page` to return all attachments.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.object` | `string` | Yes | — | The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`). |
| `payload.id` | `string` | Yes | — | The unique ID of the record. |
| `payload.page` | `object` | No | — | Offset pagination, e.g. `page[offset]=0&page[limit]=100`. Omit to return all attachments. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns the attachments on a record, both user uploads and files extracted from emails. Omit `page` to return all attachments.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "object": {
        "type": "string",
        "description": "The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`)."
      },
      "id": {
        "type": "string",
        "description": "The unique ID of the record."
      },
      "page": {
        "type": "object",
        "description": "Offset pagination, e.g. `page[offset]=0&page[limit]=100`. Omit to return all attachments.",
        "properties": {
          "offset": {
            "type": "number",
            "description": "The number of attachments to skip before the first result.",
            "default": 0,
            "minimum": 0
          },
          "limit": {
            "type": "number",
            "description": "The maximum number of attachments to return per page.",
            "minimum": 1
          }
        },
        "required": [
          "limit"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "workspace",
      "object",
      "id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.links` | `object` | Yes | — | Pagination links. |
| `result.data.links.next` | `string \| null` | Yes | — | URL of the next page, or `null` on the last page. |
| `result.data.links.prev` | `string \| null` | Yes | — | URL of the previous page, or `null` on the first page. |
| `result.data.meta` | `object` | Yes | — | Pagination metadata. |
| `result.data.meta.total_records` | `number` | Yes | — | Total number of attachments across all pages. |
| `result.data.meta.total_pages` | `number` | Yes | — | Total number of pages at the current page size. |
| `result.data.data` | `array` | Yes | — | The page of attachments. |
| `result.data.data[]._id` | `string` | Yes | — | The unique ID of the attachment. |
| `result.data.data[].name` | `string` | Yes | — | The file name, including its extension. |
| `result.data.data[]._created_at` | `string` | Yes | — | ISO 8601 timestamp of when the attachment was added. |
| `result.data.data[]._created_by` | `string \| null` | Yes | — | The ID of the user who added the attachment, if known. |
| `result.data.data[].source` | `"user" \| "email"` | Yes | — | How the attachment reached the record: uploaded by a user or extracted from an email. Allowed: `user`, `email`. |
| `result.data.data[].mime_type` | `string \| null` | Yes | — | The MIME type of the file. |
| `result.data.data[].size_bytes` | `integer \| null` | Yes | — | The file size in bytes, if known. |
| `result.data.data[].messageRef` | `object` | No | — | Reference to the email message the attachment came from. present for `email`-sourced attachments. |
| `result.data.data[].messageRef._id` | `string` | Yes | — | The unique ID of the source email message. |
| `result.data.data[].messageRef._created_at` | `string` | Yes | — | ISO 8601 timestamp of the source email message. |
| `result.data.data[].messageRef.received_at` | `string \| null` | Yes | — | ISO 8601 timestamp when the source email was received (the true email date). Null if unknown. |
| `result.data.data[].messageRef.account_email` | `string \| null` | Yes | — | Email address of the connected account that ingested the source email. Null for messages ingested before provenance tracking. |
| `result.data.data[].sender` | `object` | No | — | The sender of the source email. present for `email`-sourced attachments. |
| `result.data.data[].sender.personId` | `string \| null` | Yes | — | The person record ID of the sender, if matched. |
| `result.data.data[].sender.name` | `string \| null` | Yes | — | The display name of the sender. |
| `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": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "links": {
            "type": "object",
            "description": "Pagination links.",
            "properties": {
              "next": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "URL of the next page, or `null` on the last page."
              },
              "prev": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "URL of the previous page, or `null` on the first page."
              }
            },
            "required": [
              "next",
              "prev"
            ],
            "additionalProperties": false
          },
          "meta": {
            "type": "object",
            "description": "Pagination metadata.",
            "properties": {
              "total_records": {
                "type": "number",
                "description": "Total number of attachments across all pages."
              },
              "total_pages": {
                "type": "number",
                "description": "Total number of pages at the current page size."
              }
            },
            "required": [
              "total_records",
              "total_pages"
            ],
            "additionalProperties": false
          },
          "data": {
            "type": "array",
            "description": "The page of attachments.",
            "items": {
              "type": "object",
              "properties": {
                "_id": {
                  "type": "string",
                  "description": "The unique ID of the attachment."
                },
                "name": {
                  "type": "string",
                  "description": "The file name, including its extension."
                },
                "_created_at": {
                  "type": "string",
                  "description": "ISO 8601 timestamp of when the attachment was added."
                },
                "_created_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The ID of the user who added the attachment, if known."
                },
                "source": {
                  "type": "string",
                  "description": "How the attachment reached the record: uploaded by a user or extracted from an email.",
                  "enum": [
                    "user",
                    "email"
                  ]
                },
                "mime_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The MIME type of the file."
                },
                "size_bytes": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "The file size in bytes, if known."
                },
                "messageRef": {
                  "type": "object",
                  "description": "Reference to the email message the attachment came from; present for `email`-sourced attachments.",
                  "properties": {
                    "_id": {
                      "type": "string",
                      "description": "The unique ID of the source email message."
                    },
                    "_created_at": {
                      "type": "string",
                      "description": "ISO 8601 timestamp of the source email message."
                    },
                    "received_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp when the source email was received (the true email date). Null if unknown."
                    },
                    "account_email": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Email address of the connected account that ingested the source email. Null for messages ingested before provenance tracking."
                    }
                  },
                  "required": [
                    "_id",
                    "_created_at",
                    "received_at",
                    "account_email"
                  ],
                  "additionalProperties": false
                },
                "sender": {
                  "type": "object",
                  "description": "The sender of the source email; present for `email`-sourced attachments.",
                  "properties": {
                    "personId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The person record ID of the sender, if matched."
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The display name of the sender."
                    }
                  },
                  "required": [
                    "personId",
                    "name"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "_id",
                "name",
                "_created_at",
                "_created_by",
                "source",
                "mime_type",
                "size_bytes"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "links",
          "meta",
          "data"
        ],
        "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.