curl --request POST \
--url https://pria.praxislxp.com/api/admin/exports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resource": "accounts",
"filters": {
"activeOnly": true,
"accountsearch": "acme"
},
"columnIds": [
"name",
"status",
"managerEmail",
"credits"
]
}
'{
"success": true,
"jobId": "6671abc1234def5678901234",
"message": "Your export is being prepared. We will email you a download link when it is ready."
}Queue an async full-dataset CSV export
Queues a background CSV export for the specified admin resource. The export worker leases the job, applies the same role-scoped filter as the list endpoint (so a non-super admin only exports their managed accounts), builds the CSV, saves it to the requesting admin’s private vault, and emails a download link when ready.
Filters and columnIds from the request body narrow the result but never widen the caller’s authorized scope.
curl --request POST \
--url https://pria.praxislxp.com/api/admin/exports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resource": "accounts",
"filters": {
"activeOnly": true,
"accountsearch": "acme"
},
"columnIds": [
"name",
"status",
"managerEmail",
"credits"
]
}
'{
"success": true,
"jobId": "6671abc1234def5678901234",
"message": "Your export is being prepared. We will email you a download link when it is ready."
}Authorizations
JWT token passed in authorization header
Body
Export registry key identifying the dataset to export (e.g. 'accounts').
"accounts"
Opaque per-resource filter payload (same shape as the list endpoint body). The worker re-applies role-scoped authorization on top of these filters — they can only narrow, never widen, the caller's scope.
{
"activeOnly": true,
"accountsearch": "acme"
}Ordered list of column ids to include in the CSV (from the resource's registry column definitions). Unknown ids are silently ignored. Capped at 200.
["name", "status", "managerEmail", "credits"]Response
Export job queued successfully. A download link will be emailed when ready.
Was this page helpful?