const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
scope: {
dataSubjectId: '<string>',
windowStart: '2023-11-07T05:31:56Z',
windowEnd: '2023-11-07T05:31:56Z',
campaignIds: ['<string>'],
substrates: ['<string>']
},
format: 'JSON',
requestedBy: '<string>',
requestNotes: '<string>'
})
};
fetch('https://sandbox.api.enfinitos.com/v1/compliance/dsar', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.api.enfinitos.com/v1/compliance/dsar"
payload = {
"scope": {
"dataSubjectId": "<string>",
"windowStart": "2023-11-07T05:31:56Z",
"windowEnd": "2023-11-07T05:31:56Z",
"campaignIds": ["<string>"],
"substrates": ["<string>"]
},
"format": "JSON",
"requestedBy": "<string>",
"requestNotes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.enfinitos.com/v1/compliance/dsar"
payload := strings.NewReader("{\n \"scope\": {\n \"dataSubjectId\": \"<string>\",\n \"windowStart\": \"2023-11-07T05:31:56Z\",\n \"windowEnd\": \"2023-11-07T05:31:56Z\",\n \"campaignIds\": [\n \"<string>\"\n ],\n \"substrates\": [\n \"<string>\"\n ]\n },\n \"format\": \"JSON\",\n \"requestedBy\": \"<string>\",\n \"requestNotes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.api.enfinitos.com/v1/compliance/dsar")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"scope\": {\n \"dataSubjectId\": \"<string>\",\n \"windowStart\": \"2023-11-07T05:31:56Z\",\n \"windowEnd\": \"2023-11-07T05:31:56Z\",\n \"campaignIds\": [\n \"<string>\"\n ],\n \"substrates\": [\n \"<string>\"\n ]\n },\n \"format\": \"JSON\",\n \"requestedBy\": \"<string>\",\n \"requestNotes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.enfinitos.com/v1/compliance/dsar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"scope\": {\n \"dataSubjectId\": \"<string>\",\n \"windowStart\": \"2023-11-07T05:31:56Z\",\n \"windowEnd\": \"2023-11-07T05:31:56Z\",\n \"campaignIds\": [\n \"<string>\"\n ],\n \"substrates\": [\n \"<string>\"\n ]\n },\n \"format\": \"JSON\",\n \"requestedBy\": \"<string>\",\n \"requestNotes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyfalsecurl --request POST \
--url https://sandbox.api.enfinitos.com/v1/compliance/dsar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"scope": {
"dataSubjectId": "<string>",
"windowStart": "2023-11-07T05:31:56Z",
"windowEnd": "2023-11-07T05:31:56Z",
"campaignIds": [
"<string>"
],
"substrates": [
"<string>"
]
},
"format": "JSON",
"requestedBy": "<string>",
"requestNotes": "<string>"
}
'{
"ok": true,
"data": {
"job": {
"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>"
}
]
},
"activeLimit": 123
},
"contractVersion": "<string>"
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}Request a DSAR / tenant-export job
Request a new DSAR / tenant-export job. scope.kind selects the export semantics: DATA_SUBJECT (GDPR DSAR for one subject — requires scope.dataSubjectId; configuration sections are excluded under data minimisation), TENANT_FULL (operator-initiated full-tenant backup), or TENANT_SLICE (time-windowed slice — requires scope.windowStart + scope.windowEnd). The job lands REQUESTED; drive it with POST /v1/compliance/dsar/{jobId}/run. Per-tenant cap: 5 active (non-terminal) jobs at once — beyond the cap the request returns 429 RATE_LIMITED with a retry-after header. Requires scope audit:read — the job reads everything and destroys nothing.
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
scope: {
dataSubjectId: '<string>',
windowStart: '2023-11-07T05:31:56Z',
windowEnd: '2023-11-07T05:31:56Z',
campaignIds: ['<string>'],
substrates: ['<string>']
},
format: 'JSON',
requestedBy: '<string>',
requestNotes: '<string>'
})
};
fetch('https://sandbox.api.enfinitos.com/v1/compliance/dsar', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.api.enfinitos.com/v1/compliance/dsar"
payload = {
"scope": {
"dataSubjectId": "<string>",
"windowStart": "2023-11-07T05:31:56Z",
"windowEnd": "2023-11-07T05:31:56Z",
"campaignIds": ["<string>"],
"substrates": ["<string>"]
},
"format": "JSON",
"requestedBy": "<string>",
"requestNotes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.enfinitos.com/v1/compliance/dsar"
payload := strings.NewReader("{\n \"scope\": {\n \"dataSubjectId\": \"<string>\",\n \"windowStart\": \"2023-11-07T05:31:56Z\",\n \"windowEnd\": \"2023-11-07T05:31:56Z\",\n \"campaignIds\": [\n \"<string>\"\n ],\n \"substrates\": [\n \"<string>\"\n ]\n },\n \"format\": \"JSON\",\n \"requestedBy\": \"<string>\",\n \"requestNotes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.api.enfinitos.com/v1/compliance/dsar")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"scope\": {\n \"dataSubjectId\": \"<string>\",\n \"windowStart\": \"2023-11-07T05:31:56Z\",\n \"windowEnd\": \"2023-11-07T05:31:56Z\",\n \"campaignIds\": [\n \"<string>\"\n ],\n \"substrates\": [\n \"<string>\"\n ]\n },\n \"format\": \"JSON\",\n \"requestedBy\": \"<string>\",\n \"requestNotes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.enfinitos.com/v1/compliance/dsar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"scope\": {\n \"dataSubjectId\": \"<string>\",\n \"windowStart\": \"2023-11-07T05:31:56Z\",\n \"windowEnd\": \"2023-11-07T05:31:56Z\",\n \"campaignIds\": [\n \"<string>\"\n ],\n \"substrates\": [\n \"<string>\"\n ]\n },\n \"format\": \"JSON\",\n \"requestedBy\": \"<string>\",\n \"requestNotes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyfalsecurl --request POST \
--url https://sandbox.api.enfinitos.com/v1/compliance/dsar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"scope": {
"dataSubjectId": "<string>",
"windowStart": "2023-11-07T05:31:56Z",
"windowEnd": "2023-11-07T05:31:56Z",
"campaignIds": [
"<string>"
],
"substrates": [
"<string>"
]
},
"format": "JSON",
"requestedBy": "<string>",
"requestNotes": "<string>"
}
'{
"ok": true,
"data": {
"job": {
"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>"
}
]
},
"activeLimit": 123
},
"contractVersion": "<string>"
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}Authorizations
API key sent as Authorization: Bearer <api-key>.
Body
Show child attributes
Show child attributes
Export format. Unrecognised values fall back to JSON.
JSON, CSV, NDJSON, PARQUET Requester attribution. Defaults to the key's developerId.
Optional rationale captured for the audit trail.