Developers
Client SDKs
AMP

AMP SDK

Android

Initialization

Configuration

Network Security Configuration

Event Tracking

User Attributes

IDSync

Screen Events

Commerce Events

Location Tracking

Media

Kits

Application State and Session Management

Data Privacy Controls

Error Tracking

Opt Out

Push Notifications

WebView Integration

Logger

Preventing Blocked HTTP Traffic with CNAME

Workspace Switching

Linting Data Plans

Troubleshooting the Android SDK

API Reference

Upgrade to Version 5

Cordova

Cordova Plugin

Identity

Flutter

Getting Started

Usage

API Reference

Direct Url Routing

Direct URL Routing FAQ

Web

Android

iOS

iOS

Workspace Switching

Initialization

Configuration

Event Tracking

User Attributes

IDSync

Screen Tracking

Commerce Events

Location Tracking

Media

Kits

Application State and Session Management

Data Privacy Controls

Error Tracking

Opt Out

Push Notifications

Webview Integration

Upload Frequency

App Extensions

Preventing Blocked HTTP Traffic with CNAME

Linting Data Plans

Troubleshooting iOS SDK

Social Networks

iOS 14 Guide

iOS 15 FAQ

iOS 16 FAQ

iOS 17 FAQ

iOS 18 FAQ

API Reference

Upgrade to Version 7

React Native

Getting Started

Identity

Roku

Getting Started

Identity

Media

Unity

Upload Frequency

Getting Started

Opt Out

Initialize the SDK

Event Tracking

Commerce Tracking

Error Tracking

Screen Tracking

Identity

Location Tracking

Session Management

Xbox

Getting Started

Identity

Xamarin

Getting Started

Identity

Web

Initialization

Configuration

Content Security Policy

Event Tracking

User Attributes

IDSync

Page View Tracking

Commerce Events

Location Tracking

Media

Kits

Application State and Session Management

Data Privacy Controls

Error Tracking

Opt Out

Custom Logger

Persistence

Native Web Views

Self-Hosting

Multiple Instances

Web SDK via Google Tag Manager

Preventing Blocked HTTP Traffic with CNAME

Facebook Instant Articles

Troubleshooting the Web SDK

Browser Compatibility

Linting Data Plans

API Reference

Upgrade to Version 2 of the SDK

Alexa

API References
Data Subject Request API

Data Subject Request API Version 1 and 2

Data Subject Request API Version 3

Platform API

Key Management

Platform API Overview

Accounts

Apps

Audiences

Calculated Attributes

Data Points

Feeds

Field Transformations

Services

Users

Workspaces

Warehouse Sync API

Warehouse Sync API Overview

Warehouse Sync API Tutorial

Warehouse Sync API Reference

Data Mapping

Warehouse Sync SQL Reference

Warehouse Sync Troubleshooting Guide

ComposeID

Warehouse Sync API v2 Migration

Calculated Attributes Seeding API

Bulk Profile Deletion API Reference

Data Planning API

Group Identity API Reference

Custom Access Roles API

Pixel Service

Profile API

Audit Logs API

Events API

mParticle JSON Schema Reference

IDSync

Quickstart
HTTP Quick Start

Step 1. Create an input

Step 2. Create an output

Step 3. Verify output

Android

Overview

Step 1. Create an input

Step 2. Verify your input

Step 3. Set up your output

Step 4. Create a connection

Step 5. Verify your connection

Step 6. Track events

Step 7. Track user data

Step 8. Create a data plan

Step 9. Test your local app

iOS Quick Start

Overview

Step 1. Create an input

Step 2. Verify your input

Step 3. Set up your output

Step 4. Create a connection

Step 5. Verify your connection

Step 6. Track events

Step 7. Track user data

Step 8. Create a data plan

Java Quick Start

Step 1. Create an input

Step 2. Create an output

Step 3. Verify output

Python Quick Start

Step 1. Create an input

Step 2. Create an output

Step 3. Verify output

Node Quick Start

Step 1. Create an input

Step 2. Create an output

Step 3. Verify output

Web

Overview

Step 1. Create an input

Step 2. Verify your input

Step 3. Set up your output

Step 4. Create a connection

