Skip to main content

Audience:

Developers

Export card data using the API

Export your card data as a CSV with the exportCardData mutation.

Guide

  1. Call the exportCardData mutation.
  2. Add your email (line 4). A link to download the .csv export is sent to the email address you provide.
  3. Narrow the export with filters if needed (line 5).
  4. Add the success payload, including the exportId (line 10), and rejections.

Mutation

Open in API Explorer
mutation ExportCards {
exportCardData(
input: {
email: "$YOUR_EMAIL_ADDRESS"
filters: { types: Virtual, statuses: Enabled }
}
) {
... on ExportDataSuccessPayload {
__typename
exportId
}
... on MaximumSimultaneousExportsRejection {
__typename
message
}
... on MaximumDailyExportsReachedRejection {
__typename
message
}
}
}

Payload

The payload returns the export ID.

{
"data": {
"exportCardData": {
"__typename": "ExportDataSuccessPayload",
"exportId": "$EXPORT_ID"
}
}
}

After finalizing your export, a download link is sent to the email address you provided.