Usage Data Export allows enterprise organization administrators to export comprehensive data from their Gumloop organization. This feature supports both one-time exports and continuous data drains for analysis, compliance reporting, credit consumption tracking, and backup purposes.Documentation Index
Fetch the complete documentation index at: https://docs.gumloop.com/llms.txt
Use this file to discover all available pages before exploring further.
What You Can Do
Track Credit Consumption
Monitor credit usage across teams and users over time
Compliance Reporting
Export data for audit trails and regulatory compliance
Usage Analytics
Analyze workflow execution patterns and user activity
Data Backup
Create backups of organizational workflow metadata
Billing Analysis
Understand cost allocation across teams and projects
Continuous Sync
Set up data drains to continuously push data to external destinations
Navigate to your organization’s data export settings at: gumloop.com/settings/organization/data_export
Data Types
Gumloop supports six types of data for both exports and drains:| Data Type | Description |
|---|---|
| Workflow Runs | Execution history including run IDs, credit costs, timestamps, and workflow metadata |
| Agents | Agent configurations including names, descriptions, system prompts, and tool settings |
| Agent Interactions | Agent interaction data including timestamps, credit costs, trigger types, and message counts |
| Credit Logs | Credit usage logs including amounts, categories, and balances |
| Audit Logs | Security and compliance audit logs including user actions, authentication events, and configuration changes |
| Gumstack | Gumstack MCP tool call activity including timestamps, statuses, and latency |

One-Time Exports
One-time exports let you download a snapshot of your organization’s data for a specific date range as a CSV file.Export Process
Select Date Range
Define the time period for your data extraction.
Features:

- Billing Period Presets: Quickly select a billing period from the dropdown
- Custom Date Range: Pick specific start and end dates with the calendar picker
- Timezone Support: Choose the timezone for date interpretation
Choose Teams
Select which teams to include in your export.

This step applies to Workflow Runs, Agents, and Agent Interactions exports only. Credit Logs, Audit Logs, and Gumstack exports are scoped to the entire organization.

Organization Teams
Organization Teams
- Searchable List: Find teams quickly using search functionality
- Individual Selection: Choose specific teams with checkboxes
- Select All Toggle: Bulk select all organization teams
Personal Spaces
Personal Spaces
- Optional Toggle: Include personal spaces of organization members
- Comprehensive Coverage: When enabled, includes all user personal spaces in the export

Select Data Fields
Choose which data categories and fields to include in your export.

Field Presets
| Preset | Description |
|---|---|
| Minimal | Essential identifiers and timestamps only |
| Default | Recommended set of commonly used fields |
| Full | All available fields including detailed data |
| Custom | Select specific fields manually |
Available Data Categories
- Team Info
- Workbook Info
- User Info
- Run Info
- Credit Logs
| Field | Description |
|---|---|
| Team ID | Unique identifier for the team |
| Team Name | Display name of the team |
Managing Exports
Monitor and manage all your previous export requests from the Exports tab.
- Status Tracking: Real-time status updates with colored badges
- Date Range Display: Clear indication of exported data timeframes
- Creation Timestamps: When each export was requested
- Download Actions: Direct CSV file download capability
Downloaded Data Format
Exported data is provided as CSV files with:- Header Row: Column names matching selected fields
- Comma Separation: Standard CSV format for easy import into analysis tools
- Date Formatting: ISO 8601 timestamp format
Data Drains
Data Drains let you continuously push organization data to an external destination. Unlike one-time exports, drains run automatically in the background and sync new data as it becomes available.
How Drains Work
Once created, a drain continuously monitors your selected data type for new records. When new data appears, it is automatically batched and delivered to your configured destination. The drain keeps track of what has already been synced using an internal cursor, so you never receive duplicate data. Key behaviors:- Automatic syncing: New data is pushed to your destination without manual intervention
- Adaptive polling: Sync frequency adjusts based on data volume, from every 15 seconds during high activity to up to 10 minutes during quiet periods
- Crash-safe cursor: The sync cursor advances after each successfully delivered batch, so no data is lost if a delivery fails mid-cycle
- Automatic error handling: If a drain encounters 3 consecutive failures, it is automatically paused with an “Error” status
Creating a Drain
To create a new drain, switch to the Drains tab and click + Add Drain. The drain creation wizard walks you through the following steps:Select Data Type
Choose the type of data you want to continuously sync. Available types are: Workflow Runs, Agents, Agent Interactions, Credit Logs, Audit Logs, and Gumstack.
Configure Scope
Depending on the data type, configure filtering options for the drain:
- Workflow Runs, Agents, Agent Interactions: Select which teams to include and optionally include personal workspaces
- Credit Logs: Optionally filter by credit log category
- Audit Logs, Gumstack: No additional scope configuration needed (this step is skipped)
Unlike one-time exports, drains do not require a date range. They start syncing from the time the drain is created and continue forward.
Select Fields
Choose which fields to include in the synced data. The same field presets are available as for one-time exports: Minimal, Default, Full, or Custom.

