---
title: Check missing assets
---

[Skip to content](#_top)

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

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

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

Copy Markdown

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

---

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

# Check missing assets

client.Pages.Assets.CheckMissing(ctx, body) (\*SinglePage\[string], error)

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

<details>

<summary>

body AssetCheckMissingParams

</summary>

Hashes param.Field\[\[]string]

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

<a href="#(resource)%20pages.assets%20%3E%20(method)%20check_missing%20%3E%20(params)%20default%20%3E%20(param)%20hashes">Link to this property</a>

</details>

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

##### ReturnsExpand Collapse

type AssetCheckMissingResponseEnvelopeResult string

[Link to this property](<#(resource)%20pages.assets%20%3E%20(method)%20check_missing%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(items)>)

### Check missing assets

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/pages"
)

func main() {
  client := cloudflare.NewClient(

  )
  page, err := client.Pages.Assets.CheckMissing(context.TODO(), pages.AssetCheckMissingParams{
    Hashes: cloudflare.F([]string{"a948904f2f0f479b8f936b8a0c5d9882", "b026324c6904b2a9cb4b88d6d61c81d1"}),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", page)
}
```

200 example

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

##### Returns Examples

200 example

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