The mParticle server-side API supports two core endpoints:
https://s2s.mparticle.com/v2/events: This endpoint receives an array of events, attributes, and identities for a single user.
https://s2s.mparticle.com/v2/bulkevents: This endpoint receives an array of the same payload as above, so that you can transmit many users at one.
After completing the prerequisites, follow these steps to migrate your Segment implementation to mParticle:
Retrieve your API key for the platform where you app resides:
Both Segment and mParticle support JSON-based server-side (S2S) APIs. Migrate your project from Segment to mParticle by changing endpoints, and by changing the authentication as shown in the following table.
|Server-side Authentication||Basic authentication with “write key” and no password||Basic authentication with API key and secret as username and password|
If you prefer to use a library rather than a direct JSON implementation, mParticle has several open-source SDKs built for the server-side API:
If you would like to backfill your data into the mParticle Identity, Profile, and Audience systems, use the historical endpoint.
Was this page helpful?