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

# Zoho CRM: Attachments Get Attachments

> Retrieve all attachments associated with a specific record. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Retrieve all attachments associated with a specific record.

> [!NOTE]
>
> Tool ID: `zoho_crm_attachments_get_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(
  'zoho_crm_attachments_get_attachments',
  {
    "recordId": "record_123",
    "moduleApiName": "Example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute zoho_crm_attachments_get_attachments --input '{
  "recordId": "record_123",
  "moduleApiName": "Example"
}' --json
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe zoho_crm_attachments_get_attachments --json` for the complete live contract.

## Input reference

Retrieve all attachments associated with a specific record.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.recordId` | `string` | Yes | — | The unique identifier of the record Maximum length: 64. |
| `payload.moduleApiName` | `string` | Yes | — | The API name of the module Maximum length: 64. |
| `payload.fields` | `string` | No | — | Specify the fields to retrieve Maximum length: 100000. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Retrieve all attachments associated with a specific record.",
    "properties": {
      "recordId": {
        "type": "string",
        "description": "The unique identifier of the record",
        "maxLength": 64
      },
      "moduleApiName": {
        "type": "string",
        "description": "The API name of the module",
        "maxLength": 64
      },
      "fields": {
        "type": "string",
        "description": "Specify the fields to retrieve",
        "maxLength": 100000
      }
    },
    "required": [
      "recordId",
      "moduleApiName"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Response containing list of attachments for a record |
| `result.data.data` | `array` | Yes | — | Array of attachment objects Maximum items: 1000. |
| `result.data.data[].id` | `string` | Yes | — | The unique numeric identifier of the attachment Maximum length: 50. Pattern: `^[0-9]+$`. |
| `result.data.data[].File_Name` | `string` | No | — | Name of the attached file Maximum length: 250. |
| `result.data.data[].Size` | `string` | No | — | Size of the attachment in bytes Maximum length: 50000. Pattern: `^[0-9]+$`. |
| `result.data.data[].Created_Time` | `string` | Yes | — | Timestamp when the attachment was created (ISO 8601 with timezone) Format: `date-time`. |
| `result.data.data[].Created_By` | `object` | Yes | — | User who created the attachment |
| `result.data.data[].Created_By.id` | `string` | Yes | — | User ID Maximum length: 50. Pattern: `^[0-9]+$`. |
| `result.data.data[].Created_By.name` | `string` | Yes | — | User display name Maximum length: 250. |
| `result.data.data[].Created_By.email` | `string` | No | — | User email address Format: `email`. Maximum length: 100. |
| `result.data.data[].Modified_Time` | `string` | Yes | — | Timestamp when the attachment was last modified (ISO 8601 with timezone) Format: `date-time`. |
| `result.data.data[].Modified_By` | `object` | Yes | — | User who last modified the attachment |
| `result.data.data[].Modified_By.id` | `string` | Yes | — | User ID Maximum length: 50. Pattern: `^[0-9]+$`. |
| `result.data.data[].Modified_By.name` | `string` | Yes | — | User display name Maximum length: 250. |
| `result.data.data[].Modified_By.email` | `string` | No | — | User email address Format: `email`. Maximum length: 100. |
| `result.data.data[].Owner` | `object` | No | — | Owner of the attachment |
| `result.data.data[].Owner.id` | `string` | Yes | — | Owner user ID Maximum length: 50. Pattern: `^[0-9]+$`. |
| `result.data.data[].Owner.name` | `string` | Yes | — | Owner display name Maximum length: 250. |
| `result.data.data[].Owner.email` | `string` | No | — | Owner email address Format: `email`. Maximum length: 100. |
| `result.data.data[].Parent_Id` | `object` | No | — | Parent record information |
| `result.data.data[].Parent_Id.id` | `string` | Yes | — | Parent record ID Maximum length: 50. Pattern: `^[0-9]+$`. |
| `result.data.data[].Parent_Id.name` | `string` | Yes | — | Parent record name Maximum length: 250. |
| `result.data.data[].$field_states` | `object \| null` | No | — | Field states metadata |
| `result.data.data[].$editable` | `boolean` | No | — | Indicates if the attachment is editable |
| `result.data.data[].$file_id` | `string \| null` | No | — | File identifier for the attachment Maximum length: 255. |
| `result.data.data[].$type` | `string` | No | — | Type of the attachment Maximum length: 50. |
| `result.data.data[].$se_module` | `string` | No | — | Source module name Maximum length: 100. |
| `result.data.data[].$state` | `string` | No | — | Current state of the attachment Maximum length: 50. |
| `result.data.data[].$link_url` | `string \| null` | No | — | URL for link-type attachments. Null for file attachments. Format: `uri`. Maximum length: 2000. |
| `result.data.data[].$sharing_permission` | `string` | No | — | Sharing permission level for the attachment Maximum length: 50. |
| `result.data.info` | `object` | Yes | — | Pagination information for list responses |
| `result.data.info.per_page` | `integer` | Yes | — | Number of records per page Format: `int32`. Minimum: 1. Maximum: 200. |
| `result.data.info.next_page_token` | `string \| null` | Yes | — | Token to retrieve the next page of results Maximum length: 1024. |
| `result.data.info.count` | `integer` | Yes | — | Number of records returned in the current response Format: `int32`. Minimum: 0. |
| `result.data.info.page` | `integer` | Yes | — | Current page number Format: `int32`. Minimum: 1. |
| `result.data.info.previous_page_token` | `string \| null` | Yes | — | Token to retrieve the previous page of results Maximum length: 1024. |
| `result.data.info.page_token_expiry` | `string \| null` | Yes | — | Expiry timestamp for the page tokens Format: `date-time`. |
| `result.data.info.more_records` | `boolean` | Yes | — | Indicates whether more records are available |
| `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": "Response containing list of attachments for a record",
        "properties": {
          "data": {
            "type": "array",
            "description": "Array of attachment objects",
            "maxItems": 1000,
            "items": {
              "type": "object",
              "description": "Individual attachment metadata",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique numeric identifier of the attachment",
                  "maxLength": 50,
                  "pattern": "^[0-9]+$"
                },
                "File_Name": {
                  "type": "string",
                  "description": "Name of the attached file",
                  "maxLength": 250
                },
                "Size": {
                  "type": "string",
                  "description": "Size of the attachment in bytes",
                  "maxLength": 50000,
                  "pattern": "^[0-9]+$"
                },
                "Created_Time": {
                  "type": "string",
                  "description": "Timestamp when the attachment was created (ISO 8601 with timezone)",
                  "format": "date-time"
                },
                "Created_By": {
                  "type": "object",
                  "description": "User who created the attachment",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "User ID",
                      "maxLength": 50,
                      "pattern": "^[0-9]+$"
                    },
                    "name": {
                      "type": "string",
                      "description": "User display name",
                      "maxLength": 250
                    },
                    "email": {
                      "type": "string",
                      "description": "User email address",
                      "maxLength": 100,
                      "format": "email"
                    }
                  },
                  "required": [
                    "id",
                    "name"
                  ],
                  "additionalProperties": false
                },
                "Modified_Time": {
                  "type": "string",
                  "description": "Timestamp when the attachment was last modified (ISO 8601 with timezone)",
                  "format": "date-time"
                },
                "Modified_By": {
                  "type": "object",
                  "description": "User who last modified the attachment",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "User ID",
                      "maxLength": 50,
                      "pattern": "^[0-9]+$"
                    },
                    "name": {
                      "type": "string",
                      "description": "User display name",
                      "maxLength": 250
                    },
                    "email": {
                      "type": "string",
                      "description": "User email address",
                      "maxLength": 100,
                      "format": "email"
                    }
                  },
                  "required": [
                    "id",
                    "name"
                  ],
                  "additionalProperties": false
                },
                "Owner": {
                  "type": "object",
                  "description": "Owner of the attachment",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Owner user ID",
                      "maxLength": 50,
                      "pattern": "^[0-9]+$"
                    },
                    "name": {
                      "type": "string",
                      "description": "Owner display name",
                      "maxLength": 250
                    },
                    "email": {
                      "type": "string",
                      "description": "Owner email address",
                      "maxLength": 100,
                      "format": "email"
                    }
                  },
                  "required": [
                    "id",
                    "name"
                  ],
                  "additionalProperties": false
                },
                "Parent_Id": {
                  "type": "object",
                  "description": "Parent record information",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Parent record ID",
                      "maxLength": 50,
                      "pattern": "^[0-9]+$"
                    },
                    "name": {
                      "type": "string",
                      "description": "Parent record name",
                      "maxLength": 250
                    }
                  },
                  "required": [
                    "id",
                    "name"
                  ],
                  "additionalProperties": false
                },
                "$field_states": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "Field states metadata"
                },
                "$editable": {
                  "type": "boolean",
                  "description": "Indicates if the attachment is editable"
                },
                "$file_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "File identifier for the attachment",
                  "maxLength": 255
                },
                "$type": {
                  "type": "string",
                  "description": "Type of the attachment",
                  "maxLength": 50
                },
                "$se_module": {
                  "type": "string",
                  "description": "Source module name",
                  "maxLength": 100
                },
                "$state": {
                  "type": "string",
                  "description": "Current state of the attachment",
                  "maxLength": 50
                },
                "$link_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "URL for link-type attachments. Null for file attachments.",
                  "maxLength": 2000,
                  "format": "uri"
                },
                "$sharing_permission": {
                  "type": "string",
                  "description": "Sharing permission level for the attachment",
                  "maxLength": 50
                }
              },
              "required": [
                "id",
                "Created_Time",
                "Created_By",
                "Modified_Time",
                "Modified_By"
              ],
              "additionalProperties": false
            }
          },
          "info": {
            "type": "object",
            "description": "Pagination information for list responses",
            "properties": {
              "per_page": {
                "type": "integer",
                "description": "Number of records per page",
                "minimum": 1,
                "maximum": 200,
                "format": "int32"
              },
              "next_page_token": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Token to retrieve the next page of results",
                "maxLength": 1024
              },
              "count": {
                "type": "integer",
                "description": "Number of records returned in the current response",
                "minimum": 0,
                "format": "int32"
              },
              "page": {
                "type": "integer",
                "description": "Current page number",
                "minimum": 1,
                "format": "int32"
              },
              "previous_page_token": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Token to retrieve the previous page of results",
                "maxLength": 1024
              },
              "page_token_expiry": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Expiry timestamp for the page tokens",
                "format": "date-time"
              },
              "more_records": {
                "type": "boolean",
                "description": "Indicates whether more records are available"
              }
            },
            "required": [
              "per_page",
              "next_page_token",
              "count",
              "page",
              "previous_page_token",
              "page_token_expiry",
              "more_records"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "info"
        ],
        "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

* [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.