Developers
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

Audit Logs API

Bulk Profile Deletion API Reference

Calculated Attributes Seeding API

Custom Access Roles API

Data Planning API

Household Reach API Reference

Pixel Service

Profile API

Events API

mParticle JSON Schema Reference

IDSync

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

Upgrade to Version 6

Cordova

Cordova Plugin

Identity

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

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

Upgrade to Version 9

Flutter

Getting Started

Usage

API Reference

.NET MAUI

Getting Started

Identity

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

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 3 of the SDK

Alexa

Media SDKs

iOS

Android

Web

Server SDKs

Node SDK

Go SDK

Python SDK

Ruby SDK

Java SDK

Tools

mParticle Command Line Interface

Linting Tools

Smartype

Quickstart
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

HTTP Quick Start

Step 1. Create an input

Step 2. Create an output

Step 3. Verify output

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

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

Node Quick Start

Step 1. Create an input

Step 2. Create an output

Step 3. Verify output

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

Data Hosting Locations

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

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

Household Reach

Calculated Attributes

Calculated Attributes Overview

Using Calculated Attributes

Create with AI Assistance

Calculated Attributes Reference

Predictions

Predictions Overview

What's Changed in the New Predictions UI

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 Action Overview

Create a Next Best Action Prediction

Manage Next Best Actions

Create an Audience with Next Best Actions

Find Similar Customers

Similar Customer Predictions Overview

Create Similar Customer Prediction

Manage Similar Customer Predictions

Build an Audience with Similar Customer Predictions

Identity

Identity Dashboard

Identity Logs

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

Observability

Observability Overview

Observability User Guide

Observability Troubleshooting Examples

Observability Span Glossary

The New mParticle Experience

The new mParticle Experience

The Overview Map

Platform Settings

Audit Logs

Key Management

Platform Configuration

Event Forwarding

Event Match Quality Dashboard

Notifications

System Alerts

Trends

Introduction

Data Retention

Data Catalog

Connections

Activity

Data Plans

Live Stream

Filters

Consent 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 Insights

Audience Sharing

Match Boost

Inclusive & Exclusive Audiences (Early Access)

Inclusive & Exclusive Audiences Overview

Using Logic Blocks in Audiences

Combining Inclusive and Exclusive Audiences

Inclusive & Exclusive Audiences FAQ

Audience Expansion

Predictive Audiences

Predictive Audiences Overview

Using Predictive Audiences

mParticle Agent

Overview

Explore Your Data

Build Audiences

Create Predictions

Data and Privacy

mParticle Agent FAQ

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

Import Data with CSV Files

Import Data with CSV Files

CSV File Reference

SFTP Credentials

Glossary

Video Index

Analytics (Deprecated)
Settings

Debug Console

Data Warehouse Delay Alerting

Identity Providers

Single Sign-On (SSO)

Setup Examples

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
24i

Event

ABTasty

Audience

Actable

Feed

Aarki

Audience

AdChemix

Event

Adjust

Event

Feed

Adikteev

Audience

Event

Adobe Marketing Cloud

Cookie Sync

Server-to-Server Events

Platform SDK Events

AdMedia

Audience

Adobe Audience Manager

Audience

Adobe Experience Platform

Event

Adobe Campaign Manager

Audience

Adobe Target

Audience

AdPredictive

Feed

AgilOne

Event

Algolia

Event

Airship

Audience

Event

Feed

Amazon Kinesis

Event

Amazon Advertising

Audience

Event

Amazon Redshift

Data Warehouse

Amazon S3

Audience

Event

Amazon SQS

Event

Amazon Kinesis Firehose

Audience

Event

Amazon SNS

Event

Amobee

Audience

Amplitude

Event

Forwarding Data Subject Requests

Ampush

Audience

Event

Analytics

Audience

Event

Forwarding Data Subject Requests

Antavo

Feed

Anodot

Event

AppLovin

Audience

Event

Apptentive

Event

AppsFlyer

Event

Feed

Forwarding Data Subject Requests

Apptimize

Event

Apteligent

Event

Attentive

Feed

Event

Microsoft Azure Blob Storage

Event

Batch

Event

Audience

Bluecore

Event

Bidease

Audience

Bluedot

Feed

Bing Ads

Event

Blueshift

Event

Forwarding Data Subject Requests

Feed

Branch

Event

Forwarding Data Subject Requests

Feed

Branch S2S Event

Event

Bugsnag

Event

Button

Audience

Event

Braze

Audience

Feed

Forwarding Data Subject Requests

Event

Cadent

Audience

Census

Feed

CleverTap

Event

Audience

Feed

Conversant

Event

Cordial

Audience

Feed

comScore

Event

Cortex

Feed

Event

Forwarding Data Subject Requests

Crossing Minds

Event

Criteo

Audience

Event

Custom Feed

Custom Feed

