Skip to main content
POST
Queue a recipient worksheet CSV export

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Path Parameters

program_id
required

Accessible program id or all programs. Footer/export also accept0 for the combined context.

Example:

42

Body

application/json

Validated request fields for this operation.

Recipient worksheet state. filter is always required, including legacy requests. A supplied filterGroups array must be nonempty. Presence operators isUnknown, hasAnyValue and isEmpty omit value; other groups require it.

filter
string

Archived-view selector. Use string false for active and true for archived. Recipient views also support available, sponsored and unsponsored.

Example:

"false"

filterGroups
object[]

Multiple typed comparisons. Requires filter when present; value is required except supported presence/empty operators. Saved-view filters are sanitized to current allowed fields.

query
string

Worksheet search text; recipient search defaults to title/id fields when keysArray is absent.

Example:

"Jane"

keysArray
string[]

Legacy comparison/search field keys.

comparisonOperator
string

Legacy single comparison operator.

Example:

"contains"

savedFilterId
integer

Saved view/report from this organization and worksheet module; missing/unmatched ids are ignored.

Example:

42

saved_filter_id
integer

Compatibility alias for savedFilterId.

Example:

42

fields
string[]

Selected column keys; defaults to saved/current form preferences.

column_order
string[]

Preferred allowed column ordering.

sortKey
string

Allowed selected/system/custom sort key.

Example:

"display_name"

sortOrder
enum<string>

Sort direction; unsupported directions normalize to asc where validated.

Available options:
asc,
desc
Example:

"asc"

date_from
string<date>

Lower date bound, interpreted with module/saved report date semantics.

Example:

"2026-01-01"

date_to
string<date>

Upper date bound; donor created-at range applies when both bounds are supplied and no advanced date override exists.

Example:

"2026-10-20"

program_surface
enum<string>

Combined all-program scope; defaults recipients. Campaigns selects campaign programs.

Available options:
recipients,
campaigns
Example:

"recipients"

export_delivery
enum<string>

Use email to request email delivery; omitted/default uses Activity notification/download. Delivery also depends on worker and organization settings.

Available options:
email
Example:

"email"

column_labels
object

Optional field-key to CSV header-label override map.

Response

Operation result.

message
string
required
Example:

"Export initiated successfully. You will get a notification in Activity when the CSV is ready to download."

status
enum<string>
required
Available options:
queued
Example:

"queued"

export_id
integer
required
Example:

42

status_url
string
required
Example:

"/admin/entities/exports/42/status"