Get Results
API Reference
Get Results
Fetch signed download URLs for completed job result files.
GET
Get Results
Request
Headers
| Header | Required | Description |
|---|---|---|
X-API-Key | Yes | Your PromptForge API key |
Path parameters
| Parameter | Type | Description |
|---|---|---|
job_id | string (UUID) | The job ID returned from POST /v1/jobs/init |
Example request
curl
Python
Response
Status:200 OK
| Field | Type | Description |
|---|---|---|
job_id | string | Job identifier |
status | string | Will always be COMPLETED on a 200 response |
files | array | List of result files available for download |
files[].filename | string | File name (e.g. results_part_001.jsonl, errors.jsonl) |
files[].url | string | Pre-signed GCS URL — download the file directly from here |
files[].expires_at | string (ISO 8601) | When the signed URL expires |
Result file format
results_part_NNN.jsonl
Large jobs are split into multiple result files (each up to a few thousand rows). Each line:| Field | Description |
|---|---|
prompt_id | The ID you provided in the input file |
result | The LLM’s response text |
model | Model that processed this prompt |
tokens_used | Total tokens consumed for this prompt |
errors.jsonl
Prompts that failed after exhausting all retries:errors.jsonl will still be present but empty.
Downloading all files
Errors
| Status | When |
|---|---|
401 | Missing or invalid X-API-Key |
404 | Job not found, or belongs to a different client |
409 | Job is not yet COMPLETED — poll /status first |