CustomerGlu

Event

Feed

Customer.io

Audience

Event

Feed

Databricks

Data Warehouse

Didomi

Event

Datadog

Event

Edge226

Audience

Dynamic Yield

Event

Audience

Eagle Eye

Audience

Epsilon

Event

Everflow

Audience

Emarsys

Audience

Google Analytics for Firebase

Event

Facebook

Audience

Event

Flurry

Event

Flybits

Event

Facebook Offline Conversions

Event

ForeSee

Event

Foursquare

Feed

Audience

FreeWheel Data Suite

Audience

Friendbuy

Event

Google Ad Manager

Audience

Google Ads

Audience

Event

Google Analytics 4

Event

Google Analytics

Event

Google BigQuery

Audience

Data Warehouse

Google Cloud Storage

Audience

Event

Google Enhanced Conversions

Event

Google Marketing Platform

Audience

Cookie Sync

Event

Google Marketing Platform Offline Conversions

Event

Google Pub/Sub

Event

Google Tag Manager

Event

Heap

Event

Herow

Feed

Hightouch

Feed

Hyperlocology

Event

Ibotta

Event

Impact

Event

ID5

Kit

InMarket

Audience

InMobi

Audience

Event

Inspectlet

Event

Insider

Audience

Feed

Event

Intercom

Event

ironSource

Audience

iPost

Audience

Feed

Iterable

Event

Feed

Audience

Kafka

Event

Kayzen

Audience

Event

Klaviyo

Audience

Event

Kissmetrics

Event

Jampp

Audience

Event

Kochava

Event

Feed

Forwarding Data Subject Requests

LaunchDarkly

Feed

Kubit

Event

Leanplum

Audience

Event

Feed

LifeStreet

Audience

Liftoff

Audience

Event

LinkedIn

Audience

LinkedIn Conversions API Integration

LiveLike

Event

Liveramp

Audience

Localytics

Event

mAdme Technologies

Event

MadHive

Audience

Mailchimp

Audience

Event

Feed

Marigold

Audience

Mautic

Audience

Event

MediaMath

Audience

Mediasmart

Audience

Microsoft Ads

Microsoft Ads Audience Integration

Microsoft Azure Event Hubs

Event

Mintegral

Audience

Mixpanel

Audience

Mixpanel Cohort Feed Integration

Event

Forwarding Data Subject Requests

MoEngage

Audience

Feed

Event

Monetate

Event

Moloco

Audience

Event

Movable Ink

Event

Multiplied

Event

Movable Ink - V2

Event

myTarget

Audience

Event

Nami ML

Feed

Nanigans

Event

Narrative

Audience

Feed

Event

Neura

Event

NCR Aloha

Event

OneTrust

Event

Optimizely

Audience

Event

Oracle BlueKai

Event

Persona.ly

Audience

Oracle Responsys

Audience

Event

Paytronix

Feed

Personify XP

Event

PieEye

Inbound Data Subject Requests

Pilgrim

Event

Feed

Pinterest

Audience

Event

Plarin

Event

Primer

Event

Postie

Audience

Event

Punchh

Audience

Event

Feed

Pushwoosh

Audience

Event

Qualtrics

Event

Quantcast

Event

Radar

Event

Feed

Rakuten

Event

Reddit

Audience

Event

Regal

Event

Awin

Event

Reveal Mobile

Event

RevenueCat

Feed

Rokt

Audience

Rokt Thanks and Pay+

Event

RTB House

Event

Audience

Sailthru

Audience

Event

Retina AI

Event

Feed

Salesforce Email

Audience

Feed

Event

Salesforce Mobile Push

Event

Samba TV

Audience

Event

Scalarr

Event

Salesforce Sales and Service Cloud

Feed

Event

SessionM

Event

Feed

SendGrid

Audience

Feed

ShareThis

Audience

Feed

Shopify

Custom Pixel

Feed

SFTP

Audience

SimpleReach

Event

Singular-DEPRECATED

Event

Singular

Event

Feed

Slack

Event

Skyhook

Event

Smadex

Audience

Snapchat

Audience

Event

SmarterHQ

Event

Snapchat Conversions

Event

Snowflake

Audience

Data Warehouse

Split

Event

Feed

Snowplow

Event

Splunk MINT

Event

Spotify

Event

Sprig

Audience

Event

StartApp

Audience

Statsig

Event

Feed

Swrve

Event

Feed

Stormly

Audience

Event

Talon.One

Audience

Event

Feed

Loyalty Feed

Tapjoy

Audience

Tapad

Audience

Taplytics

Event

Taptica

Audience

Teak

Audience

The Trade Desk

Cookie Sync

Event

Audience

Ticketure

Feed

Treasure Data

Audience

Event

TikTok Event

Audience (Deprecated)

Audience

Audience Migration

Event

Triton Digital