Step 5. Verify your connection

Step 6. Track events

Step 7. Track user data

Step 8. Create a data plan

Media SDKs

Android

iOS

Web

Server SDKs

Node SDK

Go SDK

Python SDK

Ruby SDK

Java SDK

Tools

Linting Tools

mParticle Command Line Interface

Smartype

Guides
Partners

Introduction

Outbound Integrations

Outbound Integrations

Firehose Java SDK

Inbound Integrations

Kit Integrations

Overview

Android Kit Integration

JavaScript Kit Integration

iOS Kit Integration

Compose ID

Glossary

Migrate from Segment to mParticle

Migrate from Segment to mParticle

Migrate from Segment to Client-side mParticle

Migrate from Segment to Server-side mParticle

Segment-to-mParticle Migration Reference

Data Hosting Locations

Rules Developer Guide

API Credential Management

The Developer's Guided Journey to mParticle

Guides
Composable Audiences

Composable Audiences Overview

User Guide

User Guide Overview

Warehouse Setup

Warehouse Setup Overview

Connections

Connections Overview

Google BigQuery

Databricks

Amazon Redshift

Snowflake

Data Models

Data Models Overview

Create a User Data Model

Create an Event Data Model

Create a Generic Data Model

Audience Setup

Frequently Asked Questions

Customer 360

Overview

User Profiles

Overview

User Profiles

Group Identity

Overview

Create and Manage Group Definitions

Calculated Attributes

Calculated Attributes Overview

Using Calculated Attributes

Create with AI Assistance

Calculated Attributes Reference

Predictions

Predictions Overview

View and Manage Predictions

Predict Future Behavior

Future Behavior Predictions Overview

Create Future Behavior Prediction

Manage Future Behavior Predictions

Create an Audience with Future Behavior Predictions

Next Best Action

Next Best Actions Overview

Create a Next Best Action

Manage Next Best Actions

Create an Audience with Next Best Actions

Getting Started

Create an Input

Start capturing data

Connect an Event Output

Create an Audience

Connect an Audience Output

Transform and Enhance Your Data

Platform Guide
Billing

Usage and Billing Report

The New mParticle Experience

The new mParticle Experience

The Overview Map

Observability

Observability Overview

Observability User Guide

Observability Troubleshooting Examples

Observability Span Glossary

Platform Settings

Audit Logs

Key Management

Platform Configuration

Event Match Quality Dashboard (Early Access)

Event Forwarding

Notifications

System Alerts

Trends

Introduction

Data Retention

Data Catalog

Connections

Activity

Data Plans

Live Stream

Filters

Rules

Blocked Data Backfill Guide

Tiered Events

mParticle Users and Roles

Analytics Free Trial

Troubleshooting mParticle

Usage metering for value-based pricing (VBP)

IDSync

IDSync Overview

Use Cases for IDSync

Components of IDSync

Store and Organize User Data

Identify Users

Default IDSync Configuration

Profile Conversion Strategy

Profile Link Strategy

Profile Isolation Strategy

Best Match Strategy

Aliasing

Segmentation
Audiences

Audiences Overview

Create an Audience

Connect an Audience

Manage Audiences

Audience Sharing

Match Boost

FAQ

Classic Audiences

Standard Audiences (Legacy)

Predictive Audiences

Predictive Audiences Overview

Using Predictive Audiences

New vs. Classic Experience Comparison

Analytics

Introduction

Core Analytics (Beta)

Setup

Sync and Activate Analytics User Segments in mParticle

User Segment Activation

Welcome Page Announcements

Settings

Project Settings

Roles and Teammates

Organization Settings

Global Project Filters

Portfolio Analytics

Analytics Data Manager

Analytics Data Manager Overview

Events

Event Properties

User Properties

Revenue Mapping

Export Data

UTM Guide

Analyses

Analyses Introduction

Segmentation: Basics

Getting Started

Visualization Options

For Clauses

Date Range and Time Settings

Calculator

Numerical Settings

Segmentation: Advanced

Assisted Analysis

Properties Explorer

Frequency in Segmentation

Trends in Segmentation

Did [not] Perform Clauses

