HigherData

HigherData / Tool

jobs.download

Download a bounded CSV or JSONL page from a bulk job. Stream pages to a file; every page applies current suppression.

Scopes: data:read

This tool reads. It does not write.

REST: POST /api/v1/tools/jobs.download?execute=false. The same call is POST /api/v1/jobs/download?execute=false.

MCP tool name: jobs_download. It is in the default MCP catalog when your scopes allow it.

Input

jobs.download input
FieldTypeRequiredDescription
jobIdstringyesBulk job id. UUID.
formatstringyesFile format of the download. One of: csv, jsonl.
cursorstringnoCursor from the previous page. Omit it for the first page. At most 512 characters.
partialbooleannoAllow downloading a snapshot of completed rows while a job still runs.

Output

jobs.download output
FieldTypeRequiredDescription
contentstringyes
contentTypestringyes
nextCursorstring or nullyes
suppressedCountintegeryesAt least 0.

Request

curl -sS -X POST "https://higherdata.io/api/v1/tools/jobs.download?execute=false" \
  -H "Authorization: Bearer hd_example_replace_me" \
  -H "Content-Type: application/json" \
  -d '{
  "jobId": "11111111-1111-4111-8111-111111111111",
  "format": "csv"
}'

SDK

import { HigherData } from "higherdata-sdk";

const higherdata = new HigherData({
  apiKey: "hd_example_replace_me",
  apiUrl: "https://higherdata.io",
});

const result = await higherdata.call("jobs.download", {
  "jobId": "11111111-1111-4111-8111-111111111111",
  "format": "csv"
}, { execute: false });

Example

{
  "input": {
    "jobId": "11111111-1111-4111-8111-111111111111",
    "format": "csv"
  },
  "output": {
    "content": "name\nAcme Systems\n",
    "contentType": "text/csv",
    "nextCursor": null,
    "suppressedCount": 0
  }
}