> ## Documentation Index
> Fetch the complete documentation index at: https://composio-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Drop to CDN

> Upload files and publish HTML pages to public CDN URLs, then list, inspect, and delete hosted files.

![Drop to CDN logo](https://mintcdn.com/composio-preview/r7CO9m4_UWMVFnU7/images/toolkits/drop_to_cdn.svg?fit=max\&auto=format\&n=r7CO9m4_UWMVFnU7\&q=85\&s=461a5f9dc8e32401a3a3d9d94c246c47)

* **Category:** file management & storage
* **Auth:** API\_KEY
* **Composio-managed OAuth available?** N/A
* **Tools:** 6
* **Triggers:** 0
* **Slug:** `DROP_TO_CDN`
* **Version:** 00000000\_00

## Tools

> [accordion] Permanently Delete File
>
> **Slug:** `DROP_TO_CDN_DELETE_FILE`
>
> Permanently and irreversibly delete a file or hosted page owned by the connected account. This cannot restore monthly upload quota already consumed.
>
> #### Input Parameters
>
> **file\_id** `string` *required*
>
> ID of the file or hosted page to permanently delete. Verify this ID before calling because deletion is irreversible.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Account Usage
>
> **Slug:** `DROP_TO_CDN_GET_ACCOUNT_USAGE`
>
> Return the connected account's plan and current upload/storage usage context for deciding whether an upload is appropriate.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get File
>
> **Slug:** `DROP_TO_CDN_GET_FILE`
>
> Get metadata and the public CDN URL for one file or hosted page owned by the connected account.
>
> #### Input Parameters
>
> **file\_id** `string` *required*
>
> File or hosted-page ID returned by an upload, publish, or list operation.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Files
>
> **Slug:** `DROP_TO_CDN_LIST_FILES`
>
> Return one newest-first page of files and hosted pages owned by the connected account, with a cursor for the next page.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Maximum files to return in this page (1-100).
>
> **cursor** `string`
>
> Pass the previous response's next\_cursor to fetch the next page; omit for the first page.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Publish Page
>
> **Slug:** `DROP_TO_CDN_PUBLISH_PAGE`
>
> Publish HTML as a publicly hosted page and return its CDN URL. Each successful publish consumes monthly upload quota.
>
> #### Input Parameters
>
> **html** `string` *required*
>
> Complete HTML content to host as a public page.
>
> **never\_expire** `boolean`
>
> Set true only on a paid plan that supports non-expiring pages. Omit otherwise; this paid-only behavior was not live-tested.
>
> **retention\_days** `integer`
>
> Optional custom retention period in days. Omit to use the plan default. The provider may ignore this on plans without custom retention; custom behavior was not live-tested on the connected Free account.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Upload File
>
> **Slug:** `DROP_TO_CDN_UPLOAD_FILE`
>
> Upload a file and return its public CDN URL and expiration metadata. Each successful upload consumes monthly upload quota even if the file is later deleted.
>
> #### Input Parameters
>
> **file** `object` *required*
>
> File attachment supplied by Composio. Pass the attachment object unchanged rather than constructing its fields. Executables, scripts, and web pages are blocked; use Publish Page for HTML. File-size limits depend on the connected plan.
>
> **never\_expire** `boolean`
>
> Set true only on a paid plan that supports non-expiring uploads. Omit otherwise.
>
> **retention\_days** `integer`
>
> Optional custom retention period in days. Omit to use the plan default. The provider may ignore this on plans without custom retention.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not