Cumulative vs. Non-Cumulative Analysis in Segmentation

Total Count of vs. Users Who Performed

Save Your Segmentation Analysis

Export Results in Segmentation

Explore Users from Segmentation

Funnels: Basics

Getting Started with Funnels

Group By Settings

Conversion Window

Tracking Properties

Date Range and Time Settings

Visualization Options

Interpreting a Funnel Analysis

Funnels: Advanced

Group By

Filters

Conversion over Time

Conversion Order

Trends

Funnel Direction

Multi-path Funnels

Analyze as Cohort from Funnel

Save a Funnel Analysis

Explore Users from a Funnel

Export Results from a Funnel

Cohorts

Getting Started with Cohorts

Analysis Modes

Save a Cohort Analysis

Export Results

Explore Users

Saved Analyses

Manage Analyses in Dashboards

Journeys

Getting Started

Event Menu

Visualization

Ending Event

Save a Journey Analysis

Users

Getting Started

User Activity Timelines

Time Settings

Export Results

Save A User Analysis

Query Builder

Data Dictionary

Query Builder Overview

Modify Filters With And/Or Clauses

Query-time Sampling

Query Notes

Filter Where Clauses

Event vs. User Properties

Group By Clauses

Annotations

Cross-tool Compatibility

Apply All for Filter Where Clauses

Date Range and Time Settings Overview

User Attributes at Event Time

Understanding the Screen View Event

User Aliasing

Dashboards

Dashboards––Getting Started

Manage Dashboards

Dashboard Filters

Organize Dashboards

Scheduled Reports

Favorites

Time and Interval Settings in Dashboards

Query Notes in Dashboards

Analytics Resources

The Demo Environment

Keyboard Shortcuts

User Segments

Tutorials

Analytics for Marketers

Analytics for Product Managers

Compare Conversion Across Acquisition Sources

Analyze Product Feature Usage

Identify Points of User Friction

Time-based Subscription Analysis

Dashboard Tips and Tricks

Understand Product Stickiness

Optimize User Flow with A/B Testing

APIs

User Segments Export API

Dashboard Filter API

Warehouse Sync

Warehouse Sync User Guide

Historical Data and Warehouse Sync

Data Privacy Controls

Data Subject Requests

Default Service Limits

Feeds

Cross-Account Audience Sharing

Import Data with CSV Files

Import Data with CSV Files

CSV File Reference

Glossary

Video Index

Analytics (Deprecated)
Identity Providers

Single Sign-On (SSO)

Setup Examples

Settings

Debug Console

Data Warehouse Delay Alerting

Introduction

Developer Docs

Introduction

Integrations

Introduction

Rudderstack

Google Tag Manager

Segment

Data Warehouses and Data Lakes

Advanced Data Warehouse Settings

AWS Kinesis (Snowplow)

AWS Redshift (Define Your Own Schema)

AWS S3 Integration (Define Your Own Schema)

AWS S3 (Snowplow Schema)

BigQuery (Snowplow Schema)

BigQuery Firebase Schema

BigQuery (Define Your Own Schema)

GCP BigQuery Export

Snowflake (Snowplow Schema)

Snowplow Schema Overview

Snowflake (Define Your Own Schema)

APIs

Dashboard Filter API (Deprecated)

REST API

User Segments Export API (Deprecated)

SDKs

SDKs Introduction

React Native

iOS

Android

Java

JavaScript

Python

Object API

Developer Basics

Aliasing

Integrations
ABTasty

Audience

24i

Event

Aarki

Audience

Actable

Feed

AdChemix

Event

Adikteev

Audience

Event

Adjust

Event

Feed

Adobe Marketing Cloud

Cookie Sync

Server-to-Server Events

Platform SDK Events

Adobe Audience Manager

Audience

Adobe Campaign Manager

Audience

AdMedia

Audience

Adobe Experience Platform

Event

Adobe Target

Audience

AdPredictive

Feed

AgilOne

Event

Airship

Audience

Feed

Event

Algolia

Event

Amazon Kinesis

Event

Amazon Advertising

Audience

Amazon Kinesis Firehose

Audience

Event

Amazon S3

Event

Amazon Redshift

