Skip to main content
GET
/
v1
/
compliance
/
dsar
/
{jobId}
/
download
Download a DSAR export
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://sandbox.api.enfinitos.com/v1/compliance/dsar/{jobId}/download', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "artifact": {
      "schemaVersion": "<string>",
      "generatedAt": "2023-11-07T05:31:56Z",
      "jobId": "<string>",
      "orgId": "<string>",
      "scope": {
        "dataSubjectId": "<string>",
        "windowStart": "2023-11-07T05:31:56Z",
        "windowEnd": "2023-11-07T05:31:56Z",
        "campaignIds": [
          "<string>"
        ],
        "substrates": [
          "<string>"
        ]
      },
      "sections": [
        {
          "name": "<string>",
          "count": 123,
          "totalBeforeFilter": 123,
          "items": [
            "<unknown>"
          ]
        }
      ],
      "integritySha256": "<string>",
      "auditReport": {
        "jobId": "<string>",
        "orgId": "<string>",
        "requestedBy": "<string>",
        "requestedAt": "2023-11-07T05:31:56Z",
        "generatedAt": "2023-11-07T05:31:56Z",
        "sectionCounts": {},
        "totalRecords": 123,
        "redactionNotes": [
          "<string>"
        ]
      }
    }
  },
  "contractVersion": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

jobId
string
required

DSAR job id (prefixed dsar:).

Response

The export artifact, served as a JSON attachment.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"