Skip to main content
GET
/
api
/
dataframer
/
anonymization-runs
/
{run_id}
/
files
/
{file_id}
/
download
Download anonymized file
import requests

url = "https://df-api.dataframer.ai/api/dataframer/anonymization-runs/{run_id}/files/{file_id}/download/"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "download_url": "<string>",
  "file_name": "<string>",
  "content_type": "<string>"
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: "Bearer YOUR_API_KEY"

Path Parameters

run_id
string<uuid>
required

UUID of the completed anonymization run.

file_id
string
required

ID of the file to retrieve. Matches id from anonymized_files[] in the run response.

Response

Anonymized file content

Presigned download URL for a single anonymized file.

download_url
string<uri>

Presigned S3 URL to download the anonymized file. Expires after 1 hour.

file_name
string

Original file name.

content_type
string

MIME type of the file (e.g. text/plain, application/json).