Data Warehouse

Amazon SNS

Event

Amazon SQS

Event

Amobee

Audience

Amplitude

Forwarding Data Subject Requests

Event

Ampush

Audience

Event

Analytics

Audience

Event

Forwarding Data Subject Requests

Anodot

Event

Antavo

Feed

AppLovin

Event

Audience

Apptentive

Event

AppsFlyer

Feed

Forwarding Data Subject Requests

Event

Apptimize

Event

Awin

Event

Apteligent

Event

Batch

Audience

Event

Microsoft Azure Blob Storage

Event

Bing Ads

Event

Bidease

Audience

Bluecore

Event

Bluedot

Feed

Blueshift

Event

Forwarding Data Subject Requests

Feed

Branch

Feed

Forwarding Data Subject Requests

Event

Branch S2S Event

Event

Button

Event

Audience

Bugsnag

Event

Census

Feed

Cadent

Audience

CleverTap

Audience

Event

Feed

comScore

Event

Conversant

Event

Cordial

Feed

Audience

Cortex

Event

Feed

Forwarding Data Subject Requests

Criteo

Audience

Event

Custom Feed

Custom Feed

Crossing Minds

Event

CustomerGlu

Feed

Event

Customer.io

Event

Audience

Feed

Databricks

Data Warehouse

Datadog

Event

Didomi

Event

Dynamic Yield

Audience

Event

Eagle Eye

Audience

Emarsys

Audience

Edge226

Audience

Epsilon

Event

Everflow

Audience

Facebook

Audience

Event

Facebook Offline Conversions

Event

Flurry

Event

Google Analytics for Firebase

Event

Flybits

Event

Foursquare

Audience

Feed

FreeWheel Data Suite

Audience

ForeSee

Event

Friendbuy

Event

Google Ad Manager

Audience

Google Ads

Audience

Event

Google Analytics

Event

Google Analytics 4

Event

Google BigQuery

Audience

Data Warehouse

Google Cloud Storage

Audience

Event

Google Enhanced Conversions

Event

Google Marketing Platform

Audience

Cookie Sync

Event

Google Pub/Sub

Event

Google Marketing Platform Offline Conversions

Event

Google Tag Manager

Event

Herow

Feed

Hightouch

Feed

Ibotta

Event

ID5

Kit

Heap

Event

Hyperlocology

Event

Impact

Event

InMarket

Audience

InMobi

Audience

Event

Inspectlet

Event

Intercom

Event

Insider

Audience

Event

Feed

ironSource

Audience

iPost

Audience

Feed

Iterable

Audience

Event

Feed

Jampp

Audience

Event

Kafka

Event

Kayzen

Audience

Event

Kissmetrics

Event

Klaviyo

Event

Audience

Kochava

Event

Feed

Forwarding Data Subject Requests

LaunchDarkly

Feed

Kubit

Event

Leanplum

Event

Audience

Feed

LifeStreet

Audience

Liftoff

Audience

Event

LinkedIn

LinkedIn Conversions API Integration

LiveLike

Event

Liveramp

Audience

Localytics

Event

mAdme Technologies

Event

MadHive

Audience

Mailchimp

Audience

Event

Feed

Marigold

Audience

Mautic

Event

Audience

Microsoft Azure Event Hubs

Event

Mediasmart

Audience

Microsoft Ads

Microsoft Ads Audience Integration

MediaMath

Audience

Mintegral

Audience

Mixpanel

Audience

Event

Forwarding Data Subject Requests

MoEngage

Audience

Event

Feed

Moloco

Audience

Event

Monetate

Event

Movable Ink

Event

Movable Ink - V2

Event

Attentive

Event

Feed

Multiplied

Event

Narrative

Audience

Event

Feed

myTarget

Event

Audience

Nami ML

Feed

Nanigans

Event

NCR Aloha

Event

OneTrust

Event

Optimizely

Audience

Event

Neura

Event

Oracle Responsys

Audience

Event

Oracle BlueKai

Event

Paytronix

Feed

Personify XP

Event

Persona.ly

Audience

PieEye

Inbound Data Subject Requests

Pilgrim

Event

Feed

Pinterest

Audience

