Skip to main content
GET
/
v1
/
ingestion
/
jobs
/
{job_id}
import olira

olira.init(api_key="YOUR_API_KEY")
job = olira.get_ingestion_job(job_id="ing-job-001")
print(job.status, job.progress_pct)
IngestionJob(
    job_id="ing-job-001",
    status="replaying",
    stage="replaying",
    progress_pct=45.0,
    estimated_seconds_remaining=3600,
)
olira.get_ingestion_job(job_id: str) -> IngestionJob
Requires scope: sdk:historical-ingest Poll every ~10 s during Phase 1 and every 30–60 s during replay/backfill.

Parameters

job_id
str
required
Ingestion job id from create_ingestion_job.

Returns

IngestionJob
job_id
str
Job id.
status
str
Current terminal or in-progress status.
stage
str
Pipeline stage label.
progress_pct
float
Progress percentage.
estimated_seconds_remaining
int | None
ETA during Phase 2 when available.

Raises

ExceptionWhen
AuthErrorHTTP 401 or 403 — invalid API key or insufficient OAuth scope for this endpoint.
ValidationErrorHTTP 400, 404, or 422 — malformed JSON, unknown patient, or validation failure (message includes response excerpt).
ServerErrorHTTP 409 (e.g. conflicting external identifier) or repeated 5xx after retries; includes status_code when applicable.
RateLimitErrorHTTP 429 — rate limited; check retry_after (seconds).
NetworkErrorConnection timeout, DNS failure, or read error after retries.
import olira

olira.init(api_key="YOUR_API_KEY")
job = olira.get_ingestion_job(job_id="ing-job-001")
print(job.status, job.progress_pct)
IngestionJob(
    job_id="ing-job-001",
    status="replaying",
    stage="replaying",
    progress_pct=45.0,
    estimated_seconds_remaining=3600,
)