Get Policy Download Url
curl --request GET \
--url https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url \
--header 'x-api-key: <api-key>'import requests
url = "https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"url": "https://us-health-insurance-kb.s3.us-east-2.amazonaws.com/uhc_MP.002_2026-01-01.pdf?...",
"content_type": "application/pdf",
"filename": "uhc_MP.002_2026-01-01.pdf"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}API Reference
Get Policy Download Url
Get a presigned URL to download the policy file.
The URL is short-lived (~15 minutes) — request it just before use, don’t cache it.
GET
/
v1
/
policies
/
{policy_id}
/
download-url
Get Policy Download Url
curl --request GET \
--url https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url \
--header 'x-api-key: <api-key>'import requests
url = "https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.penelope.health/v1/policies/{policy_id}/download-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"url": "https://us-health-insurance-kb.s3.us-east-2.amazonaws.com/uhc_MP.002_2026-01-01.pdf?...",
"content_type": "application/pdf",
"filename": "uhc_MP.002_2026-01-01.pdf"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Path Parameters
Unique policy identifier
Example:
"uhc/MP.002/2026-01-01"
Query Parameters
'display' returns the original file; 'text' returns an LLM-optimized markdown version
Available options:
display, text Response
Successful Response
Short-lived presigned URL to download the policy file (expires within ~15 minutes; request it just before use).
Example:
"https://blockstore.example/policy.pdf?X-Amz-Signature=..."
MIME type of the file
Available options:
application/pdf, text/html, text/markdown Example:
"application/pdf"
Suggested filename for download
Example:
"uhc_MP.002_2026-01-01.pdf"
