---
title: Check missing assets
---

[Skip to content](#_top)

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

[Pages](https://developers.cloudflare.com/api/python/resources/pages)

[Assets](https://developers.cloudflare.com/api/python/resources/pages/subresources/assets)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Check missing assets

pages.assets.check\_missing(AssetCheckMissingParams\*\*kwargs) -> SyncSinglePage\[[AssetCheckMissingResponse](<https://developers.cloudflare.com/api/python/resources/pages#(resource)%20pages.assets%20%3E%20(model)%20asset_check_missing_response%20%3E%20(schema)>)]

POST/pages/assets/check-missing

Check which of the provided file hashes are missing from the Pages asset store. Returns a list of missing hashes that need to be uploaded. Used as part of the Pages Direct Upload workflow.

Authenticate with the JWT obtained from the upload-token endpoint: GET /accounts/{account\_id}/pages/projects/{project\_name}/upload-token

##### Security

##### ParametersExpand Collapse

hashes: Sequence\[str]

List of file content hashes to check for existence in the asset store.

[Link to this property](<#(resource)%20pages.assets%20%3E%20(method)%20check_missing%20%3E%20(params)%20default%20%3E%20(param)%20hashes%20%3E%20(schema)>)

##### ReturnsExpand Collapse

str

[Link to this property](<#(resource)%20pages.assets%20%3E%20(model)%20asset_check_missing_response%20%3E%20(schema)>)

### Check missing assets

Python

HTTPTypeScriptPythonGoTerraform

```
from cloudflare import Cloudflare

client = Cloudflare()
page = client.pages.assets.check_missing(
    hashes=["a948904f2f0f479b8f936b8a0c5d9882", "b026324c6904b2a9cb4b88d6d61c81d1"],
)
page = page.result[0]
print(page)
```

200 example

```
{
  "errors": [],
  "messages": [],
  "result": [
    "b026324c6904b2a9cb4b88d6d61c81d1"
  ],
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [],
  "messages": [],
  "result": [
    "b026324c6904b2a9cb4b88d6d61c81d1"
  ],
  "success": true
}
```