Transcend Docs
API referenceData subject request

Submit multiple DSRs via workflow config

POST
/v1/data-subject-request-bulk

Submit multiple data subject requests in a single call. Each item targets a workflow configuration; request type and data subject class are derived from that config rather than specified in the request body. Send up to 100 items per call.

NOTE: This feature requires that you have migrated to workflows. See the Workflows quickstart guide.

Reading the response

Inputs succeed or fail one at a time. An HTTP 200 response has two lists:

  • requests: one entry per accepted input, in input order. inputIndex is the input it came from, and outcome says what happened (CREATED, ALREADY_OPEN, DROP_RECORDS_LINKED, or RESTARTED).
  • validationErrors: one entry per input that was not created, with a code, the input index, and a message.

A 200 does not mean every input was created. Always read validationErrors, fix those inputs, and resubmit only them. Do not resubmit inputs that are already in requests.

When the whole batch is rejected

The response is HTTP 400 with { message, errors }, and no requests are created, when:

  • the body cannot be parsed, for example when input is not an array. errors is empty.
  • input has more than 100 items (SUBMISSION_LIMIT_EXCEEDED).
  • every input fails.
  • any input fails Sombra validation and the batch includes DROP fields (dropRunId or dropRecords).
  • a DROP linkage check fails, such as DROP_IDENTIFIER_COVERAGE_MISMATCH.

In errors, a per-input code always has an index. A batch-level code never has one.

Sombra versions

Sombra versionBehavior
7.553.0 or laterEach entry in requests has an outcome. An open duplicate returns ALREADY_OPEN instead of failing the batch.
7.586.0 or laterInputs that fail Transcend validation, such as REGION_NOT_IN_WORKFLOW, go to validationErrors. The other inputs are still created.
7.676.0 or laterInputs that fail Sombra validation, such as INVALID_REQUEST_INPUT or IDENTIFIER_VALIDATION_FAILED, also go to validationErrors. Before 7.676.0, any Sombra validation failure rejects the whole batch with HTTP 400.

To keep rejecting the whole batch when any input fails Sombra validation on 7.676.0 or later, set ENABLE_BULK_DSR_PARTIAL_FORWARD=false on your Sombra. See Sombra environment variables.

Handling a response

const res = await fetch(`${SOMBRA_URL}/v1/data-subject-request-bulk`, {  method: 'POST',  headers,  body: JSON.stringify({ input: inputs }),});const body = await res.json();if (res.status === 200) {  for (const request of body.requests) {    // Save request.id against the input it came from.    saveRequest(inputs[request.inputIndex], request.id, request.outcome);  }  // Fix these inputs, then resubmit only them.  const failed = body.validationErrors.map(({ index, code, message }) => ({    input: inputs[index],    code,    message,  }));} else if (res.status === 400) {  // Nothing was created. Entries without an index are batch-level.  for (const { code, index, message } of body.errors) {    reportError(index === undefined ? null : inputs[index], code, message);  }}

Error codes

Per-input codes (DsrErrorCode): INVALID_WORKFLOW_CONFIG_ID, MISSING_CORE_IDENTIFIER, RESTART_REQUEST_NOT_FOUND, RESTART_TIME_LIMIT_EXCEEDED, RECEIPT_TEMPLATE_NOT_FOUND, DROP_IDENTIFIER_COVERAGE_MISMATCH, DUPLICATE_DROP_RECORDS, IN_BATCH_DROP_IDEMPOTENCY_KEY_COLLISION, DROP_RECORDS_REQUIRE_DROP_RUN_ID, MAX_DROP_RECORDS_PER_REQUEST_EXCEEDED, UNKNOWN_DROP_RECORDS, DROP_RECORD_LIST_TYPE_MISMATCH, DROP_RUN_NOT_FOUND, DROP_RUN_NOT_INTAKE_ELIGIBLE, IDENTIFIER_VALIDATION_FAILED, UNSUPPORTED_IDENTIFIER_NAME, MISSING_REQUIRED_EMAIL, DATA_SILO_NOT_IN_WORKFLOW, CONFLICTING_DATA_SILO_FILTERS, TYPE_NOT_MATCHING_WORKFLOW, SUBJECT_TYPE_NOT_MATCHING_WORKFLOW, REGION_NOT_IN_WORKFLOW, INVALID_REQUEST_INPUT, INVALID_IDENTIFIER_JWT, DRAFT_WORKFLOW_CONFIG, DUPLICATE_OPEN_REQUEST, OPEN_PARENT_REQUEST.

Batch-level codes (DsrBulkErrorCode): NO_INPUTS_PROVIDED, SUBMISSION_LIMIT_EXCEEDED, MIXED_CEK_CONTEXT, DH_CONTEXT_REQUIRED, CONCURRENT_SUBMISSION_CONFLICT, INVALID_BULK_INPUT. MIXED_CEK_CONTEXT and DH_CONTEXT_REQUIRED do not occur on this endpoint.

Branch on code, not on message. Message text can change between releases.

Authorization

Transcend_API_Key Submit New Data Subject Request
headerAuthorizationBearer <token>

authorization: Bearer <>

Scope: Submit New Data Subject Request

Header Parameters

authorization*string

An API key generated from the Transcend dashboard: https://app.transcend.io/infrastructure/api-keys.

x-sombra-authorization?string

The Sombra internal key. This header is only needed for self-hosted Sombra gateways. See https://docs.transcend.io/docs/dsr-automation/api-integration/authentication#authenticating-to-sombra

content-type*string

Specify content-type: application/json for a JSON response from the Transcend API.

Matchapplication-json

Request Body

application/json
  1. body
input*array<>

One or more DSRs to submit.

Items1 <= items

Response Body

At least one input was accepted. requests has one entry per accepted input, with its outcome and inputIndex. validationErrors lists the inputs that were not created, so a 200 can still contain failures. Check validationErrors on every response.

application/json
  1. response
requests*array<>

Accepted inputs, in input order. Failed inputs have no entry.

validationErrors*array<>

Inputs that were not created, sorted by index. Empty when every input was accepted. Requires Sombra 7.586.0 or later.

curl -X POST 'https://multi-tenant.sombra.transcend.io/v1/data-subject-request-bulk' \  -H 'authorization: string' \  -H 'content-type: string' \  -H 'Content-Type: application/json' \  -d '{  "input": [    {      "workflowConfigId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",      "attestedAuthContext": {        "coreIdentifier": "id-123456789",        "email": "user@example.com"      }    }  ]}'
Example Response
{  "requests": [    {      "id": "da13d328-3f9d-40d5-9312-9f4fcf3ad0d2",      "status": "COMPILING",      "outcome": "CREATED",      "inputIndex": 0,      "type": "ACCESS",      "subjectType": "customer",      "email": "user@example.com",      "coreIdentifier": "id-123456789",      "isSilent": false,      "isTest": false,      "replyToEmailAddresses": [],      "country": null,      "countrySubDivision": null,      "partition": null,      "attributeValues": [],      "workflowConfig": {        "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",        "internalName": "GDPR Access Request",        "workflowConfigType": "DSR",        "workflowConfigVisibility": "PUBLISHED"      },      "link": "https://app.transcend.io/privacy-requests/incoming-requests/da13d328-3f9d-40d5-9312-9f4fcf3ad0d2"    }  ],  "validationErrors": []}