Configure Destination
Set up where data should be delivered. You’ll need to provide a drain name and select a destination type.
Gumloop supports three destination types:

- Custom Endpoint
- Amazon S3
- Datadog
Push data to any HTTP endpoint you control.Configuration:Headers included:
- Endpoint Authentication: Connect your HTTP credentials (URL, authorization header, and optional signing secret)
- Format: Choose between JSON (default) or OTLP (OpenTelemetry Log Protocol)
Content-Type: application/jsonX-Gumloop-Drain-Id: The drain’s unique identifierX-Gumloop-Data-Type: The data type being syncedAuthorization: Your configured authorization header (if set)X-Gumloop-Signature: HMAC-SHA256 signature of the request body (if a signing secret is configured)
Managing Drains
The Drains tab shows all your configured drains with the following information:| Column | Description |
|---|---|
| Name | Drain name and destination type icon |
| Status | Current status: Active, Paused, or Error |
| Data Type | The type of data being synced |
| Last Synced | When data was last successfully delivered |
| Created | When the drain was first set up |
| Actions | Delete the drain |
Drain Statuses
| Status | Description |
|---|---|
| Active | The drain is running normally and syncing data |
| Paused | The drain has been paused |
| Error | The drain encountered 3 consecutive delivery failures and was automatically paused. Check your destination configuration and credentials |
API Integration
For programmatic access to data export functionality, use the following endpoints:Create Data Export
Create Data Export
Endpoint: Optional Parameters:
POST /export_dataRequest Body:data_type: The type of data to export ("workflows","agents","agent_interactions","credit_logs","audit_logs", or"gumstack"). Defaults to"workflows".entity_ids: Filter the export to specific entities. For workflow exports, provide workbook IDs. For agent exports, provide agent IDs. Not applicable for credit log exports.
Credit log exports work differently from workflow and agent exports:
- Team/workspace selection parameters (
workspace_ids,include_personal_workspaces) are not applicable - Credit log exports are always scoped to the entire organization
- Use
category_filterto filter by a specific credit log category (e.g.,"PIPELINE_RUN","AGENT_RUN") - Use
permission_group_filterto filter credit logs by a specific custom role (legacy parameter name retained for API compatibility)
Check Export Status
Check Export Status
Endpoint:
GET /export_statusQuery Parameters:user_id(required): User requesting the statusdata_export_id(required): Export job identifierdownload(optional): Set totrueto download the file if completed
List Data Drains
List Data Drains
Endpoint:
GET /data-drainsQuery Parameters:organization_id(required): Your organization ID
Create Data Drain
Create Data Drain
Endpoint: Required Parameters:
POST /data-drainsRequest Body:organization_id: Your organization IDname: A display name for the draindrain_type:"custom_endpoint","s3", or"datadog"data_type:"workflows","agents","agent_interactions","credit_logs","audit_logs", or"gumstack"destination_config: Configuration object specific to the destination typeexport_fields: Array of field IDs to include in the synced data
secret_id: The credential secret ID for authenticating with the destinationproject_ids: Filter to specific team/workspace IDsinclude_personal_workspaces: Include personal workspaces in scopeentity_ids: Filter to specific entity IDscategory_filter: Filter credit logs by categoryevent_type_filter: Filter audit logs by event typestart_ts: ISO 8601 timestamp to start syncing from (defaults to current time)
When creating a drain, Gumloop performs a preflight check to verify the destination is reachable. If the check fails, the drain will not be created and an error will be returned.
Delete Data Drain
Delete Data Drain
Endpoint:
DELETE /data-drains/{drain_id}Query Parameters:organization_id(required): Your organization ID
Complete API Documentation
View the full API reference for detailed endpoint specifications and examples
Related Resources
Audit Logging
Learn about security and compliance audit logging
Custom Roles
Learn about managing user permissions and roles
Organizations and Teams
Understand how to structure your Gumloop organization
Organization Analytics
View organization-wide usage analytics and dashboards
