---
canonical_url: "https://docs.composio.dev/toolkits/gofile"
markdown_url: "https://docs.composio.dev/toolkits/gofile.md"
product: "platform"
version: null
last_updated: null
---

# GoFile

GoFile is a file storage and sharing service for uploading, organizing, and distributing files.

- **Category:** file management & storage
- **Auth:** API_KEY
- **Composio-managed OAuth available?** N/A
- **Tools:** 5
- **Triggers:** 0
- **Slug:** `GOFILE`
- **Version:** 00000000_00

## Tools

### Create Folder

**Slug:** `GOFILE_CREATE_FOLDER`

Create a private folder inside an existing GoFile folder.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `folder_name` | string | Yes | Name for the new folder. |
| `parent_folder_id` | string | Yes | Parent folder ID. Use root_folder from GOFILE_GET_CURRENT_ACCOUNT to create the folder at the account root. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Contents

**Slug:** `GOFILE_DELETE_CONTENTS`

Permanently and irreversibly delete one or more explicitly selected owned GoFile files or folders.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `content_ids` | array | Yes | Non-empty explicit list of exact owned file or folder IDs to permanently delete. Deletion is irreversible; only include caller-selected IDs. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Current Account

**Slug:** `GOFILE_GET_CURRENT_ACCOUNT`

Return the connected GoFile account's identity, tier, root folder, usage, and content counts without exposing account credentials or network metadata.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Rename Content

**Slug:** `GOFILE_RENAME_CONTENT`

Rename one owned GoFile file or folder.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `new_name` | string | Yes | New file or folder name. |
| `content_id` | string | Yes | ID of the owned file or folder to rename. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Upload File

**Slug:** `GOFILE_UPLOAD_FILE`

Upload one file into an existing folder owned by the connected GoFile account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | File to upload. |
| `folder_id` | string | Yes | Existing destination folder ID, such as the root folder returned by Get Current Account. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