Event

Plarin

Event

Postie

Event

Audience

Primer

Event

Punchh

Event

Audience

Feed

Pushwoosh

Audience

Event

Quantcast

Event

Qualtrics

Event

Radar

Event

Feed

Rakuten

Event

Regal

Event

Retina AI

Event

Feed

Reveal Mobile

Event

Rokt

Audience

Rokt Thanks and Pay+

Event

RevenueCat

Feed

RTB House

Audience

Event

Sailthru

Audience

Event

Salesforce Email

Audience

Event

Feed

Salesforce Mobile Push

Event

Salesforce Sales and Service Cloud

Event

Feed

Samba TV

Event

Audience

Scalarr

Event

SendGrid

Audience

Feed

SessionM

Event

Feed

ShareThis

Feed

Audience

SimpleReach

Event

Shopify

Custom Pixel

Feed

Singular

Event

Feed

Singular-DEPRECATED

Event

Skyhook

Event

Smadex

Audience

SmarterHQ

Event

Snapchat

Audience

Event

Slack

Event

Snapchat Conversions

Event

Snowflake

Data Warehouse

Snowplow

Event

Splunk MINT

Event

Split

Event

Feed

Sprig

Audience

Event

StartApp

Audience

Statsig

Event

Feed

Stormly

Audience

Event

Talon.One

Event

Audience

Feed

Loyalty Feed

Swrve

Event

Feed

Tapad

Audience

Tapjoy

Audience

Taptica

Audience

Taplytics

Event

The Trade Desk

Cookie Sync

Audience

Event

Teak

Audience

Ticketure

Feed

Triton Digital

Audience

Treasure Data

Audience

Event

TikTok Event

Audience

Audience Migration

Audience (Deprecated)

Event

TUNE

Event

Twitter

Audience

Event

Valid

Event

Vkontakte

Audience

Voucherify

Audience

Event

Vungle

Audience

Webhook

Event

Webtrends

Event

Wootric

Event

Yotpo

Feed

White Label Loyalty

Event

Xandr

Cookie Sync

Audience

YouAppi

Audience

Yahoo (formerly Verizon Media)

Audience

Cookie Sync

Z2A Digital

Event

Audience

Zendesk

Feed

Event

Reddit

Audience

Event

Remerge

Event

Audience

Braze

Forwarding Data Subject Requests

Feed

Audience

Event

Audit Logs API

The Audit Logs API allows you to programmatically query and export audit log records for your mParticle account. You can use it to monitor and investigate changes to your account and resources, and export records for compliance reporting. The API provides endpoints for querying JSON-formatted logs and downloading CSV exports.

Authentication

You can authenticate to the Audit Logs API using a bearer token.

To create a bearer token, send a POST request to mParticle’s SSO token endpoint at https://sso.auth.mparticle.com/oauth/token.

The JSON body of the request must contain:

  • client_id - the client ID, issued by mParticle when creating the API credentials
  • client_secret - the client secret, issued by mParticle when creating the API credentials
  • audience - set to a value of "https://api.mparticle.com"
  • grant_type - set to a value of "client_credentials"

Example cURL request

curl --request POST \
  --url https://sso.auth.mparticle.com/oauth/token \
  --header 'content-type: application/json' \
  --data '{"client_id":"...","client_secret":"...","audience":"https://api.mparticle.com","grant_type":"client_credentials"}'

Example HTTP request

POST /oauth/token HTTP/1.1
Host: sso.auth.mparticle.com
Content-Type: application/json
{
  "client_id": "your_client_id",
  "client_secret": "your_client_secret",
  "audience": "https://api.mparticle.com",
  "grant_type": "client_credentials"
}

A successful POST request to the token endpoint results in a JSON response as follows:

{
  "access_token": "YWIxMjdi883GHBBDnjsdKAJQxNjdjYUUJABbg6hdI.8V6HhxW-",
  "expires_in" : 28800,
  "token_type": "Bearer"
}

Subsequent requests to the API can then be authorized by setting the authorization header to:

Authorization: Bearer YWIxMjdi883GHBBDnjsdKAJQxNjdjYUUJABbg6hdI.8V6HhxW-

