---
title: "Request a data export"
method: POST
path: "/public/v2/export-jobs/"
tags: ["Data Exports"]
---

# Request a data export

`POST /public/v2/export-jobs/`

Requests a data refresh. Execution is orchestrated by DualEntry and starts when capacity allows — typically within minutes. There is no SLA on start time. Exports also run automatically on a schedule; this endpoint forces an off-cycle refresh. Poll `GET /export-jobs/{id}/` for completion.

Always returns `202 Accepted`. Calling it while an export is already running is safe: the in-flight job is returned with `deduplicated: true` and no second export is started.

## Headers

- `Idempotency-Key` string

## Request body

- PublicExportJobSchemaIn
  - `integration_id` integer, nullable — Destination integration to export through. Optional when the organization has exactly one connected destination.

## Response `202`

Accepted

- PublicExportJobRequestSchemaOut — Envelope for `POST /export-jobs/`: the job to poll, plus whether it was already running.
  - `job` PublicExportJobSchemaOut, required — Sanitized view of an export job. Infra fields (s3_key, crawler/ETL jobs) are never included.
    - `id` integer, required
    - `integration_id` integer, nullable — ID of the destination integration the export runs through.
    - `status` 'pending' | 'running' | 'completed' | 'failed', required — The four states a caller needs; the internal pipeline states collapse onto these.
    - `error` string, nullable — Set only when `status` is `failed`.
    - `created_at` string, date-time, required
    - `started_at` string, date-time, nullable
    - `completed_at` string, date-time, nullable
  - `deduplicated` boolean, required — `true` when an export was already in progress and that existing job is returned instead of a new one.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `500` — Internal Server Error

## Changes

- **2026-08-28** `48edcb3acb74` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/dualentry/apis/dualentry-public-api/changes/public/v2/export-jobs/post.md)

---

[API](https://skmtc.dev/dualentry/apis/dualentry-public-api.md) · [All operations](https://skmtc.dev/dualentry/apis/dualentry-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dualentry/dualentry-public-api/revisions/48edcb3acb74/schema)
