{"info":{"_postman_id":"5695141a-fac9-46f7-8365-02f86fdd82b1","name":"01 Sample Scripts","description":"<html><head></head><body><p>The scripts in this collection are primarily designed to build a better understanding of mParticle by providing you with an opportunity to send test data into mParticle and see how the platform responds. You will find scripts for various platform input sources along with various API functionality for more advanced functions. </p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11089222","collectionId":"5695141a-fac9-46f7-8365-02f86fdd82b1","publishedId":"TVRhbpNC","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-10-06T23:22:31.000Z"},"item":[{"name":"iOS","item":[{"name":"iOS Custom Event (Other)","id":"2b51b532-f40f-4b31-9e95-8b3693e8cdb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{ios_key}}"},{"key":"password","value":"{{ios_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    {\n        \"schema_version\": 2,\n        \"environment\": \"development\",\n        \"user_identities\": {\n            \"customerid\": \"Johann105\", //Same Value\n            \"other\": \"Johann105\", //different value\n            \"email\": \"johann@gmail.com\"\n        },\n        \"consent_state\": {},\n        \"events\": []\n    },\n    {\n        \"schema_version\": 2,\n        \"environment\": \"development\",\n        \"user_identities\": {\n            \"customerid\": \"Johann105\", //Same Value\n            \"other\": \"Johann106\", //different value\n            \"email\": \"johann@gmail.com\"\n        },\n        \"consent_state\": {},\n        \"events\": []\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://s2s.au1.mparticle.com/v2/bulkevents","description":"<p>This script is used for general event collection of custom events. You can also utilize the same script and modify custom_event_type to ingest events of different types such as: attribution, location, navigation etc.</p>\n<p>For the full list of event types and more information on mParticle events refer to our docs: <a href=\"https://bit.ly/3j61ZPU\">https://bit.ly/3j61ZPU</a></p>\n","urlObject":{"protocol":"https","path":["v2","bulkevents"],"host":["s2s","au1","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b51b532-f40f-4b31-9e95-8b3693e8cdb5"},{"name":"iOS Session Events","id":"0cfd4dcd-c9e6-43e4-b3b1-0c9c95c3f4c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{ios_key}}"},{"key":"password","value":"{{ios_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"brand\": \"Apple\",\n        \"product\": \"iPhoneX\",\n        \"device\": \"John's iPhone X\",\n        \"device_manufacturer\": \"Apple\",\n        \"platform\": \"iOS\",\n        \"os_version\": \"13.4.1\",\n        \"device_model\": \"iPhoneX\",\n        \"device_country\": \"USA\",\n        \"locale_language\": \"en\",\n        \"locale_country\": \"US\",\n        \"network_country\": \"us\",\n        \"network_carrier\": \"AT&T\",\n        \"network_code\": \"410\",\n        \"network_mobile_country_code\": \"310\",\n        \"ios_idfv\": \"a7940993-95c7-4622-9f5e-0a8535e09b91\"\n    },\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"timestamp_unixtime_ms\": \"1600731686856\",\n                \"event_id\": \"-7963943631134197016\",\n                \"source_message_id\": null,\n                \"session_start_unixtime_ms\": \"0\",\n                \"event_start_unixtime_ms\": \"0\",\n                \"custom_attributes\": null,\n                \"is_goal_defined\": false,\n                \"lifetime_value_change\": 0,\n                \"lifetime_value_attribute_name\": null,\n                \"data_connection_type\": null,\n                \"event_num\": 0,\n                \"view_controller\": null,\n                \"is_main_thread\": null,\n                \"canonical_name\": null,\n                \"event_system_notification_info\": null\n            },\n            \"event_type\": \"session_start\"\n        },\n        {\n            \"data\": {\n                \"session_duration_ms\": 0,\n                \"timestamp_unixtime_ms\": \"1600731686856\",\n                \"event_id\": \"421511474676163005\",\n                \"source_message_id\": null,\n                \"session_start_unixtime_ms\": \"0\",\n                \"event_start_unixtime_ms\": \"0\",\n                \"custom_attributes\": {\n                    \"\": \"\"\n                },\n                \"is_goal_defined\": false,\n                \"lifetime_value_change\": 0,\n                \"lifetime_value_attribute_name\": null,\n                \"data_connection_type\": null,\n                \"event_num\": 0,\n                \"view_controller\": null,\n                \"is_main_thread\": null,\n                \"canonical_name\": null,\n                \"event_system_notification_info\": null\n            },\n            \"event_type\": \"session_end\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>Use this script to manually log session start/end events. Our iOS SDK will natively capture these events for you.</p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0cfd4dcd-c9e6-43e4-b3b1-0c9c95c3f4c6"},{"name":"iOS E-commerce (Purchase) Events","id":"49ca923e-1e04-4076-8e04-4b9d5a1b9878","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{ios_key}}"},{"key":"password","value":"{{ios_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"brand\": \"Apple\",\n        \"product\": \"iPhoneX\",\n        \"device\": \"John's iPhone X\",\n        \"device_manufacturer\": \"Apple\",\n        \"platform\": \"iOS\",\n        \"os_version\": \"13.4.1\",\n        \"device_model\": \"iPhoneX\",\n        \"device_country\": \"USA\",\n        \"locale_language\": \"en\",\n        \"locale_country\": \"US\",\n        \"network_country\": \"us\",\n        \"network_carrier\": \"AT&T\",\n        \"network_code\": \"410\",\n        \"network_mobile_country_code\": \"310\",\n        \"ios_idfv\": \"53260cd9-26be-46c5-b1a4-56c5e1cf646f\"\n    },\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"product_action\": {\n                    \"action\": \"purchase\",\n                    \"transaction_id\": \"12345\",\n                    \"total_amount\": 20,\n                    \"tax_amount\": 0,\n                    \"shipping_amount\": 0,\n                    \"products\": [\n                        {\n                            \"id\":\"mp12345\",\n                            \"name\": \"Product1\",\n                            \"brand\": \"Brand\",\n                            \"price\": 10,\n                            \"quantity\": 1,\n                            \"total_product_amount\": 10,\n                            \"custom_attributes\": {\n                                \"Delivery Method\": \"Home\",\n                                \"Store Location\": \"SF\",\n                                \"Purchase Method\": \"Credit Card\"\n                            }\n                        },\n                        {\n                            \"id\":\"mp12346\",\n                            \"name\": \"Product2\",\n                            \"brand\": \"Brand\",\n                            \"price\": 10,\n                            \"quantity\": 1,\n                            \"total_product_amount\": 10,\n                            \"custom_attributes\": {\n                                \"Delivery Method\": \"Home\",\n                                \"Store Location\": \"SF\",\n                                \"Purchase Method\": \"Credit Card\"\n                            }\n                        }\n                    ]\n                },\n                \"currency_code\": \"USD\",\n                \"screen_name\": \"Purchase\",\n                \"is_non_interactive\": false,\n                \"custom_attributes\": {}\n            },\n            \"event_type\": \"commerce_event\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>Capture E-commerce events utilizing mParticle's E-commerce API. We allow you to capture all relevant information for these types of events and forward them downstream as such so you do not have to map them. While purchase is the event demonstrated below, the same event can be used for other e-commerce events such as: add_to_cart, remove_from_cart, checkout etc. by modifying the \"action\" field in the payload.</p>\n<p>You can see the full list of e-commerce events which can be collected by referring to our docs: <a href=\"https://bit.ly/3dzu94P\">https://bit.ly/3dzu94P</a></p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"49ca923e-1e04-4076-8e04-4b9d5a1b9878"},{"name":"iOS Screen View Events","id":"15643bc3-31f1-426e-99ec-647072aad49d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{ios_key}}"},{"key":"password","value":"{{ios_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"brand\": \"Apple\",\n        \"product\": \"iPhoneX\",\n        \"device\": \"John's iPhone X\",\n        \"device_manufacturer\": \"Apple\",\n        \"platform\": \"iOS\",\n        \"os_version\": \"13.4.1\",\n        \"device_model\": \"iPhoneX\",\n        \"device_country\": \"USA\",\n        \"locale_language\": \"en\",\n        \"locale_country\": \"US\",\n        \"network_country\": \"us\",\n        \"network_carrier\": \"AT&T\",\n        \"network_code\": \"410\",\n        \"network_mobile_country_code\": \"310\",\n        \"ios_idfv\": \"33726180-e65b-421c-aa6e-24f9da5634a4\"\n    },\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"screen_name\": \"Home\",\n                \"device_current_state\": {},\n                \"custom_attributes\": {\n                    \"App\":\"Test1\"\n                }\n            },\n            \"event_type\": \"screen_view\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>Utilize this script if you want to understand what screens your customers are viewing to better understand a customer's journey through your application.</p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"15643bc3-31f1-426e-99ec-647072aad49d"}],"id":"6c42f913-0a04-4d98-9db1-43ed88b41c2f","description":"<p>The following scripts are designed for ingesting iOS Data in mParticle.</p>\n","_postman_id":"6c42f913-0a04-4d98-9db1-43ed88b41c2f"},{"name":"Android","item":[{"name":"Andorid Custom Event (Other)","id":"f7a239ea-ec9d-44be-a933-cd6ca88c6852","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{android_key}}"},{"key":"password","value":"{{android_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"brand\": \"google\",\n        \"product\": \"sdk_gphone_x86\",\n        \"device\": \"generic_x86\",\n        \"device_manufacturer\": \"Google\",\n        \"platform\": \"Android\",\n        \"build_version_release\": \"5.1\",\n        \"device_model\": \"SM-G955A\",\n        \"locale_language\": \"en\",\n        \"locale_country\": \"US\",\n        \"http_header_user_agent\": \"Dalvik/1.6.0 (Linux; U; Android 5.1; LG-F320S Build/KOT49I.F320S22g)\",\n        \"android_advertising_id\": \"6f6b5f0c-b410-45fe-800b-15e145e4ae2b\",\n        \"limit_ad_tracking\": false\n    },\n    \"application_info\": {\n        \"install_referrer\": \"af_tranid=1A4F123KJHG73F0P&c=c1&pid=MediaSource1\",\n        \"package\": \"com.example.af3test\",\n        \"os\": \"Android\"\n    },\n    \"user_attributes\": {\n        \"$firstname\": \"Nayeem\",\n        \"$lastname\": \"Shaik\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"mobile_number\": \"+919790446358\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"event_name\": \"Test\",\n                \"custom_event_type\": \"Other\",\n                \"custom_attributes\": {\n                    \"Sample\": \"Event\"\n                }\n            },\n            \"event_type\": \"custom_event\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.au1.mparticle.com/v2/events","description":"<p>This script is used for general event collection of custom events. You can also utilize the same script and modify custom_event_type to ingest events of different types such as: attribution, location, navigation etc.</p>\n<p>For the full list of event types and more information on mParticle events refer to our docs: <a href=\"https://bit.ly/3j61ZPU\">https://bit.ly/3j61ZPU</a></p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","au1","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7a239ea-ec9d-44be-a933-cd6ca88c6852"},{"name":"Andorid Custom Event (Other) Copy","id":"d7c46f3c-d097-4715-878c-d35839548da0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{android_key}}"},{"key":"password","value":"{{android_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"brand\": \"google\",\n        \"product\": \"sdk_gphone_x86\",\n        \"device\": \"generic_x86\",\n        \"device_manufacturer\": \"Google\",\n        \"platform\": \"Android\",\n        \"build_version_release\": \"5.1\",\n        \"device_model\": \"SM-G955A\",\n        \"locale_language\": \"en\",\n        \"locale_country\": \"US\",\n        \"http_header_user_agent\": \"Dalvik/1.6.0 (Linux; U; Android 5.1; LG-F320S Build/KOT49I.F320S22g)\",\n        \"android_advertising_id\": \"e7c67ba7-688b-45f9-a000-21f621522823\",\n        \"limit_ad_tracking\": false\n    },\n    \"application_info\": {\n        \"install_referrer\": \"af_tranid=1A4F123KJHG73F0P&c=c1&pid=MediaSource1\",\n        \"package\": \"com.example.af3test\",\n        \"os\": \"Android\"\n    },\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"event_name\": \"Test\",\n                \"custom_event_type\": \"Other\",\n                \"custom_attributes\": {\n                    \"Sample\": \"Event\"\n                }\n            },\n            \"event_type\": \"custom_event\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>This script is used for general event collection of custom events. You can also utilize the same script and modify custom_event_type to ingest events of different types such as: attribution, location, navigation etc.</p>\n<p>For the full list of event types and more information on mParticle events refer to our docs: <a href=\"https://bit.ly/3j61ZPU\">https://bit.ly/3j61ZPU</a></p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d7c46f3c-d097-4715-878c-d35839548da0"},{"name":"Android Session Events","id":"952021f8-2ae8-4011-a646-9b5ddf6b093a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{android_key}}"},{"key":"password","value":"{{android_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"brand\": \"google\",\n        \"product\": \"sdk_gphone_x86\",\n        \"device\": \"generic_x86\",\n        \"device_manufacturer\": \"Google\",\n        \"platform\": \"Android\",\n        \"build_version_release\": \"5.1\",\n        \"device_model\": \"SM-G955A\",\n        \"locale_language\": \"en\",\n        \"locale_country\": \"US\",\n        \"http_header_user_agent\": \"Dalvik/1.6.0 (Linux; U; Android 5.1; LG-F320S Build/KOT49I.F320S22g)\",\n        \"android_advertising_id\": \"44e3ed47-8602-46f8-a401-e24e7ede2462\",\n        \"limit_ad_tracking\": false\n    },\n    \"application_info\": {\n        \"install_referrer\": \"af_tranid=1A4F123KJHG73F0P&c=c1&pid=MediaSource1\",\n        \"package\": \"com.example.af3test\",\n        \"os\": \"Android\"\n    },\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"timestamp_unixtime_ms\": \"1600731686856\",\n                \"event_id\": \"-7963943631134197016\",\n                \"source_message_id\": null,\n                \"session_start_unixtime_ms\": \"0\",\n                \"event_start_unixtime_ms\": \"0\",\n                \"custom_attributes\": null,\n                \"is_goal_defined\": false,\n                \"lifetime_value_change\": 0,\n                \"lifetime_value_attribute_name\": null,\n                \"data_connection_type\": null,\n                \"event_num\": 0,\n                \"view_controller\": null,\n                \"is_main_thread\": null,\n                \"canonical_name\": null,\n                \"event_system_notification_info\": null\n            },\n            \"event_type\": \"session_start\"\n        },\n        {\n            \"data\": {\n                \"session_duration_ms\": 0,\n                \"timestamp_unixtime_ms\": \"1600731686856\",\n                \"event_id\": \"421511474676163005\",\n                \"source_message_id\": null,\n                \"session_start_unixtime_ms\": \"0\",\n                \"event_start_unixtime_ms\": \"0\",\n                \"custom_attributes\": {\n                    \"\": \"\"\n                },\n                \"is_goal_defined\": false,\n                \"lifetime_value_change\": 0,\n                \"lifetime_value_attribute_name\": null,\n                \"data_connection_type\": null,\n                \"event_num\": 0,\n                \"view_controller\": null,\n                \"is_main_thread\": null,\n                \"canonical_name\": null,\n                \"event_system_notification_info\": null\n            },\n            \"event_type\": \"session_end\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>Use this script to manually log session start/end events on Android. Our Android SDK will natively capture these events for you.</p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"952021f8-2ae8-4011-a646-9b5ddf6b093a"},{"name":"Android E-commerce (Purchase) Events","id":"0cc2049b-c62e-4c16-a8f6-e5e0a379fd64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{android_key}}"},{"key":"password","value":"{{android_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"brand\": \"google\",\n        \"product\": \"sdk_gphone_x86\",\n        \"device\": \"generic_x86\",\n        \"device_manufacturer\": \"Google\",\n        \"platform\": \"Android\",\n        \"build_version_release\": \"5.1\",\n        \"device_model\": \"SM-G955A\",\n        \"locale_language\": \"en\",\n        \"locale_country\": \"US\",\n        \"http_header_user_agent\": \"Dalvik/1.6.0 (Linux; U; Android 5.1; LG-F320S Build/KOT49I.F320S22g)\",\n        \"android_advertising_id\": \"4475e7fb-c1a5-4473-9ceb-c6c8f9f78025\",\n        \"limit_ad_tracking\": false\n    },\n    \"application_info\": {\n        \"install_referrer\": \"af_tranid=1A4F123KJHG73F0P&c=c1&pid=MediaSource1\",\n        \"package\": \"com.example.af3test\",\n        \"os\": \"Android\"\n    },\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"product_action\": {\n                    \"action\": \"purchase\",\n                    \"transaction_id\": \"12345\",\n                    \"total_amount\": 20,\n                    \"tax_amount\": 0,\n                    \"shipping_amount\": 0,\n                    \"products\": [\n                        {\n                            \"id\":\"mp12345\",\n                            \"name\": \"Product1\",\n                            \"brand\": \"Brand\",\n                            \"price\": 10,\n                            \"quantity\": 1,\n                            \"total_product_amount\": 10,\n                            \"custom_attributes\": {\n                                \"Delivery Method\": \"Home\",\n                                \"Store Location\": \"SF\",\n                                \"Purchase Method\": \"Credit Card\"\n                            }\n                        },\n                        {\n                            \"id\":\"mp12346\",\n                            \"name\": \"Product2\",\n                            \"brand\": \"Brand\",\n                            \"price\": 10,\n                            \"quantity\": 1,\n                            \"total_product_amount\": 10,\n                            \"custom_attributes\": {\n                                \"Delivery Method\": \"Home\",\n                                \"Store Location\": \"SF\",\n                                \"Purchase Method\": \"Credit Card\"\n                            }\n                        }\n                    ]\n                },\n                \"currency_code\": \"USD\",\n                \"screen_name\": \"Purchase\",\n                \"is_non_interactive\": false,\n                \"custom_attributes\": {}\n            },\n            \"event_type\": \"commerce_event\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>Capture E-commerce events utilizing mParticle's E-commerce API. We allow you to capture all relevant information for these types of events and forward them downstream as such so you do not have to map them. While purchase is the event demonstrated below, the same event can be used for other e-commerce events such as: add_to_cart, remove_from_cart, checkout etc. by modifying the \"action\" field in the payload.</p>\n<p>You can see the full list of e-commerce events which can be collected by referring to our docs: <a href=\"https://bit.ly/3dzu94P\">https://bit.ly/3dzu94P</a></p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0cc2049b-c62e-4c16-a8f6-e5e0a379fd64"},{"name":"Android Screen View Events","id":"fbd3154d-49c5-47f4-8804-9af351066719","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{android_key}}"},{"key":"password","value":"{{android_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"brand\": \"google\",\n        \"product\": \"sdk_gphone_x86\",\n        \"device\": \"generic_x86\",\n        \"device_manufacturer\": \"Google\",\n        \"platform\": \"Android\",\n        \"build_version_release\": \"5.1\",\n        \"device_model\": \"SM-G955A\",\n        \"locale_language\": \"en\",\n        \"locale_country\": \"US\",\n        \"http_header_user_agent\": \"Dalvik/1.6.0 (Linux; U; Android 5.1; LG-F320S Build/KOT49I.F320S22g)\",\n        \"android_advertising_id\": \"59a3902b-a21b-4451-aab5-57c87e5e6cd5\",\n        \"limit_ad_tracking\": false\n    },\n    \"application_info\": {\n        \"install_referrer\": \"af_tranid=1A4F123KJHG73F0P&c=c1&pid=MediaSource1\",\n        \"package\": \"com.example.af3test\",\n        \"os\": \"Android\"\n    },\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"screen_name\": \"Home\",\n                \"device_current_state\": {},\n                \"custom_attributes\": {\n                    \"App\":\"Test1\"\n                }\n            },\n            \"event_type\": \"screen_view\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>Utilize this script if you want to understand what screens your customers are viewing to better understand a customer's journey through your application.</p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fbd3154d-49c5-47f4-8804-9af351066719"}],"id":"0e02ce43-bc96-4740-92de-edcf8e0b5dcd","description":"<p>The following scripts are designed for ingesting Android Data in mParticle.</p>\n","_postman_id":"0e02ce43-bc96-4740-92de-edcf8e0b5dcd"},{"name":"Web","item":[{"name":"Web Custom Event (Other)","id":"fc4b715f-140e-40f3-afee-9eb48ea46511","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{web_key}}"},{"key":"password","value":"{{web_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"http_header_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36\"\n    },\n    \"application_info\": {\n        \"application_name\": \"\",\n        \"os\": \"MobileWeb\"\n    },\n    \"ip\": \"00.000.00.00\",\n    \"source_info\": {\n        \"channel\": \"javascript\"\n    },\n    \"mp_deviceid\": \"9a97f4ba-f37c-42bd-806c-acdb583b1e3f\",\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"event_name\": \"Test\",\n                \"custom_event_type\": \"Other\",\n                \"custom_attributes\": {\n                    \"Sample\": \"Event\"\n                }\n            },\n            \"event_type\": \"custom_event\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>This script is used for general event collection of custom events. You can also utilize the same script and modify custom_event_type to ingest events of different types such as: attribution, location, navigation etc.</p>\n<p>For the full list of event types and more information on mParticle events refer to our docs: <a href=\"https://bit.ly/3j61ZPU\">https://bit.ly/3j61ZPU</a></p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fc4b715f-140e-40f3-afee-9eb48ea46511"},{"name":"Web Session Events","id":"1262815e-feea-4d53-b768-30e3be38d59d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{web_key}}"},{"key":"password","value":"{{web_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"http_header_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36\"\n    },\n    \"application_info\": {\n        \"application_name\": \"\",\n        \"os\": \"MobileWeb\"\n    },\n    \"ip\": \"00.000.00.00\",\n    \"source_info\": {\n        \"channel\": \"javascript\"\n    },\n    \"mp_deviceid\": \"f4f42671-c758-4f6f-8fcd-d9594c19868c\",\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"timestamp_unixtime_ms\": \"1600731686856\",\n                \"event_id\": \"-7963943631134197016\",\n                \"source_message_id\": null,\n                \"session_start_unixtime_ms\": \"0\",\n                \"event_start_unixtime_ms\": \"0\",\n                \"custom_attributes\": null,\n                \"is_goal_defined\": false,\n                \"lifetime_value_change\": 0,\n                \"lifetime_value_attribute_name\": null,\n                \"data_connection_type\": null,\n                \"event_num\": 0,\n                \"view_controller\": null,\n                \"is_main_thread\": null,\n                \"canonical_name\": null,\n                \"event_system_notification_info\": null\n            },\n            \"event_type\": \"session_start\"\n        },\n        {\n            \"data\": {\n                \"session_duration_ms\": 0,\n                \"timestamp_unixtime_ms\": \"1600731686856\",\n                \"event_id\": \"421511474676163005\",\n                \"source_message_id\": null,\n                \"session_start_unixtime_ms\": \"0\",\n                \"event_start_unixtime_ms\": \"0\",\n                \"custom_attributes\": {\n                    \"\": \"\"\n                },\n                \"is_goal_defined\": false,\n                \"lifetime_value_change\": 0,\n                \"lifetime_value_attribute_name\": null,\n                \"data_connection_type\": null,\n                \"event_num\": 0,\n                \"view_controller\": null,\n                \"is_main_thread\": null,\n                \"canonical_name\": null,\n                \"event_system_notification_info\": null\n            },\n            \"event_type\": \"session_end\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>Use this script to manually log session start/end events. Our web SDK will natively capture these events for you.</p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1262815e-feea-4d53-b768-30e3be38d59d"},{"name":"Web E-commerce (Purchase) Events","id":"7237c4de-b727-410c-a2a5-06047f21f308","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{web_key}}"},{"key":"password","value":"{{web_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"http_header_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36\"\n    },\n    \"integration_attributes\": {\n        \"160\": {\n          \"client_id\": \"G-GV7DJJZ43Z\"\n        }\n    },\n    \"application_info\": {\n        \"application_name\": \"MHG\",\n        \"os\": \"MobileWeb\"\n    },\n    \"ip\": \"00.000.00.00\",\n    \"source_info\": {\n        \"channel\": \"javascript\"\n    },\n    \"mp_deviceid\": \"ae11aa72-3d82-4a0f-918c-56b29d349179\",\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"product_action\": {\n                    \"action\": \"click\",\n                    \"products\": [\n                        {\n                            \"id\": \"SG.TI.FWD.FWD-PREMIUM\",\n                            \"name\": \"FWD Premium\",\n                            \"brand\": \"FWD\",\n                            \"category\": \"all_travel_insurance\",\n                            \"price\": 12.65,\n                            \"currency\": \"SGD\",\n                            \"position\": 1\n                        }\n                    ]\n                },\n                \"currency_code\": \"SGD\",\n                \"screen_name\": \"product_click_apply\",\n                \"custom_attributes\": {\n                    \"component_title\": \"CTA_Buy Now\",\n                    \"component_type\": \"product-card\",\n                    \"action\": \"click\",\n                    \"filter_applied\": \"{}\",\n                    \"search_result_parameter\": \"SINGLE_PLAN|Thailand||ADULT_1,CHILD_0,FAMILY_0|2024-05-14|2024-05-16||\",\n                    \"item_list_name\": \"all_travel_insurance\",\n                    \"reward_campaign_name\": \"\",\n                    \"reward_campaign_id\": \"4971\",\n                    \"gtm.uniqueEventId\": 2456\n                }\n            },\n            \"event_type\": \"commerce_event\"\n        }\n    ]\n}\n","options":{"raw":{"language":"json"}}},"url":"https://s2s.eu1.mparticle.com/v2/events","description":"<p>Capture E-commerce events utilizing mParticle's E-commerce API. We allow you to capture all relevant information for these types of events and forward them downstream as such so you do not have to map them. While purchase is the event demonstrated below, the same event can be used for other e-commerce events such as: add_to_cart, remove_from_cart, checkout etc. by modifying the \"action\" field in the payload.</p>\n<p>You can see the full list of e-commerce events which can be collected by referring to our docs: <a href=\"https://bit.ly/3dzu94P\">https://bit.ly/3dzu94P</a></p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","eu1","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7237c4de-b727-410c-a2a5-06047f21f308"},{"name":"Web Screen View Events","id":"ae870149-6d39-459c-b3b1-32524e9ad2cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{web_key}}"},{"key":"password","value":"{{web_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"http_header_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36\"\n    },\n    \"application_info\": {\n        \"application_name\": \"\",\n        \"os\": \"MobileWeb\"\n    },\n    \"ip\": \"00.000.00.00\",\n    \"source_info\": {\n        \"channel\": \"javascript\"\n    },\n    \"mp_deviceid\": \"e255635e-711f-47a4-8b95-b85a50b8a279\",\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"screen_name\": \"Home\",\n                \"device_current_state\": {},\n                \"custom_attributes\": {\n                    \"App\": \"Test1\"\n                }\n            },\n            \"event_type\": \"screen_view\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.eu1.mparticle.com/v2/events","description":"<p>Utilize this script if you want to understand what screens your customers are viewing to better understand a customer's journey through your application.</p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","eu1","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ae870149-6d39-459c-b3b1-32524e9ad2cb"}],"id":"b9460f5f-9abe-4b55-a335-600e30bd5415","_postman_id":"b9460f5f-9abe-4b55-a335-600e30bd5415","description":""},{"name":"S2S","item":[{"name":"S2S Custom Event (Other)","id":"7cb6f85f-4064-4209-94c4-6a052c7ccf53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{s2s_key}}"},{"key":"password","value":"{{s2s_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {},\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"event_name\": \"Test\",\n                \"custom_event_type\": \"Other\",\n                \"custom_attributes\": {\n                    \"Sample\": \"Event\"\n                }\n            },\n            \"event_type\": \"custom_event\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>This script is used for general event collection of custom events. You can also utilize the same script and modify custom_event_type to ingest events of different types such as: attribution, location, navigation etc.</p>\n<p>For the full list of event types and more information on mParticle events refer to our docs: <a href=\"https://bit.ly/3j61ZPU\">https://bit.ly/3j61ZPU</a></p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7cb6f85f-4064-4209-94c4-6a052c7ccf53"},{"name":"S2S Session Events","id":"5d41f9b0-ea22-4fb2-8eee-2ec0c0879613","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{s2s_key}}"},{"key":"password","value":"{{s2s_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"timestamp_unixtime_ms\": \"1600731686856\",\n                \"event_id\": \"-7963943631134197016\",\n                \"source_message_id\": null,\n                \"session_start_unixtime_ms\": \"0\",\n                \"event_start_unixtime_ms\": \"0\",\n                \"custom_attributes\": null,\n                \"is_goal_defined\": false,\n                \"lifetime_value_change\": 0,\n                \"lifetime_value_attribute_name\": null,\n                \"data_connection_type\": null,\n                \"event_num\": 0,\n                \"view_controller\": null,\n                \"is_main_thread\": null,\n                \"canonical_name\": null,\n                \"event_system_notification_info\": null\n            },\n            \"event_type\": \"session_start\"\n        },\n        {\n            \"data\": {\n                \"session_duration_ms\": 0,\n                \"timestamp_unixtime_ms\": \"1600731686856\",\n                \"event_id\": \"421511474676163005\",\n                \"source_message_id\": null,\n                \"session_start_unixtime_ms\": \"0\",\n                \"event_start_unixtime_ms\": \"0\",\n                \"custom_attributes\": {\n                    \"\": \"\"\n                },\n                \"is_goal_defined\": false,\n                \"lifetime_value_change\": 0,\n                \"lifetime_value_attribute_name\": null,\n                \"data_connection_type\": null,\n                \"event_num\": 0,\n                \"view_controller\": null,\n                \"is_main_thread\": null,\n                \"canonical_name\": null,\n                \"event_system_notification_info\": null\n            },\n            \"event_type\": \"session_end\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>Use this script to manually log session start/end events. Our platform SDKs will natively track these events.</p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5d41f9b0-ea22-4fb2-8eee-2ec0c0879613"},{"name":"S2S E-commerce (Purchase) Events","id":"43fd2d45-74ab-4022-9d4d-b078a2375f76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{s2s_key}}"},{"key":"password","value":"{{s2s_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"product_action\": {\n                    \"action\": \"purchase\",\n                    \"transaction_id\": \"12345\",\n                    \"total_amount\": 20,\n                    \"tax_amount\": 0,\n                    \"shipping_amount\": 0,\n                    \"products\": [\n                        {\n                            \"id\": \"mp12345\",\n                            \"name\": \"Product1\",\n                            \"brand\": \"Brand\",\n                            \"price\": 10,\n                            \"quantity\": 1,\n                            \"total_product_amount\": 10,\n                            \"custom_attributes\": {\n                                \"Delivery Method\": \"Home\",\n                                \"Store Location\": \"SF\",\n                                \"Purchase Method\": \"Credit Card\"\n                            }\n                        },\n                        {\n                            \"id\": \"mp12346\",\n                            \"name\": \"Product2\",\n                            \"brand\": \"Brand\",\n                            \"price\": 10,\n                            \"quantity\": 1,\n                            \"total_product_amount\": 10,\n                            \"custom_attributes\": {\n                                \"Delivery Method\": \"Home\",\n                                \"Store Location\": \"SF\",\n                                \"Purchase Method\": \"Credit Card\"\n                            }\n                        }\n                    ]\n                },\n                \"currency_code\": \"USD\",\n                \"screen_name\": \"Purchase\",\n                \"is_non_interactive\": false,\n                \"custom_attributes\": {}\n            },\n            \"event_type\": \"commerce_event\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>Capture E-commerce events utilizing mParticle's E-commerce API. We allow you to capture all relevant information for these types of events and forward them downstream as such so you do not have to map them. While purchase is the event demonstrated below, the same event can be used for other e-commerce events such as: add_to_cart, remove_from_cart, checkout etc. by modifying the \"action\" field in the payload.</p>\n<p>You can see the full list of e-commerce events which can be collected by referring to our docs: <a href=\"https://bit.ly/3dzu94P\">https://bit.ly/3dzu94P</a></p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"43fd2d45-74ab-4022-9d4d-b078a2375f76"},{"name":"S2S Screen View Events","id":"b97bcb20-9842-4b1b-ac48-d8e15a021cd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{s2s_key}}"},{"key":"password","value":"{{s2s_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"screen_name\": \"Home\",\n                \"device_current_state\": {},\n                \"custom_attributes\": {\n                    \"App\": \"Test1\"\n                }\n            },\n            \"event_type\": \"screen_view\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>Utilize this script if you want to understand what screens your customers are viewing to better understand a customer's journey through your application.</p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b97bcb20-9842-4b1b-ac48-d8e15a021cd3"}],"id":"34dfb653-bebf-4564-9059-f7c1032e934a","description":"<p>These scripts can be utilized if you want to send data into mParticle from backend systems via a server-to-server connection.</p>\n","_postman_id":"34dfb653-bebf-4564-9059-f7c1032e934a"},{"name":"IDSync","item":[{"name":"Identify","id":"1714503e-0749-4d70-b69e-8632504ab95f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{ios_key}}"},{"key":"password","value":"{{ios_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"client_sdk\": {\n        \"platform\": \"ios\"\n    },\n    \"context\": \"string\",\n    \"environment\": \"development\",\n    \"request_id\": \"string\",\n    \"request_timestamp_ms\": 0,\n    \"known_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://identity.mparticle.com/v1/identify","description":"<p>The identify request should be used to establish a user identity, typically when an app is first initialized. It accepts a set of known identities and returns an mParticle ID, in accordance with an Identity Strategy. You should provide all available identifying information for the given user. Ensure that the basic auth keys are the same for the client_sdk used in the body for all identity calls.</p>\n<p>Docs for additional reference: <a href=\"https://bit.ly/353L63n\">https://bit.ly/353L63n</a></p>\n","urlObject":{"protocol":"https","path":["v1","identify"],"host":["identity","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1714503e-0749-4d70-b69e-8632504ab95f"},{"name":"Login","id":"cb3ca980-c208-4e4a-afbd-855307330cd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{ios_key}}"},{"key":"password","value":"{{ios_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"client_sdk\": {\n        \"platform\": \"ios\",\n        \"sdk_vendor\": \"string\",\n        \"sdk_version\": \"string\"\n    },\n    \"context\": \"string\",\n    \"environment\": \"development\",\n    \"request_id\": \"string\",\n    \"request_timestamp_ms\": 0,\n    \"known_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://identity.mparticle.com/v1/login","description":"<p>Utilize this payload and endpoint when a customer logs into your application.</p>\n<p>Docs for additional reference: <a href=\"https://bit.ly/31eJYZM\">https://bit.ly/31eJYZM</a></p>\n","urlObject":{"protocol":"https","path":["v1","login"],"host":["identity","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb3ca980-c208-4e4a-afbd-855307330cd3"},{"name":"Logout","id":"0e70d440-a8dd-405f-87eb-cd96a109bc00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{ios_key}}"},{"key":"password","value":"{{ios_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"client_sdk\": {\n        \"platform\": \"ios\",\n        \"sdk_vendor\": \"mparticle\",\n        \"sdk_version\": \"5.0.0\"\n    },\n    \"context\": \"string\",\n    \"environment\": \"development\",\n    \"request_id\": \"string\",\n    \"request_timestamp_ms\": 0,\n    \"known_identities\": {\n        \"ios_idfv\": \"{{ios_idfv}}\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://identity.mparticle.com/v1/logout","description":"<p>Utilize this payload and endpoint when a customer logs into your application.</p>\n<p>Docs for additional reference: <a href=\"https://bit.ly/31eJYZM\">https://bit.ly/31eJYZM</a></p>\n","urlObject":{"protocol":"https","path":["v1","logout"],"host":["identity","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e70d440-a8dd-405f-87eb-cd96a109bc00"},{"name":"Search","id":"5da57836-7749-4880-bff6-e428c727549d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{ios_key}}"},{"key":"password","value":"{{ios_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"client_sdk\": {\n        \"platform\": \"ios\",\n        \"sdk_vendor\": \"mparticle\",\n        \"sdk_version\": \"5.0.0\"\n    },\n    \"context\": \"string\",\n    \"environment\": \"development\",\n    \"request_id\": \"string\",\n    \"request_timestamp_ms\": 0,\n    \"known_identities\": {\n        \"customer_id\": \"test123\",\n        \"email\": \"user@test.com\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://identity.mparticle.com/v1/search","description":"<p>The search path should be used when you wish to determine the existence of a user identity.</p>\n<p>Docs for additional reference: <a href=\"https://bit.ly/2T3j2aQ\">https://bit.ly/2T3j2aQ</a></p>\n","urlObject":{"protocol":"https","path":["v1","search"],"host":["identity","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5da57836-7749-4880-bff6-e428c727549d"},{"name":"Modify","id":"225dd456-7bf8-4c37-9d1e-d45454aa08fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{ios_key}}"},{"key":"password","value":"{{ios_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"environment\": \"development\",\n  \"identity_changes\": [\n    {\n      \"old_value\": \"user@test.com\",\n      \"new_value\": \"test123@mpdemo.com\",\n      \"identity_type\": \"email\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://identity.mparticle.com/v1/-406360343742164521/modify","description":"<p>Modify must be performed on an existing mParticle ID. It will mutate an existing user, and will never result in a new user. </p>\n<p>Docs for additional reference: <a href=\"https://bit.ly/3lTcCav\">https://bit.ly/3lTcCav</a></p>\n","urlObject":{"protocol":"https","path":["v1","-406360343742164521","modify"],"host":["identity","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"225dd456-7bf8-4c37-9d1e-d45454aa08fc"}],"id":"8429f9f5-a86e-46b1-a788-e98d9f9b1cee","description":"<p>IDSync is mParticle’s new premium identity management framework, enabling our customers to create a unified view of the customer, with improved data governance, policy, and security.</p>\n","_postman_id":"8429f9f5-a86e-46b1-a788-e98d9f9b1cee"},{"name":"Data Planning","item":[{"name":"Generate Bearer Token","id":"a5dbd49d-82ad-4250-8b49-462f492c42d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"client_id\": \"{{wrkspc_id}}\",\n    \"client_secret\": \"{{wrkspc_secret}}\",\n    \"audience\": \"https://api.mparticle.com\",\n    \"grant_type\": \"client_credentials\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sso.auth.mparticle.com/oauth/token","description":"<p>This utilizes a platform key/secret to generate a bearer authorization code to access the data plan end points. These bearer tokens expire in 24 hours.</p>\n","urlObject":{"protocol":"https","path":["oauth","token"],"host":["sso","auth","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5dbd49d-82ad-4250-8b49-462f492c42d1"},{"name":"Get plan","id":"1e49a5aa-1c46-4294-81a7-be3478b39ca0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mparticle.com/platform/v2/workspaces/{{workspaceId}}/plans/{{data_plan_name}}","description":"<p>Utilize this endpoint to view all versions of a specific data plan from a specific workspace.</p>\n","urlObject":{"protocol":"https","path":["platform","v2","workspaces","{{workspaceId}}","plans","{{data_plan_name}}"],"host":["api","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e49a5aa-1c46-4294-81a7-be3478b39ca0"},{"name":"Get all plans","id":"3208d23f-d073-4753-89ac-2630d59a46d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mparticle.com/platform/v2/workspaces/{{workspaceId}}/plans","description":"<p>Utilize this endpoint to view all data plans (and all their versions) from a specific workspace.</p>\n","urlObject":{"protocol":"https","path":["platform","v2","workspaces","{{workspaceId}}","plans"],"host":["api","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3208d23f-d073-4753-89ac-2630d59a46d4"},{"name":"Create plan","id":"70573483-f18a-4b08-a4d8-48d7484ab398","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"version\": 1,\n    \"data_plan_id\": \"template\",\n    \"version_description\": \"\",\n    \"version_document\": {\n        \"data_points\": [\n            {\n                \"description\": \"\",\n                \"match\": {\n                    \"type\": \"custom_event\",\n                    \"criteria\": {\n                        \"event_name\": \"Test\",\n                        \"custom_event_type\": \"other\"\n                    }\n                },\n                \"validator\": {\n                    \"type\": \"json_schema\",\n                    \"definition\": {\n                        \"properties\": {\n                            \"data\": {\n                                \"additionalProperties\": true,\n                                \"properties\": {\n                                    \"custom_attributes\": {\n                                        \"additionalProperties\": true,\n                                        \"description\": \"\",\n                                        \"properties\": {\n                                            \"Trial\": {\n                                                \"description\": \"\",\n                                                \"type\": \"number\"\n                                            }\n                                        },\n                                        \"required\": [\"Trial\"],\n                                        \"type\": \"object\"\n                                    }\n                                },\n                                \"required\": [],\n                                \"type\": \"object\"\n                            }\n                        }\n                    }\n                },\n                \"active_transformation_ids\": null\n            },\n            {\n                \"description\": \"\",\n                \"match\": {\n                    \"type\": \"custom_event\",\n                    \"criteria\": {\n                        \"event_name\": \"Test2\",\n                        \"custom_event_type\": \"transaction\"\n                    }\n                },\n                \"validator\": {\n                    \"type\": \"json_schema\",\n                    \"definition\": {\n                        \"properties\": {\n                            \"data\": {\n                                \"additionalProperties\": true,\n                                \"properties\": {\n                                    \"custom_attributes\": {\n                                        \"additionalProperties\": true,\n                                        \"description\": \"\",\n                                        \"properties\": {\n                                            \"Type\": {\n                                                \"description\": \"\",\n                                                \"type\": \"string\"\n                                            }\n                                        },\n                                        \"required\": [],\n                                        \"type\": \"object\"\n                                    }\n                                },\n                                \"required\": [],\n                                \"type\": \"object\"\n                            }\n                        }\n                    }\n                },\n                \"active_transformation_ids\": null\n            },\n            {\n                \"description\": \"\",\n                \"match\": {\n                    \"type\": \"custom_event\",\n                    \"criteria\": {\n                        \"event_name\": \"Product Search\",\n                        \"custom_event_type\": \"search\"\n                    }\n                },\n                \"validator\": {\n                    \"type\": \"json_schema\",\n                    \"definition\": {\n                        \"properties\": {\n                            \"data\": {\n                                \"additionalProperties\": true,\n                                \"properties\": {\n                                    \"custom_attributes\": {\n                                        \"additionalProperties\": true,\n                                        \"description\": \"\",\n                                        \"properties\": {\n                                            \"Search Term\": {\n                                                \"description\": \"\",\n                                                \"type\": \"string\"\n                                            }\n                                        },\n                                        \"required\": [],\n                                        \"type\": \"object\"\n                                    }\n                                },\n                                \"required\": [],\n                                \"type\": \"object\"\n                            }\n                        }\n                    }\n                },\n                \"active_transformation_ids\": null\n            }\n        ],\n        \"transformations\": null,\n        \"active_transformation_ids\": null\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.mparticle.com/platform/v2/workspaces/{{workspaceId}}/plans","description":"<p>Create a data plan in a specific workspace at the above endpoint using the below body.</p>\n","urlObject":{"protocol":"https","path":["platform","v2","workspaces","{{workspaceId}}","plans"],"host":["api","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"70573483-f18a-4b08-a4d8-48d7484ab398"},{"name":"Update plan","id":"7d3c981c-ab88-4a30-859e-22764913f80d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n\t\"data_plan_description\": \"This is an updated description...\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.mparticle.com/platform/v2/workspaces/{{workspaceId}}/plans/{{data_plan_name}}","description":"<p>Update any aspect of the data plan in a specific workspace at the above endpoint using the below body.</p>\n","urlObject":{"protocol":"https","path":["platform","v2","workspaces","{{workspaceId}}","plans","{{data_plan_name}}"],"host":["api","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7d3c981c-ab88-4a30-859e-22764913f80d"},{"name":"Create plan version","id":"7d25428a-c6a4-4224-9030-ac0c87e4d02b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"version\": 42,\n    \"version_document\": {\n        \"data_points\": [\n            {\n                \"description\": \"My first data point\",\n                \"match\": {\n                    \"type\": \"custom_event\",\n                    \"criteria\": {\n                        \"event_name\": \"My Custom Event Name\",\n                        \"custom_event_type\": \"other\"\n                    }\n                },\n                \"validator\": {\n                    \"type\": \"json_schema\",\n                    \"definition\": {\n                        \"properties\": {\n                            \"data\": {\n                                \"additionalProperties\": true,\n                                \"properties\": {\n                                    \"custom_attributes\": {\n                                        \"additionalProperties\": false,\n                                        \"properties\": {\n                                            \"foo\": {\n                                                \"type\": \"boolean\"\n                                            }\n                                        },\n                                        \"required\": [\"foo\"]\n                                    }\n                                },\n                                \"required\": [\n                                    \"custom_attributes\"\n                                ]\n                            }\n                        }\n                    }\n                }\n            }\n        ],\n        \"settings\": {\n            \"validation_actions\": {\n                \"event\": \"allow\",\n                \"event_attribute\": \"allow\",\n                \"user_attribute\": \"allow\"\n            }\n        }\n    },\n    \"activated_environment\": \"none\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.mparticle.com/platform/v2/workspaces/{{workspaceId}}/plans/{{data_plan_name}}/versions","description":"<p>Create a new version of an existing data plan in a specific workspace at the above endpoint using the below body.</p>\n","urlObject":{"protocol":"https","path":["platform","v2","workspaces","{{workspaceId}}","plans","{{data_plan_name}}","versions"],"host":["api","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7d25428a-c6a4-4224-9030-ac0c87e4d02b"},{"name":"Get plan version","id":"3517721b-0e9c-4273-9625-1c85defb6d6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mparticle.com/platform/v2/workspaces/{{workspaceId}}/plans/{{data_plan_name}}/versions/1","description":"<p>View a specific version of an existing data plan in a specific workspace at the above endpoint using the below body.</p>\n","urlObject":{"protocol":"https","path":["platform","v2","workspaces","{{workspaceId}}","plans","{{data_plan_name}}","versions","1"],"host":["api","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3517721b-0e9c-4273-9625-1c85defb6d6d"},{"name":"iOS Data Plan Violations","id":"0f9a32a9-f8b4-47e0-b593-2ec5b3adafc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{s2s_key}}"},{"key":"password","value":"{{s2s_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"context\": {\n        \"data_plan\": {\n            \"plan_id\": \"test1\",\n            \"plan_version\": 1\n        }\n    },\n    \"device_info\": {\n        \"brand\": \"Apple\",\n        \"product\": \"iPhoneX\",\n        \"device\": \"John's iPhone X\",\n        \"device_manufacturer\": \"Apple\",\n        \"platform\": \"iOS\",\n        \"os_version\": \"13.4.1\",\n        \"device_model\": \"iPhoneX\",\n        \"device_country\": \"USA\",\n        \"locale_language\": \"en\",\n        \"locale_country\": \"US\",\n        \"network_country\": \"us\",\n        \"network_carrier\": \"AT&T\",\n        \"network_code\": \"410\",\n        \"network_mobile_country_code\": \"310\",\n        \"ios_idfv\": \"1e48d8f5-1573-4cc3-9667-f5c1b2bf1a28\"\n    },\n    \"user_attributes\": {\n        \"$firstname\": \"\",\n        \"$lastname\": \"\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"{{customer_id}}\",\n        \"email\": \"{{email}}\"\n    },\n    \"consent_state\": {},\n    \"events\": [\n        {\n            \"data\": {\n                \"event_name\": \"Product Search\",\n                \"custom_event_type\": \"Other\",\n                \"custom_attributes\": {\n                    \"\": \"\"\n                }\n            },\n            \"event_type\": \"custom_event\"\n        },\n        {\n            \"data\": {\n                \"event_name\": \"test2\",\n                \"custom_event_type\": \"transaction\",\n                \"custom_attributes\": {\n                    \"Type\": \"123\"\n                }\n            },\n            \"event_type\": \"custom_event\"\n        },\n        {\n            \"data\": {\n                \"event_name\": \"Test\",\n                \"custom_event_type\": \"other\",\n                \"custom_attributes\": {\n                    \"Type\": \"123\"\n                }\n            },\n            \"event_type\": \"custom_event\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.eu1.mparticle.com/v2/events","description":"<p>Use this script against the data plan created in \"Create Plan\" script to see violations in Livestream.</p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","eu1","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0f9a32a9-f8b4-47e0-b593-2ec5b3adafc9"}],"id":"33d99cec-dff8-4092-b932-db0a20ad29e0","description":"<p>A Data Plan is a set of expectations about the extent and shape of your data collected with mParticle. These requests allow you to access/view/modify data plans without having to utilize the UI.</p>\n","_postman_id":"33d99cec-dff8-4092-b932-db0a20ad29e0"},{"name":"Consent Management","item":[{"name":"iOS Consent State Events","id":"075227cb-3d29-4afa-b89b-c7f822faf6ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{ios_key}}"},{"key":"password","value":"{{ios_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"schema_version\": 2,\n    \"environment\": \"development\",\n    \"device_info\": {\n        \"brand\": \"Apple\",\n        \"product\": \"iPhoneX\",\n        \"device\": \"John's iPhone X\",\n        \"device_manufacturer\": \"Apple\",\n        \"platform\": \"iOS\",\n        \"os_version\": \"13.4.1\",\n        \"device_model\": \"iPhoneX\",\n        \"device_country\": \"USA\",\n        \"locale_language\": \"en\",\n        \"locale_country\": \"US\",\n        \"network_country\": \"us\",\n        \"network_carrier\": \"AT&T\",\n        \"network_code\": \"410\",\n        \"network_mobile_country_code\": \"310\",\n        \"ios_idfv\": \"fff6bc34-9a0d-4933-a34d-799d2181ea00\"\n    },\n    \"user_attributes\": {\n        \"$firstname\": \"John\",\n        \"$lastname\": \"Doe\"\n    },\n    \"deleted_user_attributes\": [],\n    \"user_identities\": {\n        \"customer_id\": \"{{customer_id}}\",\n        \"email\": \"{{email}}\"\n    },\n    \"consent_state\": {\n        \"gdpr\": {\n            \"location\": {\n                \"consented\": true,\n                \"document\": \"location_collection_agreement_v4\",\n                \"timestamp_unixtime_ms\": 1523039002083,\n                \"location\": \"17 Cherry Tree Lane\",\n                \"hardware_id\": \"IDFA:a5d934n0-232f-4afc-2e9a-3832d95zc702\"\n            },\n            \"analytics\": {\n                \"consented\": false,\n                \"document\": \"analytics_consent_agreement_v2\",\n                \"timestamp_unixtime_ms\": 1523039002083,\n                \"location\": \"17 Cherry Tree Lane\",\n                \"hardware_id\": \"IDFA:a5d934n0-232f-4afc-2e9a-3832d95zc702\"\n            },\n            \"marketing\": {\n                \"consented\": false,\n                \"document\": \"marketing_consent_agreement_v2\",\n                \"timestamp_unixtime_ms\": 1523039002083,\n                \"location\": \"17 Cherry Tree Lane\",\n                \"hardware_id\": \"IDFA:a5d934n0-232f-4afc-2e9a-3832d95zc702\"\n            }\n        },\n        \"ccpa\": {\n            \"data_sale_opt_out\": {\n                \"consented\": true,\n                \"document\": null,\n                \"timestamp_unixtime_ms\": 1523039002083,\n                \"location\": null,\n                \"hardware_id\": null\n            }\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://s2s.mparticle.com/v2/events","description":"<p>Send in GDPR or CCPA consent states against a given profile. Ensure that you have these privacy states and subjects defined in your workspace before using.</p>\n","urlObject":{"protocol":"https","path":["v2","events"],"host":["s2s","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"075227cb-3d29-4afa-b89b-c7f822faf6ce"},{"name":"Data Subject Request (Erasure)","id":"21a9048a-c08e-4ba2-94c0-0c96916cb59b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"regulation\": \"gdpr\",\n    \"subject_request_id\": \"2061441e-4eff-4b33-9ad2-754cd615c34f\",\n    \"subject_request_type\": \"erasure\",\n    \"submitted_time\": \"2020-08-02T15:00:00Z\",\n    \"subject_identities\": [\n        {\n            \"identity_type\": \"email\",\n            \"identity_value\": \"johndoes@example.com\",\n            \"identity_format\": \"raw\"\n        }\n    ],\n    \"api_version\": \"2.0\",\n    \"status_callback_urls\": [\n        \"https://exampleurl.com/opendsr/callbacks\"\n    ],\n    \"extensions\": {\n        \"opendsr.mparticle.com\": {\n            \"mpids\": [\n                3992614025127857642\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://opendsr.mparticle.com/v2/requests/","description":"<p>Utilizing our OpenDSR endpoints, you can submit data subject requests to erase data from our system. You can also use the same request to access or port data as well.</p>\n","urlObject":{"protocol":"https","path":["v2","requests",""],"host":["opendsr","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"21a9048a-c08e-4ba2-94c0-0c96916cb59b"},{"name":"Get Status of DSR","id":"e50ac600-fe4a-4275-98ce-bd7e66a96aaa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{platform_key}}"},{"key":"password","value":"{{platform_secret}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://opendsr.mparticle.com/v2/requests/{{DSR_id}}","description":"<p>Use this request to get the status of a DSR.</p>\n","urlObject":{"protocol":"https","path":["v2","requests","{{DSR_id}}"],"host":["opendsr","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e50ac600-fe4a-4275-98ce-bd7e66a96aaa"},{"name":"Discover DSR","id":"008b8d03-44c9-4805-b562-14e4d1ba51b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{platform_key}}"},{"key":"password","value":"{{platform_secret}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://opendsr.mparticle.com/v2/discovery/","description":"<p>The discovery endpoint allows you to programmatically check the request types and identity types supported by an OpenDSR provider.</p>\n","urlObject":{"protocol":"https","path":["v2","discovery",""],"host":["opendsr","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"008b8d03-44c9-4805-b562-14e4d1ba51b0"},{"name":"Delete DSR","id":"7465b147-3789-48bf-96dd-d81bee4558bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{platform_key}}"},{"key":"password","value":"{{platform_secret}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://opendsr.mparticle.com/v2/requests/{{DSR_id}}","description":"<p>Cancels a request. This can only be done if the status of the request is pending.</p>\n","urlObject":{"protocol":"https","path":["v2","requests","{{DSR_id}}"],"host":["opendsr","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7465b147-3789-48bf-96dd-d81bee4558bb"}],"id":"75aa88f3-d984-47a5-86ab-95cd8532f665","description":"<p>Utilize our OpenDSR and Consent APIs to capture GDPR and CCPA compliance for your users.</p>\n","_postman_id":"75aa88f3-d984-47a5-86ab-95cd8532f665"},{"name":"Profile API","item":[{"name":"Generate Bearer Token","id":"2e1fc948-192d-45a3-86a5-04ab480e13d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"client_id\": \"{{wrkspc_id}}\",\n\t\"client_secret\": \"{{wrkspc_secret}}\",\n    \"audience\": \"https://api.mparticle.com\",\n    \"grant_type\": \"client_credentials\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sso.auth.mparticle.com/oauth/token","description":"<p>This utilizes a platform key/secret to generate a bearer authorization code to access the Profile API endpoints. These bearer tokens expire in 24 hours.</p>\n","urlObject":{"protocol":"https","path":["oauth","token"],"host":["sso","auth","mparticle","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e1fc948-192d-45a3-86a5-04ab480e13d2"},{"name":"Get Profile Information","id":"441f7ba6-028b-4b38-8b32-0cbc9250957e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.mparticle.com/userprofile/v1/{{orgId}}/{{accountId}}/{{workspaceId}}/{{mpid}}?fields=user_identities,user_attributes,audience_memberships","description":"<p>Get profile information for a specific user utilizing the endpoint above using very specific credentials for the exact workspace where the user exists.</p>\n","urlObject":{"protocol":"https","path":["userprofile","v1","{{orgId}}","{{accountId}}","{{workspaceId}}","{{mpid}}"],"host":["api","mparticle","com"],"query":[{"key":"fields","value":"user_identities,user_attributes,audience_memberships"}],"variable":[]}},"response":[],"_postman_id":"441f7ba6-028b-4b38-8b32-0cbc9250957e"}],"id":"7a243d73-21d5-42b5-a335-df48925399e2","_postman_id":"7a243d73-21d5-42b5-a335-df48925399e2","description":""}]}