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

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

React Native

Getting Started

Identity

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

Android

iOS

Web

Tools

Linting Tools

mParticle Command Line Interface

Smartype

Server SDKs

Node SDK

Go SDK

Python SDK

Ruby SDK

Java SDK

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

Node 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

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

Introduction

Navigating mParticle

The Overview Map

Getting Started

Create an Input

Start capturing data

Connect an Event Output

Create an Audience

Connect an Audience Output

Transform and Enhance Your Data

mParticle Agent

Overview

Explore Your Data

Build Audiences

Create Predictions

Data and Privacy

mParticle Agent FAQ

Oversight

System Alerts

Observability

Observability Overview

Observability User Guide

Observability Troubleshooting Examples

Observability Span Glossary

Privacy

Data Subject Requests

Consent Filters

Data Privacy Controls

Data Platform

Trends

Setup

Connections

Feeds

Import Data with CSV Files

Import Data with CSV Files

CSV File Reference

SFTP Credentials

Live Stream

Data Catalog

Rules

Plans

Filters

Event Forwarding

Event Match Quality

Data Retention

Tiered Events

Blocked Data Backfill Guide

Data Warehouse
Composable Audiences

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

Warehouse Sync

Warehouse Sync User Guide

Historical Data and Warehouse Sync

Customer 360

Overview

User Profiles

Overview

User Profiles

Identity Dashboard

Identity Resolution Log

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

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

Analytics

Introduction

Core Analytics (Beta)

Analytics Free Trial

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

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 (Snowplow Schema)

