status is completed or failed. For completed export jobs, the response includes a downloadUrl — a pre-signed S3 URL valid for one hour. For import jobs, check the errors array for any records that were skipped.
Request
GET https://api.clinikapi.com/v1/bulk/jobs/:jobId
Headers
Your ClinikAPI secret key (
clk_live_* or clk_test_*).Path parameters
The job ID returned by the bulk export or import endpoint (e.g.
job_abc123).Response
Returns200 OK with the current job state wrapped in the standard envelope.
Job ID.
Job type:
export or import.Current job status. One of:
pending, processing, completed, failed.Total number of records to process (populated once the job begins processing).
Number of records processed so far.
Pre-signed S3 URL to download the NDJSON export file. Present only when
type is export and status is completed. Valid for one hour.Array of error objects for any records that failed during processing. Each entry includes a record index and error message.
Standard response metadata including
requestId, timestamp, status, and rate-limit fields.Job status values
| Status | Description |
|---|---|
pending | Job is queued and waiting to run. |
processing | Job is actively running. |
completed | Job finished successfully. |
failed | Job encountered a fatal error. Check errors for details. |