Tokens cannot be revoked, but they expire every eight hours. The initial token request can take between one and three seconds, so mParticle recommends that you cache the token and refresh it only when necessary.

Retrieve audit logs

POST https://api.mparticle.com/platform/experimental/{accountId}/auditlogs/query

Retrieve a paginated list of audit logs for your account. You can filter results by specifying values for action_types, actor_email, or resources in the request body, along with an optional date range.

The endpoint uses a pagination object that carries both the event ID and timestamp of the last record returned. To retrieve the next page, set the event_id and ts fields in your request body to the values from the previous response. Omit the pagination field to start from the first page.

Path parameters

Path Parameter Type Required Description
{accountId} Integer Yes The mParticle account ID for which you want to retrieve audit logs.

Request body parameters

Parameter Type Required Description
start String (date-time) Yes Start date and time for filtering audit logs (UTC, ISO 8601 format).
end String (date-time) No End date and time for filtering audit logs (UTC, ISO 8601 format). Defaults to the current time if not provided.
page_size Integer No Number of records to return per page (1 to 500). Defaults to 100.
pagination Object No Pagination object for retrieving the next page of results. Omit this field to retrieve the first page. When present, both pagination.event_id and pagination.ts must be provided.
event_id String No Event ID of the last record returned in the previous page. Use the pagination.event_id value from the previous response.
ts String (date-time) No Timestamp in UTC of the last record returned in the previous page (ISO 8601 format). Use the pagination.ts value from the previous response.
action_types Array [String] No Filter by one or more action types. Provide an array of values such as ["Create", "Update", "Delete"]. If not provided, all action types are included.
actor_email Array [String] No Filter by actor email addresses. Provide an array of user emails to return logs performed by those users. If not provided, logs from all actors are returned.
resources Array [String] No Filter by resource type. Provide an array of resource names such as ["Output", "Credential", "Audience"]. If not provided, logs from all resources are included.
search_term String No Search term used to find audit logs by resource_id (exact match) or resource_name (partial or similar match).

Example cURL request

curl --request POST \
  --url "https://api.mparticle.com/platform/experimental/{accountId}/auditlogs/query" \
  --header "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "start": "2025-01-01T00:00:00Z",
    "end": "2025-01-31T23:59:59Z",
    "page_size": 100,
    "pagination": {
      "event_id": "550e8400-e29b-41d4-a716-446655440000",
      "ts": "2025-01-15T12:30:45Z"
    },
    "action_types": ["Create", "Update", "Delete"],
    "actor_email": ["user@example.com", "admin@example.com"],
    "resources": ["Output", "Credential", "Audience"],
    "search_term": "audience-123"
  }'

Example JSON request body

{
  "start": "2025-01-01T00:00:00Z",
  "end": "2025-01-31T23:59:59Z",
  "page_size": 100,
  "pagination": {
    "event_id": "550e8400-e29b-41d4-a716-446655440000",
    "ts": "2025-01-15T12:30:45Z"
  },
  "action_types": [
    "Create",
    "Update",
    "Delete"
  ],
  "actor_email": [
    "user@example.com",
    "admin@example.com"
  ],
  "resources": [
    "Output",
    "Credential",
    "Audience"
  ],
  "search_term": "audience-123"
}

Response

A successful request receives a 200 response with all paginated audit log records and pagination metadata.

{
  "records": [
    {
      "event_id": "550e8400-e29b-41d4-a716-446655440000",
      "timestamp": "2025-01-15T12:30:45Z",
      "actor_type": "user",
      "actor_identifier": "john.doe@example.com",
      "action": "CreateOutput",
      "resource": "Output",
      "scope": "Workspace",
      "result": "Success",
      "product_area": "System",
      "mapped_action_type": "Read",
      "metadata": {
        "http_method": "POST",
        "headers": {
          "Content-Type": "application/json",
          "User-Agent": "Mozilla/5.0"
        },
        "url": "https://api.mparticle.com/v1/123/outputs",
        "status_code": 200,
        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
        "content_type": "application/json",
        "content_length": 1024,
        "action_arguments": {
          "workspaceId": 456,
          "outputId": 789
        },
        "latency_ms": 245,
        "response_content_type": "application/json",
        "payload": {
          "name": "New Output Configuration",
          "enabled": true
        },
        "entity_changes": [
          {
            "operation_type": "update",
            "table_name": "OutputConfiguration",
            "column_name": "IsEnabled",
            "old_value": "false",
            "new_value": "true",
            "primary_key": 12345
          }
        ]
      }
    }
  ],
  "pagination": {
    "event_id": "550e8400-e29b-41d4-a716-446655440000",
    "ts": "2025-01-15T12:30:45Z",
    "has_more": true,
    "record_count": 100
  }
}

