Audience:
Developers
Export onboarding data using the API
Export the onboarding data available on your Dashboard programmatically with the API.
Guide
- Call the
exportOnboardingDatamutation. - Add your
email. A link to download the.csvexport is sent to the email address you provide. - If required, add filters to your export.
- The following mutation is filtered to
InvalidCompanyonboardings (line 5).
- The following mutation is filtered to
- Add the success payload and rejections.
Mutation
Open in API Explorermutation ExportOnboardings {
exportOnboardingData(
input: {
email: "$YOUR_EMAIL_ADDRESS"
filters: { types: Company, status: Invalid }
}
) {
... on ExportDataSuccessPayload {
__typename
exportId
}
... on MaximumSimultaneousExportsRejection {
__typename
message
}
... on MaximumDailyExportsReachedRejection {
__typename
message
}
}
}
Payload
The payload returns the export ID.
{
"data": {
"exportOnboardingData": {
"__typename": "ExportDataSuccessPayload",
"exportId": "$EXPORT_ID"
}
}
}
After finalizing your export, a download link is sent to the email address you provided.
Also available
Export onboarding dataFrom the Dashboard