> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create asset

> Creates a hosted upload target for a new asset file.

`webflow.createAsset` creates a hosted upload target for a new asset file.

## Example

```ts automations/webflow-create-asset.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { webflow } from "automate.ax/webflow"

export default automation("Create asset", () => {
  onDashboardRun({ title: "Create asset" })

  webflow.createAsset({
    siteId: "site-id",
    fileHash: "d41d8cd98f00b204e9800998ecf8427e",
    fileName: "hero.png",
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires the `assets:write` OAuth scope.

| Field          | Type     | Required | Description                        |
| -------------- | -------- | -------- | ---------------------------------- |
| `fileName`     | `string` | Yes      | Filename, including its extension. |
| `fileHash`     | `string` | Yes      | MD5 hash of the file.              |
| `parentFolder` | `string` | No       | Webflow `parentFolder` value.      |
| `siteId`       | `string` | Yes      | Webflow site ID.                   |

<Note>
  This action creates an upload target. Upload the file bytes to the returned
  provider URL to finish the asset upload.
</Note>

## Output

Returns an object with the fields below. Automate.ax converts provider `Date` values to ISO 8601 strings.

| Field              | Type                               | Description                       |
| ------------------ | ---------------------------------- | --------------------------------- |
| `uploadDetails`    | `Webflow.AssetUploadUploadDetails` | Webflow `uploadDetails` value.    |
| `contentType`      | `string`                           | Webflow `contentType` value.      |
| `id`               | `string`                           | Webflow `id` value.               |
| `parentFolder`     | `string`                           | Webflow `parentFolder` value.     |
| `uploadUrl`        | `string`                           | Webflow `uploadUrl` value.        |
| `assetUrl`         | `string`                           | Webflow `assetUrl` value.         |
| `hostedUrl`        | `string`                           | Webflow `hostedUrl` value.        |
| `originalFileName` | `string`                           | Webflow `originalFileName` value. |
| `createdOn`        | `string`                           | Webflow `createdOn` value.        |
| `lastUpdated`      | `string`                           | Webflow `lastUpdated` value.      |