Audience

Twitter

Audience

Event

TUNE

Event

Valid

Event

Vibe

Audience

Vkontakte

Audience

Voucherify

Audience

Event

Vungle

Audience

Webhook

Event

Webtrends

Event

White Label Loyalty

Event

Wootric

Event

X

Event

Yahoo (formerly Verizon Media)

Cookie Sync

Audience

Yotpo

Feed

Xandr

Audience

Cookie Sync

Zendesk

Event

Feed

YouAppi

Audience

Z2A Digital

Audience

Event

Remerge

Audience

Event

Event

Spotify is an audio streaming platform whose advertising business, Spotify Ads, reaches listeners across music, podcasts, and audiobooks. The Spotify Conversions API (CAPI) is a server-to-server integration that lets you send conversion events directly to Spotify, without relying solely on a client-side pixel. Forwarding conversions server-side improves signal fidelity and attribution accuracy as browser tracking restrictions, cookie deprecation, and ad blockers continue to limit pixel-based measurement.

This integration is a server-side output only. Client-side forwarding via kit is not supported.

Prerequisites

To set up the Spotify event integration, you need:

  • A Spotify Ads account with access to Spotify Ads Manager.
  • Business Admin access in Ads Manager. Only a Business Admin can open the Events dashboard, create a Conversions API data source, and generate an access token. The Contributor and Viewer roles cannot.
  • A Conversions API data source in Spotify Ads Manager, which provides two values:

    • A CAPI Connection ID: the UUID identifying your Conversions API data source.
    • A CAPI access token: the long-lived bearer token used to authenticate requests.

The Conversions API access token is separate from the token used by other Spotify Ads API endpoints. Spotify allows a maximum of three active tokens per Conversions API data source; delete an existing token before generating another.

Setup

1. Create a Spotify Conversions API data source

You must be a Business Admin in Ads Manager to complete this step.

  1. Log in to Spotify Ads Manager.
  2. Click the global navigation icon in the top left and select Events.
  3. Click Connect data source and select Conversions API.
  4. Name your integration and select the ad accounts to associate with it.
  5. Click Generate token and copy the access token.
  6. Copy the Connection ID, a UUID shown when the data source is created. To retrieve it later, open the data source and click View Instructions.

2. Create a Spotify output configuration

  1. In mParticle, navigate to Data Platform > Setup > Outputs.
  2. On the Event tab, click Add Output and select Spotify.
  3. Enter a descriptive Configuration Name.
  4. Enter your CAPI Connection ID: the UUID from your Spotify Conversions API data source.
  5. Enter your CAPI Access Token: the bearer token generated for that data source. mParticle stores this value encrypted.
  6. Click Save.

3. Connect a data input to Spotify

To connect an input:

  1. In mParticle, navigate to Connections > Connect Outputs.
  2. Select the input you want to connect.
  3. Find Spotify in the output list and click Connect Output.
  4. Select an Action Source: where the conversions on this connection occur. Choose Web, App, or Offline.
  5. (Optional) Select a User Data Consent Mapping: the mParticle consent purpose whose state determines whether an event is opted out of Spotify retargeting.
  6. Click Add Connection.

Supported platforms

  • iOS
  • Android
  • Web
  • tvOS
  • Custom Feed (server-to-server)

Supported identities

Spotify requires at least one identifier on every conversion. mParticle builds the identifier set once per batch and attaches it to every event in that batch.

Supported user identities

Spotify Field mParticle Identity Type Processing
hashed_emails Email Trimmed, lowercased, and SHA-256 hashed before forwarding. Values that are already hashed are passed through unchanged.
hashed_phone_number Mobile Number Trimmed, lowercased, and SHA-256 hashed before forwarding. Values that are already hashed are passed through unchanged.

If the Mobile Number identity is not present, mParticle falls back through Phone Number 2, then Phone Number 3, and finally the $Mobile user attribute. The first non-empty value found is hashed and forwarded.

Supported device identities

Spotify Field mParticle Identity Type Processing
device_id iOS Advertising ID (IDFA), Google Advertising ID (GAID), or iOS Vendor ID (IDFV) Spotify accepts a single device ID. mParticle selects the first of these that is present, in the order listed, and SHA-256 hashes it before forwarding.
ip_address Client IP address on the event batch Forwarded unhashed.

Supported event types

mParticle forwards the following event types to Spotify:

  • Commerce Event
  • Screen View
  • Custom Event (only when explicitly mapped, see below)

All supported event types are forwarded by default. This integration’s connection settings do not allow you to disable event forwarding for a specific event type, but you can disable event forwarding using Filters.

Spotify identifies conversions by a fixed set of event names rather than by your event’s own name. mParticle resolves every event to one of these twelve names:

  • VIEW
  • PRODUCT
  • CHECK_OUT
  • ADD_TO_CART
  • PURCHASE
  • LEAD
  • SIGN_UP
  • CUSTOM_EVENT_1 through CUSTOM_EVENT_5

