GET/v1/customers/{id}/data-export
Data Subject Access Request (DSAR)
Initiates an NDPA s.34-certified data export. Returns a downloadable JSON bundle containing decrypted PII and exhaustive institutional history for the target data subject.
Authentication Protocol
Bearer <API_KEY>Path Parameters
idintegerRequired
The platform's internal customer identifier.
Transmission Examples
curl
curl -X GET https://api.topsafe.ai/api/v1/customers/74/data-export \
-H "Authorization: Bearer YOUR_JWT" \
-H "X-API-Key: YOUR_INSTITUTION_KEY" \
--output dsar_customer_74.jsonSchema Response
json
{
"export_metadata": {
"exported_at": "2026-04-21T10:42:00+00:00",
"exported_by_user_email": "compliance@demo-mfb.com",
"legal_basis": "NDPA s.34 / CBN AML 2025"
},
"customer": {
"bvn": "222******89",
"nin": "543******12",
"phone": "+234 810 *** 4567",
"full_name": "Blessing Eze"
},
"transactions": [ /* full history */ ],
"summary": {
"transactions_count": 47,
"kyc_results_count": 3,
"alerts_count": 1
}
}