---
title: Retrieves a file from Binary Storage
---

[Skip to content](#_top)

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

[Cloudforce One](https://developers.cloudflare.com/api/go/resources/cloudforce_one)

[Binary Storage](https://developers.cloudflare.com/api/go/resources/cloudforce_one/subresources/binary_storage)

Copy Markdown

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

---

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

# Retrieves a file from Binary Storage

client.CloudforceOne.BinaryStorage.Get(ctx, hash, query) error

GET/accounts/{account\_id}/cloudforce-one/binary/{hash}

Retrieves a binary file from the Cloudforce One binary storage for analysis.

##### Security

API Token

The preferred authorization scheme for interacting with the Cloudflare API. [Create a token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).

**Example:**`Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY`

##### Accepted Permissions (at least one required)

`Cloudforce One Write``Cloudforce One Read`

##### ParametersExpand Collapse

hash string

hash of the binary

[Link to this property](<#(resource)%20cloudforce_one.binary_storage%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20hash%20%3E%20(schema)>)

<details>

<summary>

query BinaryStorageGetParams

</summary>

AccountID param.Field\[string]

Account ID.

<a href="#(resource)%20cloudforce_one.binary_storage%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20cloudforce_one.binary_storage%20%3E%20(method)%20get%20%3E%20(params)%20default>)

### Retrieves a file from Binary Storage

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/cloudforce_one"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  err := client.CloudforceOne.BinaryStorage.Get(
    context.TODO(),
    "hash",
    cloudforce_one.BinaryStorageGetParams{
      AccountID: cloudflare.F("account_id"),
    },
  )
  if err != nil {
    panic(err.Error())
  }
}
```

##### Returns Examples