Download File
Download the policy’s attached file.
Returns the file content with appropriate headers for download.
GET
/
v1
/
policies
/
{policy_id}
/
file
Download File
curl --request GET \
--url https://api.example.com/v1/policies/{policy_id}/fileimport requests
url = "https://api.example.com/v1/policies/{policy_id}/file"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/policies/{policy_id}/file', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/policies/{policy_id}/file"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Path Parameters
Response
Successful Response
Last modified on April 21, 2026
Was this page helpful?
⌘I
Download File
curl --request GET \
--url https://api.example.com/v1/policies/{policy_id}/fileimport requests
url = "https://api.example.com/v1/policies/{policy_id}/file"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/policies/{policy_id}/file', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/policies/{policy_id}/file"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}