Download the CSV for a completed Data Extract job.

Downloads the CSV for a completed Data Extract job. Triggers an automatic download of the CSV file.

SecuritybearerAuth
Request
path Parameters
id
required
integer <int64>

The ID of the Data Extract to download.

query Parameters
o
required
integer <int64>

Organization ID

Responses
200

Downloads the extract file automatically.

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

410

Returned when the extract download is no longer available.

429

Too many requests

503

Service Unavailable

default

Invalid Request

get/data-extracts/{id}/download
Request samples
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = 'https://console.automox.com/api/data-extracts/000/download?o=0000' Invoke-WebRequest -Method Get -Uri $url -Headers $headers -ContentType "application/octet-stream" -OutFile "$env:userprofile\Downloads\patch-history_report.csv"
Response samples
application/octet-stream
{}