AWS S3 Integration (Define Your Own 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

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

Composable Audiences

Composable Audiences Overview

User Guide

User Guide Overview

Audience Setup

Frequently Asked Questions

Settings
Platform

Platform Configuration

mParticle Users and Roles

Key Management

Notifications

Audit Logs

Billing

Usage and Billing Report

Usage metering for value-based pricing (VBP)

Troubleshooting mParticle

Default Service Limits

Glossary

Integrations
Aarki

Audience

24i

Event

ABTasty

Audience

Actable

Feed

AdChemix

Event

Adikteev

Audience

Event

Adjust

Event

Feed

Adobe Audience Manager

Audience

Adobe Marketing Cloud

Cookie Sync

Server-to-Server Events

Platform SDK Events

Adobe Campaign Manager

Audience

Adobe Experience Platform

Event

Adobe Target

Audience

AdPredictive

Feed

Airship

Audience

Event

Feed

AgilOne

Event

AdMedia

Audience

Algolia

Event

Amazon Advertising

Event

Audience

Amazon Kinesis Firehose

Audience

Event

Amazon Redshift

Data Warehouse

Amazon Kinesis

Event

Amazon SNS

Event

Amazon S3

Audience

Event

Amobee

Audience

Amazon SQS

Event

Amplitude

Event

Forwarding Data Subject Requests

Ampush

Audience

Event

Analytics

Audience

Event

Forwarding Data Subject Requests

Anodot

Event

Antavo

Feed

AppLovin

Audience

Event

AppsFlyer

Event

Feed

Forwarding Data Subject Requests

Apptentive

Event

Apteligent

Event

Apptimize

Event

Attentive

Event

Feed

Awin

Event

Batch

Audience

Event

Microsoft Azure Blob Storage

Event

Bidease

Audience

Bluecore

Event

Bing Ads

Event

Bluedot

Feed

Branch

Event

Feed

Forwarding Data Subject Requests

Branch S2S Event

Event

Braze

Audience

Feed

Forwarding Data Subject Requests

Event

Bugsnag

Event

Button

Audience

Event

Cadent

Audience

Census

Feed

Conversant

Event

CleverTap

Event

Audience

Feed

comScore

Event

Cordial

Audience

Feed

Cortex

Event

Feed

Forwarding Data Subject Requests

Criteo

Audience

Event

Crossing Minds

Event

CustomerGlu

Event

Feed

Custom Feed

Custom Feed

Customer.io

Event

Audience

Feed

Databricks

Data Warehouse

Dynamic Yield

Event

Audience

Didomi

Event

Datadog

Event

Eagle Eye

Audience

Emarsys

Audience

Edge226

Audience

Epsilon

Event

Everflow

Audience

Facebook

Audience

Event

Google Analytics for Firebase

Event

Flurry

Event

Facebook Offline Conversions

Event

ForeSee

Event

Flybits

Event

FreeWheel Data Suite

Audience

Foursquare

Audience

Feed

Friendbuy

Event

Google Ad Manager

Audience

Google Ads

Audience

Event

Google Analytics 4

Event

Google Analytics

Event

Google BigQuery

Audience

Data Warehouse

Google Enhanced Conversions

Event

Google Cloud Storage

Event

Audience

Google Marketing Platform

Cookie Sync

Audience

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

InMarket

Audience

ID5

Kit

Impact

Event

InMobi

Audience

Event

Insider

Audience

Event

Feed

Intercom

Event

Inspectlet

Event

iPost

Audience

Feed

ironSource

Audience

Iterable

Event

Audience

Feed

Jampp

Event

Audience

Kayzen

Event

Audience

Kafka

Event

Kissmetrics

Event

Klaviyo

Event

Audience

Kochava

Event

Feed

Forwarding Data Subject Requests

Kubit

Event

LaunchDarkly

Feed

LifeStreet

Audience

Liftoff

Audience

Event

Leanplum

Audience

Event

Feed

LiveLike

Event

LinkedIn

Audience

LinkedIn Conversions API Integration

MadHive

Audience

Localytics

Event

Liveramp

Audience

mAdme Technologies

Event

Mailchimp

Event

Audience

Feed

MediaMath

Audience

Marigold

Audience

Mediasmart

Audience

Mautic

Audience

Event

Microsoft Ads

Microsoft Ads Audience Integration

Microsoft Azure Event Hubs

Event

Mintegral

Audience

Mixpanel

Mixpanel Cohort Feed Integration

Audience

Forwarding Data Subject Requests

Event

Moloco

Audience

Event

Monetate

Event

MoEngage

Audience

Event

Feed

Movable Ink

Event

Movable Ink - V2

Event

Multiplied

Event

Nami ML

Feed

myTarget

Event

Audience

Nanigans

Event

Narrative

Event

Audience

Feed

NCR Aloha

Event

Neura

Event

OneTrust

Event

Optimizely

Audience

Event

Oracle BlueKai

Event

Oracle Responsys

Audience

Event

Paytronix

Feed

PieEye

Inbound Data Subject Requests

Persona.ly

Audience

Pilgrim

Event

Feed

Personify XP

Event

Pinterest

Audience

Event

Plarin

Event

Postie

Audience

Event

Punchh

Audience

Event

Feed

Primer

Event

Pushwoosh

Audience

Event

Quantcast

Event

Radar

Event

Feed

Qualtrics

Event

Rakuten

Event

Reddit

Audience

Event

Regal

Event

Retina AI

Event

Feed

Remerge

Audience

Event

RevenueCat

Feed

Reveal Mobile

Event

Rokt

Audience

Event

Rokt Thanks and Pay+

RTB House

Audience

Event

Sailthru

Audience

Event

Blueshift

Forwarding Data Subject Requests

Event

Feed

Salesforce Email

Audience

Event

Feed

Samba TV

Event

Audience

SendGrid

Audience

Feed

Scalarr

Event

SessionM

Event

Feed

SFTP

Audience

ShareThis

Audience

Feed

Shopify

Custom Pixel

Feed

SimpleReach

Event

Singular

Event

Feed

Singular-DEPRECATED

Event

Skyhook

Event

Smadex

Audience

Slack

Event

SmarterHQ

Event

Snapchat

Audience

Event

Snapchat Conversions

Event

Snowflake

Audience

Data Warehouse

Snowplow

Event

Split

Event

Feed

Splunk MINT

Event

Sprig

Audience

Event

Spotify

Event

StartApp

Audience

Statsig

Event

Feed

Stormly

Audience

Event

Talon.One

Audience

Event

Feed

Loyalty Feed

Swrve

Event

Feed

Tapad

Audience

Taplytics

Event

Tapjoy

Audience

Taptica

Audience

Teak

Audience

The Trade Desk

Audience

Cookie Sync

Event

TikTok Event

Audience

Audience (Deprecated)

Event

Audience Migration

Ticketure

Feed

Treasure Data

Audience

Event

Triton Digital

Audience

TUNE

Event

Twitter

Audience

Event

Vibe

Audience

Valid

Event

Vkontakte

Audience

Voucherify

Audience

Event

Vungle

Audience

Webhook

Event

Webtrends

Event

White Label Loyalty

Event

Wootric

Event

Xandr

Audience

Cookie Sync

X

Event

Yahoo (formerly Verizon Media)

Audience

Cookie Sync

YouAppi

Audience

Yotpo

Feed

Z2A Digital

Audience

Event

Salesforce Mobile Push

Event

Zendesk

Event

Feed

Salesforce Sales and Service Cloud

Event

Feed

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: October 20, 2026