---
title: "Get a presigned URL for downloading a test file"
method: POST
path: "/api/v2/synthetics/tests/{public_id}/files/download"
tags: ["Synthetics"]
---

# Get a presigned URL for downloading a test file

`POST /api/v2/synthetics/tests/{public_id}/files/download`

Get a presigned URL to download a file attached to a Synthetic test.
The returned URL is temporary and expires after a short period.

## Path parameters

- `public_id` string, required

## Request body

- SyntheticsTestFileDownloadRequest — Request body for getting a presigned download URL for a test file.
  - `bucketKey` string, required — The bucket key referencing the file to download.

## Response `200`

OK

- SyntheticsTestFileDownloadResponse — Response containing a presigned URL for downloading a test file.
  - `url` string — A presigned URL to download the file. The URL expires after a short period.

## Other responses

- `400` — API error response.
- `403` — Forbidden.
- `404` — API error response.
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/versions/da68bf029e4c/schema)
