Synthetics

Get a presigned URL for downloading a test file

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

post/api/v2/synthetics/tests/{public_id}/files/download

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/synthetics/tests/{public_id}/files/download
  • Auth
    • API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
    • or OAuth 2
      Authorization code: /oauth2/v1/authorize
      Token URL: /oauth2/v1/token scopes: synthetics_read

Path parameters

public_idstring required
Example:abc-def-123

The public ID of the Synthetic test.

Request body

bucketKeystring required

The bucket key referencing the file to download.

Example request

{
  "bucketKey": "api-upload-file/abc-def-123/2024-01-01T00:00:00_uuid.json"
}

Response

OK

urlstring

A presigned URL to download the file. The URL expires after a short period.

Example response

{
  "url": "https://storage.example.com/presigned-download-url"
}

Changes

No recorded changes to this operation across all 1 revision of this API.