Skip to main content
GET
/
v1
/
compliance
/
dsar
List DSAR jobs
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://sandbox.api.enfinitos.com/v1/compliance/dsar', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "jobs": [
      {
        "id": "<string>",
        "orgId": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "scope": {
          "dataSubjectId": "<string>",
          "windowStart": "2023-11-07T05:31:56Z",
          "windowEnd": "2023-11-07T05:31:56Z",
          "campaignIds": [
            "<string>"
          ],
          "substrates": [
            "<string>"
          ]
        },
        "requestedBy": "<string>",
        "requestNotes": "<string>",
        "progress": {
          "rowsCollected": 123,
          "rowsExpected": 123,
          "bytesPackaged": 123,
          "lastHeartbeatAt": "2023-11-07T05:31:56Z",
          "workerId": "<string>"
        },
        "delivery": {
          "bundleR2Key": "<string>",
          "bundleSizeBytes": 123,
          "bundleSha256": "<string>",
          "bundleUrl": "<string>",
          "expiresAt": "2023-11-07T05:31:56Z",
          "downloadedAt": "2023-11-07T05:31:56Z",
          "downloadedBy": "<string>"
        },
        "failure": {
          "message": "<string>",
          "failedAt": "2023-11-07T05:31:56Z",
          "workerId": "<string>"
        },
        "timeline": [
          {
            "at": "2023-11-07T05:31:56Z",
            "actor": "<string>",
            "notes": "<string>"
          }
        ]
      }
    ],
    "total": 123,
    "filteredCount": 123,
    "counts": {},
    "activeCount": 123,
    "activeLimit": 123
  },
  "contractVersion": "<string>"
}

Authorizations

Authorization
string
header
required

API key sent as Authorization: Bearer <api-key>.

Query Parameters

state
enum<string>

Filter to a single job state. DSAR / tenant-export job lifecycle. The worker drives REQUESTED → COLLECTING → PACKAGING → READY; download drives READY → DELIVERED; a TTL sweep drives READY → EXPIRED. DELIVERED, EXPIRED and FAILED are terminal.

Available options:
REQUESTED,
COLLECTING,
PACKAGING,
READY,
DELIVERED,
EXPIRED,
FAILED

Response

DSAR jobs (optionally filtered) plus per-state counts.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"