This endpoint allows enterprise organization administrators to create and initiate a comprehensive data export for their organization or specific workspaces.
The export supports three data types:
data_type: "workflows"): Includes workflow runs, workbook details, user information, and other organizational data.data_type: "agents"): Includes agent configurations, metadata, tools, and creator information.data_type: "credit_logs"): Includes credit transaction history with charges, balances, categories, and user attribution.The available export_fields depend on the selected data_type. See the field descriptions below for details.
Note: Credit log exports work differently from workflow and agent exports. When data_type is "credit_logs", the following parameters are not applicable and will be ignored: export_level, workspace_ids, include_all_workspaces, include_personal_workspaces, and entity_ids. Credit log exports are always scoped to the entire organization. Use category_filter to filter by credit log category.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the user requesting the export.
Array of fields to include in the export. The available fields depend on the data_type.
Workflow fields (when data_type is "workflows"):
workbook_id - The workbook identifierworkbook_name - The workbook nameworkbook_created_ts - Workbook creation timestampuser_id - The user identifieruser_email - The user's email addressworkspace_id - The workspace identifierworkspace_name - The workspace namerun_id - The flow run identifiercredit_cost - Credits consumed by the runpl_run_created_ts - Flow run creation timestamppl_run_finished_ts - Flow run completion timestamppipeline - The full pipeline configuration (JSON)Agent fields (when data_type is "agents"):
agent_id - The agent identifieragent_name - The agent nameagent_description - The agent descriptionagent_model - The model used by the agentagent_system_prompt - The agent's system promptagent_created_ts - Agent creation timestampagent_tools - Tools configured for the agent (JSON)agent_metadata - Additional agent metadata (JSON)creator_email - Email of the user who created the agentworkspace_id - The workspace identifierworkspace_name - The workspace nameCredit log fields (when data_type is "credit_logs"):
user_email - Email of the user associated with the credit log entrytimestamp - When the credit transaction occurredcategory - The category of the credit log (e.g., PIPELINE_RUN, AGENT_RUN)type - The specific type of credit chargename - Display name of the credit log entryamount - Number of credits charged or adjustedbalance - Credit balance after the transactionlog_id - Unique identifier for the credit log entryproject_id - The project identifier (disabled by default)Not all combinations of selected fields are guaranteed to produce data for every row.
Start date for the export in ISO 8601 format (e.g., 2025-01-01T00:00:00Z).
End date for the export in ISO 8601 format (e.g., 2025-12-31T23:59:59Z).
The type of data to export. Use "workflows" to export workflow run data, "agents" to export agent configuration data, or "credit_logs" to export credit transaction history. Defaults to "workflows".
workflows, agents, credit_logs Only applicable when data_type is "credit_logs". Optional filter to export only credit logs matching a specific category (e.g., "PIPELINE_RUN", "AGENT_RUN", "CUSTOM_NODE_RD", "EXTERNAL_GUMCP_CALL"). When omitted, all categories are included.
The scope of the export. Use "organization" to export across the entire organization, or "workspace" to export from a single workspace (requires exactly one ID in workspace_ids). Defaults to "organization". Not applicable when data_type is "credit_logs".
workspace, organization Whether to include all workspaces in the organization. When true, also sets include_personal_workspaces to true. Not applicable when data_type is "credit_logs".
Whether to include personal workspaces in the export. Ignored if include_all_workspaces is true. Not applicable when data_type is "credit_logs".
An optional array of workspace IDs to include in the export. When export_level is "workspace", exactly one workspace ID is required. Ignored if include_all_workspaces is true. Not applicable when data_type is "credit_logs".
An optional array of specific entity IDs to filter the export. For workflow exports (data_type: "workflows"), these are workbook IDs. For agent exports (data_type: "agents"), these are agent IDs. When provided, only data for the specified entities will be included. Not applicable when data_type is "credit_logs".
Data export successfully initiated
Indicates whether the export was successfully initiated.
Unique identifier for the data export job. Use this with the Get export status endpoint to check progress and download the completed export.
The initial state of the export job. Will be REQUESTED upon creation.
REQUESTED Timestamp when the export was created (ISO 8601).