---
title: Assets
---

[Skip to content](#%5Ftop) 

[API Reference](https://developers.cloudflare.com/api/typescript)

[Custom Pages](https://developers.cloudflare.com/api/typescript/resources/custom%5Fpages)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Assets

##### [List custom assets](https://developers.cloudflare.com/api/typescript/resources/custom%5Fpages/subresources/assets/methods/list)

client.customPages.assets.list(AssetListParams { account\_id, zone\_id, page, per\_page } params?, RequestOptionsoptions?): V4PagePaginationArray<[AssetListResponse](https://developers.cloudflare.com/api/typescript/resources/custom%5Fpages#%28resource%29%20custom%5Fpages.assets%20%3E%20%28model%29%20asset%5Flist%5Fresponse%20%3E%20%28schema%29) { description, last\_updated, name, 2 more } \>

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_pages/assets

##### [Get a custom asset](https://developers.cloudflare.com/api/typescript/resources/custom%5Fpages/subresources/assets/methods/get)

client.customPages.assets.get(stringassetName, AssetGetParams { account\_id, zone\_id } params?, RequestOptionsoptions?): [AssetGetResponse](https://developers.cloudflare.com/api/typescript/resources/custom%5Fpages#%28resource%29%20custom%5Fpages.assets%20%3E%20%28model%29%20asset%5Fget%5Fresponse%20%3E%20%28schema%29) { description, last\_updated, name, 2 more } 

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_pages/assets/{asset\_name}

##### [Create a custom asset](https://developers.cloudflare.com/api/typescript/resources/custom%5Fpages/subresources/assets/methods/create)

client.customPages.assets.create(AssetCreateParams { description, name, url, 2 more } params, RequestOptionsoptions?): [AssetCreateResponse](https://developers.cloudflare.com/api/typescript/resources/custom%5Fpages#%28resource%29%20custom%5Fpages.assets%20%3E%20%28model%29%20asset%5Fcreate%5Fresponse%20%3E%20%28schema%29) { description, last\_updated, name, 2 more } 

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_pages/assets

##### [Update a custom asset](https://developers.cloudflare.com/api/typescript/resources/custom%5Fpages/subresources/assets/methods/update)

client.customPages.assets.update(stringassetName, AssetUpdateParams { description, url, account\_id, zone\_id } params, RequestOptionsoptions?): [AssetUpdateResponse](https://developers.cloudflare.com/api/typescript/resources/custom%5Fpages#%28resource%29%20custom%5Fpages.assets%20%3E%20%28model%29%20asset%5Fupdate%5Fresponse%20%3E%20%28schema%29) { description, last\_updated, name, 2 more } 

PUT/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_pages/assets/{asset\_name}

##### [Delete a custom asset](https://developers.cloudflare.com/api/typescript/resources/custom%5Fpages/subresources/assets/methods/delete)

client.customPages.assets.delete(stringassetName, AssetDeleteParams { account\_id, zone\_id } params?, RequestOptionsoptions?): void

DELETE/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_pages/assets/{asset\_name}

##### ModelsExpand Collapse 

AssetListResponse { description, last\_updated, name, 2 more } 

description?: string

A short description of the custom asset.

last\_updated?: string

formatdate-time

name?: string

The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (\_).

minLength1

size\_bytes?: number

The size of the asset content in bytes.

url?: string

The URL where the asset content is fetched from.

formaturi

AssetGetResponse { description, last\_updated, name, 2 more } 

description?: string

A short description of the custom asset.

last\_updated?: string

formatdate-time

name?: string

The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (\_).

minLength1

size\_bytes?: number

The size of the asset content in bytes.

url?: string

The URL where the asset content is fetched from.

formaturi

AssetCreateResponse { description, last\_updated, name, 2 more } 

description?: string

A short description of the custom asset.

last\_updated?: string

formatdate-time

name?: string

The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (\_).

minLength1

size\_bytes?: number

The size of the asset content in bytes.

url?: string

The URL where the asset content is fetched from.

formaturi

AssetUpdateResponse { description, last\_updated, name, 2 more } 

description?: string

A short description of the custom asset.

last\_updated?: string

formatdate-time

name?: string

The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (\_).

minLength1

size\_bytes?: number

The size of the asset content in bytes.

url?: string

The URL where the asset content is fetched from.

formaturi