SumSub KYC Token Sharing

The SumSub KYC Token Sharing API enables you to bulk-import existing SumSub KYC verifications via CSV upload and track their processing status.

Endpoints

MethodURLDescription
POST/entity/kyc/import/batchUpload KYC batch file
GET/entity/kyc/import/batch/{batchId}Get KYC batch status

Upload KYC Batch File

POST /entity/kyc/import/batch

Uploads a CSV file containing SumSub KYC records for batch processing.

Required Headers

NameTypeRequiredDescription
X-ProviderstringYesKYC provider. Allowed value: sumsub
Idempotency-KeystringYesUnique key to prevent duplicate uploads

Request Body (multipart/form-data)

FieldTypeRequiredDescription
filebinaryYesCSV file to upload

Response (201 Created)

{
  "batchId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "businessUuid": "b1c2d3e4-f5a6-7890-bcde-fa1234567890",
  "status": "pending",
  "totalRecords": 150,
  "message": "Batch uploaded successfully",
  "createdAt": "2024-01-15T10:30:00.000Z"
}

Error Codes (400 Bad Request)

CodeDescription
kyc_batch.upload.file_too_largeFile exceeds the maximum allowed size
kyc_batch.upload.invalid_dataInvalid CSV format, missing provider header, missing idempotency key, or no file provided
kyc_batch.upload.duplicate_file_or_contentA file with the same content has already been uploaded

Other Responses

StatusDescription
401Unauthorized — missing or invalid API key
500Internal server error

Get KYC Batch Status

GET /entity/kyc/import/batch/{batchId}

Retrieves the processing status and summary of a previously uploaded batch.

Path Parameters

NameTypeRequiredDescription
batchIdstring (UUID)YesThe ID of the batch to query

Response (200 OK)

{
  "batchId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "completed",
  "totalRecords": 150,
  "processedRecords": 148,
  "failedRecords": 2,
  "createdAt": "2024-01-15T10:30:00.000Z",
  "updatedAt": "2024-01-15T10:45:00.000Z",
  "startedAt": "2024-01-15T10:31:00.000Z",
  "completedAt": "2024-01-15T10:45:00.000Z",
  "summary": {
    "successfulRecords": 148,
    "errors": [
      {
        "rowNumber": 42,
        "error": "Invalid SumSub applicant ID",
        "entityData": {}
      }
    ]
  }
}

Batch Status Values

StatusDescription
pendingBatch uploaded, awaiting processing
in_progressBatch is currently being processed
completedAll records processed successfully
failedBatch processing failed
canceledBatch processing was canceled

Other Responses

StatusDescription
401Unauthorized — missing or invalid API key
404Batch not found
500Internal server error