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

# Attio: Create File

> Create a folder or link a connected file to an Attio record. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Create a folder or link a connected file to an Attio record.

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

## 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(
  'attio_create_file',
  {
    "object": "example",
    "record_id": "record_123",
    "file_type": "folder",
    "name": "Example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute attio_create_file --input '{
  "object": "example",
  "record_id": "record_123",
  "file_type": "folder",
  "name": "Example"
}' --json
```

## Example response

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

## Input reference

Create a native folder or connected file/folder entry on a record.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.object` | `string` | Yes | — | Object slug or ID. |
| `payload.record_id` | `string` | Yes | — | Record ID. |
| `payload.file_type` | `"folder" \| "connected-folder" \| "connected-file"` | Yes | — | — |
| `payload.name` | `string` | No | — | Folder name. |
| `payload.parent_folder_id` | `string` | No | — | Optional parent folder ID. |
| `payload.storage_provider` | `"dropbox" \| "box" \| "google-drive" \| "microsoft-onedrive"` | No | — | Connected storage provider. |
| `payload.external_provider_file_id` | `string` | No | — | External provider file or folder ID. |
| `payload.microsoft_drive_id` | `string` | No | — | Optional Microsoft drive ID for OneDrive. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "description": "Create a native folder or connected file/folder entry on a record.",
    "anyOf": [
      {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "description": "Object slug or ID.",
            "minLength": 1
          },
          "record_id": {
            "type": "string",
            "description": "Record ID.",
            "minLength": 1
          },
          "file_type": {
            "type": "string",
            "const": "folder"
          },
          "name": {
            "type": "string",
            "description": "Folder name.",
            "minLength": 1
          },
          "parent_folder_id": {
            "type": "string",
            "description": "Optional parent folder ID.",
            "minLength": 1
          }
        },
        "required": [
          "object",
          "record_id",
          "file_type",
          "name"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "description": "Object slug or ID.",
            "minLength": 1
          },
          "record_id": {
            "type": "string",
            "description": "Record ID.",
            "minLength": 1
          },
          "file_type": {
            "type": "string",
            "const": "connected-folder"
          },
          "storage_provider": {
            "type": "string",
            "description": "Connected storage provider.",
            "enum": [
              "dropbox",
              "box",
              "google-drive",
              "microsoft-onedrive"
            ]
          },
          "external_provider_file_id": {
            "type": "string",
            "description": "External provider file or folder ID.",
            "minLength": 1
          },
          "microsoft_drive_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional Microsoft drive ID for OneDrive."
          }
        },
        "required": [
          "object",
          "record_id",
          "file_type",
          "storage_provider",
          "external_provider_file_id"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "description": "Object slug or ID.",
            "minLength": 1
          },
          "record_id": {
            "type": "string",
            "description": "Record ID.",
            "minLength": 1
          },
          "file_type": {
            "type": "string",
            "const": "connected-file"
          },
          "storage_provider": {
            "type": "string",
            "description": "Connected storage provider.",
            "enum": [
              "dropbox",
              "box",
              "google-drive",
              "microsoft-onedrive"
            ]
          },
          "external_provider_file_id": {
            "type": "string",
            "description": "External provider file or folder ID.",
            "minLength": 1
          },
          "microsoft_drive_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional Microsoft drive ID for OneDrive."
          }
        },
        "required": [
          "object",
          "record_id",
          "file_type",
          "storage_provider",
          "external_provider_file_id"
        ],
        "additionalProperties": false
      }
    ]
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `record` | Yes | — | Provider response payload. |
| `result.meta` | `record` | 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.",
        "additionalProperties": {}
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "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

* [Attio provider guide](https://deepline.com/docs/providers/attio/guide.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.