Default event mappings

These events forward with no configuration:

mParticle Event Spotify Event Name
Screen View VIEW
Commerce Event: View Detail PRODUCT
Commerce Event: Checkout CHECK_OUT
Commerce Event: Add to Cart ADD_TO_CART
Commerce Event: Purchase PURCHASE

Commerce event subtypes without a default mapping, such as refund, remove from cart, and checkout option, are not forwarded unless you map them explicitly.

Mapping other events

Custom events are not forwarded unless you map them. Use Custom Mappings for your Spotify connection to map an event to one of the twelve Spotify event names. LEAD, SIGN_UP, and CUSTOM_EVENT_1 through CUSTOM_EVENT_5 have no default mapping and are available for any event you choose.

A custom mapping always takes precedence over the default mapping. If you map a Purchase commerce event to CUSTOM_EVENT_1, mParticle forwards it as CUSTOM_EVENT_1 rather than PURCHASE. Events mapped to a name outside the twelve Spotify accepts are not forwarded.

Event data mapping

Event fields

mParticle Field Spotify Field Notes
Event ID event_id mParticle’s unique identifier for the event.
Event timestamp event_time ISO 8601 UTC with milliseconds.
Resolved event name event_name See Supported event types.
Action Source connection setting action_source WEB, APP, or OFFLINE.
Currency code (Commerce Event) event_details.currency
product_action.total_amount (Commerce Event) event_details.amount
Product names (Commerce Event) event_details.content_name Comma-separated when the event has multiple products.
Product categories (Commerce Event) event_details.content_category Comma-separated when the event has multiple products.
Screen name (Screen View) event_details.content_name The name of the Screen View event.

event_details is omitted entirely when none of its four fields have a value.

For events forwarded through a custom mapping, event_details is built from the attributes you map to Currency, Amount, Content Name, and Content Category rather than from the event’s own commerce fields. All four are optional.

Custom flags

Custom Flag Spotify Field Notes
Spotify.EventSourceUrl event_source_url The URL where the conversion occurred. Must begin with http:// or https://; other values are dropped and a warning is logged.
Spotify.OptOutTargeting opt_out_targeting true or false. See Opt-out targeting.

Custom mappings

Custom Mappings are optional for commerce events and screen views, and required for custom events. Use them to select which Spotify event name an event maps to and to populate event_details. For general instructions, see Custom Mappings.

Data processing notes

  • Delivery: Events are forwarded server-to-server in real time as batches arrive.
  • PII hashing: Email addresses and phone numbers are trimmed, lowercased, and SHA-256 hashed before forwarding. Device IDs are SHA-256 hashed. IP addresses are forwarded unhashed.
  • Multi-product events: When a commerce event contains more than one product, mParticle joins the product names into a single comma-separated content_name value and the categories into a comma-separated content_category value. One conversion event is sent per commerce event, not one per product.
  • Rate limits: Spotify enforces a limit of 100 requests per second per CAPI connection ID. If you need this limit raised, contact your Spotify account team.
  • Retries: mParticle retries requests that fail with a retryable error. Some errors are not retried.
  • Sampling: Sampling is not available for this integration. All events matching a connection’s filters are forwarded.

Opt-out targeting

The opt_out_targeting field tells Spotify to use a conversion for attribution only, excluding it from retargeting. mParticle resolves it per event in this order:

  1. If the mapped consent purpose is present on the user’s profile and consent is denied, or the Spotify.OptOutTargeting custom flag is true, mParticle sends true.
  2. If the mapped consent purpose is granted, or the custom flag is false, mParticle sends false.
  3. Otherwise, the field is omitted from the event.

You can map only one consent purpose per connection, and the mapped purpose cannot be empty. Saving a connection that violates either rule fails validation.

Configuration settings

Configuration settings authenticate mParticle with the Spotify Conversions API and are set at the output level.

Setting Name Data Type Required Default Value Description
CAPI Connection ID string Yes The UUID of your Conversions API data source. Found in Spotify Ads Manager under Events > your Conversions API data source > View Instructions.
CAPI Access Token string Yes The Conversions API access token generated in Spotify Ads Manager for the data source. Sent as a bearer token on every request. Stored encrypted by mParticle.

Connection settings

Connection settings are configured per connection and control how conversions from a given input are described to Spotify.

Setting Name Data Type Required Default Value Platform Description
Action Source string Yes Web All Where the conversions on this connection occur. One of Web, App, or Offline. Forwarded as action_source.
User Data Consent Mapping string No All The mParticle consent purpose that determines opt_out_targeting. When the purpose is on the user’s profile, denied consent opts the event out of Spotify retargeting. Only one purpose can be mapped.
    Last Updated: September 29, 2026