Use the event_id and ts values from the response in your next request’s pagination object to retrieve the next page of results.

Export audit logs as CSV

GET https://api.mparticle.com/platform/experimental/{accountId}/auditlogs/export

Export all audit logs for a specific account as a CSV file. The endpoint streams data to efficiently handle large exports and supports filtering by date range, action type, and other parameters. Pagination is not used for exports. The API always returns all matching records for the specified filters in a single streamed CSV response. The response includes a downloadable CSV file named auditlogs_{accountId}_{startDate}_{endDate}.csv (for example, auditlogs_123_20250101_20250131.csv).

Path parameters

Path Parameter Type Required Description
{accountId} Integer Yes The mParticle account ID for which you want to retrieve audit logs.

Query parameters

Query Parameter Type Required Description
{start} String Yes Start date and time (UTC, ISO 8601 format) for filtering audit logs.
{end} String No End date and time (UTC, ISO 8601 format). Defaults to the current time if not provided.
{action_types} Array [String] No Comma-separated list of action types to include in the export. Available values are: Read, Create, Update, and Delete. If not provided, all action types are included. For exports, Read actions are excluded by default unless explicitly included.

Example cURL request

curl --request GET \
  --url "https://api.mparticle.com/platform/experimental/{accountId}/auditlogs/export?start=2025-01-01T00:00:00Z&end=2025-01-31T23:59:59Z&action_types=Create,Update,Delete" \
  --header "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  --output "auditlogs_{accountId}_20250101_20250131.csv"

Request body

No request body.

Response

A successful request returns a 200 response and a CSV file containing your audit log records.

The file includes the following headers:

  • Time (UTC) - the date and time when the action was performed.
  • User Type - indicates if the action was made by a user in the UI, an mParticle support agent, an API call, or a system change.
  • User - the email address of the mParticle user who performed the action.
  • Product Area - the product area containing the resource that was impact. For example: Audiences or Data Platform.
  • Resource - the specific resource that was impacted.
  • Action - indicates the type of action performed on the resources. Can be either created, updated, or deleted.
  • Scope - indicates if the action impacts resources within the scope of a single workspace, account, or the entire org.
  • Result - indicates if the action resulted in a success or failure.
  • Metadata - additional technical information about the action. To learn more, see Audit log details in the Audit Logs user guide.

Example CSV

"Time (UTC)","User Type","User","Product Area","Resource","Action","Scope","Result","Metadata"
"2025-01-15 12:30:45","user","john.doe@example.com","Connections","Output","CreateOutput","Workspace","Success","{""http_method"":""POST"",""status_code"":200}"
"2025-01-15 12:31:12","user","jane.smith@example.com","Audiences","Audience","UpdateAudience","Account","Success","{""http_method"":""PATCH"",""status_code"":200}"

Error handling

Response code Error message Description
400 Bad request The request is invalid or malformed. Check that all required parameters are included and correctly formatted. For example, ensure start is a valid ISO 8601 timestamp and that page_size is between 1 and 1000.
401 Unauthorized Authentication failed. Verify that your bearer token is valid and that you are including it in the Authorization header as Bearer <token>.
403 Forbidden Your token is valid but does not have permission to access the specified account. Ensure the API credentials were created for this account and that the account is enabled for the Audit Logs API.
404 Account not found No account could be found for the provided accountId. Confirm that the account exists and that the path parameter is correct.
429 Too many requests You have exceeded the allowed request rate. Refer to the Retry-After header to determine how long to wait before retrying your request.

Was this page helpful?

    Last Updated: December 16, 2025