Skip to main content
GET
Get latest completed export job
A failed or running job never replaces it, so you always get the last good snapshot. integration_id is optional when the organization has exactly one connected destination. Returns 404 when the destination has no completed export.

Authorizations

Authorization
string
header
required

An access token from the DualEntry authorization server, sent as Authorization: Bearer <token>. The token acts as the user who signed in, with that user's roles and company access. Do not send an X-API-KEY header in the same request.

Query Parameters

integration_id
integer | null

Response

OK

Sanitized view of an export job. Infra fields (s3_key, crawler/ETL jobs) are never included.

id
integer
required
status
enum<string>
required

pending, running, completed, or failed.

Available options:
pending,
running,
completed,
failed
created_at
string<date-time>
required
integration_id
integer | null

ID of the destination integration the export runs through.

error
string | null

Set only when status is failed.

started_at
string<date-time> | null
completed_at
string<date-time> | null
download_url
string | null

Link to download the .tar.gz archive. It is set only on a completed job of a parquet_archive destination. The link is valid for a limited time, so request the job again when you need a new link. Do not store the link. It is null when the job completed more than 30 days ago, because the archive is then deleted. A caller with access to only some companies gets no link, because the archive holds every company of the organization.