Create Export Action
Changed onExport a collection of contacts to a CSV file. Supply fields to specify which contact columns appear in the CSV (including custom attribute keys). The action runs asynchronously — poll the returned record with GET /api/v2/contacts/export_actions/{id}. Once complete, file_url contains the download URL for the generated CSV. Exactly one target selection must be supplied: stable_id, stored_filter_id (alias filter_id), target_ids, or target_all. Returns 422 if none is provided or if the supplied value is invalid.
Request
- Base URLhttps://myworkspace.myclickfunnels.com/api/v2
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://accounts.myclickfunnels.com/oauth/authorizeToken URLhttps://accounts.myclickfunnels.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Request body
Example request
{
"contacts_export_action": {
"contacts_export_action": {
"fields": [
"email_address",
"first_name",
"tag_ids"
],
"stored_filter_id": "7"
}
}
}Response
Created
Example response
{
"id": 1,
"public_id": "dE6fG7",
"workspace_id": 42000,
"fields": [
"email_address",
"first_name",
"tag_ids"
],
"file_url": null,
"filter_id": 7,
"target_all": false,
"target_ids": [],
"target_count": 1500,
"performed_count": 0,
"created_by_id": 5,
"approved_by_id": null,
"scheduled_for": null,
"started_at": null,
"completed_at": null,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}Changes
- info
for the
pathrequest parameterworkspace_id, the type was generalized fromintegertostring - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info