Audience:
Developers
Export user data using the API
Export the user data available on the Dashboard as a .csv file, programmatically.
Guide
- Call the
exportUserDatamutation. - Add your
email. A link to download the.csvexport is sent to the email address you provide. - Optionally, add
filtersto narrow the export: user status, nationality, identification level, preferred notification channel, mobile phone number, birthdate, or a search string. - Add the success payload and rejections.
Mutation
Open in API Explorermutation ExportUsers {
exportUserData(input: { email: "$YOUR_EMAIL_ADDRESS" }) {
... on ExportDataSuccessPayload {
__typename
exportId
}
... on MaximumSimultaneousExportsRejection {
__typename
message
}
... on MaximumDailyExportsReachedRejection {
__typename
message
}
}
}
Payload
The payload returns the export ID.
{
"data": {
"exportUserData": {
"__typename": "ExportDataSuccessPayload",
"exportId": "$EXPORT_ID"
}
}
}
After finalizing your export, a download link is sent to the email address you provided.
Also available
Export user dataFrom the Dashboard