メインコンテンツまでスキップ

GET /jobs/{job_id}/download

Returns a signed Supabase Storage URL for downloading the result file.

Query parameters​

ParameterTypeDefaultOptions
typestringxlsx_basiccsv_basic, md, xlsx_basic, xlsx_advanced, docx, pptx

Request​

curl -H "X-API-Key: chu_live_xxxxxxxx" \
"https://your-domain.com/api/v1/jobs/job-abc123/download?type=xlsx_basic"

Response​

{
"download_url": "https://supabase-storage.example.com/results/job-abc123/result.xlsx?token=..."
}
備考

The signed URL is valid for 1 hour. Request a new URL if it expires.

XLSX auto-conversion​

For xlsx_basic and xlsx_advanced types, if the file hasn't been generated yet, it will be auto-converted on the first download request.

FormatCost (first conversion only)
xlsx_basic$0.001 per unit (1 milli-USD)
xlsx_advanced$0.003 per unit (3 milli-USD)

Subsequent downloads of the same format are free.

Errors​

StatusMeaning
400Job is not done yet
402Insufficient credits for XLSX conversion
404Result file not found for the requested type