mParticle

App · 22 actions

Send events and user attributes, read user profiles, and manage apps and audiences in mParticle.

Actions

ActionWhat it does
Add a platform to an appAdd a platform to an app.
Create an appCreate an app with one or more platforms.
Delete an appDelete an app.
Delete an audienceDelete a real-time audience.
Find a user profileFind a user's profile by an identity, such as their customer ID.
Get a calculated attributeGet a calculated attribute and its definition.
Get a feedGet a partner feed's settings.
Get a user profileGet a user's profile by mParticle ID: identities, attributes and audiences.
Get an appGet an app and its platforms.
List a workspace's audiencesList the active real-time audiences of one workspace.
List accountsList the accounts the credentials can reach.
List appsList the account's apps and their platforms.
List audiencesList the account's active real-time audiences, with their size and outputs.
List calculated attributesList a workspace's calculated attributes, optionally by name.
List dashboard usersList the people who can sign in to the account.
List feedsList the partner feeds (inputs from other services) of a workspace.
List servicesList the services (outputs) mParticle can forward data to, with their settings.
List workspacesList the workspaces in the account.
Remove a platform from an appRemove a platform from an app.
Rename an appChange an app's name.
Send an eventSend a custom event for a user, with any user attributes to update at the same time.
Update user attributesSet attributes on a user's profile without sending an event.

Add a platform to an app

Add a platform to an app. Its new key and secret are in the answer, the only time the secret is shown.

Inputs

Appapp_idtextRequired
The app.
PlatformostextRequired
The platform to add.One of: iOS, tvOS, Android, MobileWeb, Roku, Alexa, SmartTV, FireTV, Xbox.
Profile mergingprofile_mergingtrue/false
Merge user profiles on this platform.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "data": [
      {
        "access_keys": [
          {
            "data_type": "example",
            "key": "example",
            "secret": "example"
          }
        ],
        "application_id": 1,
        "crash_handling": "example",
        "created_on": "example",
        "last_modified_on": "example",
        "network_performance": "example",
        "os": "example",
        "profile_merging": true,
        "push_attribution_timer": 1,
        "social_mode": "example"
      }
    ],
    "dataType": "example"
  }
}

Create an app

Create an app with one or more platforms. Each new platform's key and secret are in the answer, the only time the secret is shown.

Inputs

NamenametextRequired
The app's name.
PlatformsplatformslistRequired
The platforms the app runs on.One or more of: iOS, tvOS, Android, MobileWeb, Roku, Alexa, SmartTV, FireTV, Xbox.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "data": [
      {
        "created_on": "example",
        "data_type": "example",
        "id": 1,
        "last_modified_on": "example",
        "name": "example",
        "platforms": [
          {
            "access_keys": [
              {
                "data_type": "example",
                "key": "example",
                "secret": "example"
              }
            ],
            "application_id": 1,
            "crash_handling": "example",
            "created_on": "example",
            "last_modified_on": "example",
            "network_performance": "example",
            "os": "example",
            "profile_merging": true,
            "push_attribution_timer": 1,
            "social_mode": "example"
          }
        ]
      }
    ],
    "dataType": "example"
  }
}

Delete an app

Delete an app. Remove its platforms first: an app with platforms can't be deleted.

Inputs

Appapp_idtextRequired
The app.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "app_id": "example",
    "deleted": true
  }
}

Delete an audience

Delete a real-time audience. It stops being sent to its outputs.

Inputs

Audienceaudience_idtextRequired
The audience.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "audience_id": "example",
    "deleted": true
  }
}

Find a user profile

Find a user's profile by an identity, such as their customer ID. The identity type must be one your identity strategy never changes.

Inputs

Workspaceworkspace_idtextRequired
The workspace.
ReturnfieldslistRequired
The parts of the profile to return.One or more of: user_identities (User identities), user_attributes (User attributes), audience_memberships (Audience memberships), device_identities (Device identities), attribution, partner_identities (Partner identities).
Identity typeidentity_typetextRequired
The kind of identity, such as customer_id.One of: customer_id (Customer id), email, other, other_id_2 (Other id 2), other_id_3 (Other id 3), other_id_4 (Other id 4), mobile_number (Mobile number).
Identity valueidentity_valuetextRequired
The user's value for that identity.
Environmentenvironment_typetext
Whether to look in live data or test data. Live data if left empty.One of: production, development.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "attribution": [
      {}
    ],
    "audience_memberships": [
      {
        "audience_id": 1,
        "audience_name": "example",
        "expiration_timestamp_ms": 1
      }
    ],
    "created_timestamp_ms": 1,
    "device_identities": [
      {
        "encoding": "example",
        "type": "example",
        "value": "example"
      }
    ],
    "is_opted_out": true,
    "last_stored_timestamp_ms": 1,
    "mpid": "example",
    "partner_identities": {},
    "user_attributes": {},
    "user_identities": [
      {
        "encoding": "example",
        "type": "example",
        "value": "example"
      }
    ]
  }
}

Get a calculated attribute

Get a calculated attribute and its definition.

Inputs

Workspaceworkspace_idtextRequired
The workspace.
Calculated attribute IDcalculated_attribute_idnumberRequired
The calculated attribute's ID, from List calculated attributes.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "activated_by": "example",
    "activated_on": "example",
    "active_definition": {},
    "audience_count": 1,
    "created_by": "example",
    "created_on": "example",
    "description": "example",
    "draft_definition": {},
    "id": 1,
    "last_modified_by": "example",
    "last_modified_on": "example",
    "name": "example"
  }
}

Get a feed

Get a partner feed's settings.

Inputs

Feed IDfeed_idtextRequired
The feed's ID, from List feeds.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "data": [
      {
        "created_on": "example",
        "data_type": "example",
        "id": "example",
        "is_debug": true,
        "module_name": "example",
        "name": "example",
        "os": "example",
        "profile_protection_type": "example",
        "settings": [
          {
            "name": "example",
            "value": "example"
          }
        ]
      }
    ],
    "dataType": "example"
  }
}

Get a user profile

Get a user's profile by mParticle ID: identities, attributes and audiences.

Inputs

Workspaceworkspace_idtextRequired
The workspace.
mParticle IDmpidtextRequired
The user's mParticle ID (MPID).
ReturnfieldslistRequired
The parts of the profile to return.One or more of: user_identities (User identities), user_attributes (User attributes), audience_memberships (Audience memberships), device_identities (Device identities), attribution, partner_identities (Partner identities).

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "attribution": [
      {}
    ],
    "audience_memberships": [
      {
        "audience_id": 1,
        "audience_name": "example",
        "expiration_timestamp_ms": 1
      }
    ],
    "created_timestamp_ms": 1,
    "device_identities": [
      {
        "encoding": "example",
        "type": "example",
        "value": "example"
      }
    ],
    "is_opted_out": true,
    "last_stored_timestamp_ms": 1,
    "mpid": "example",
    "partner_identities": {},
    "user_attributes": {},
    "user_identities": [
      {
        "encoding": "example",
        "type": "example",
        "value": "example"
      }
    ]
  }
}

Get an app

Get an app and its platforms.

Inputs

Appapp_idtextRequired
The app.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "data": [
      {
        "created_on": "example",
        "data_type": "example",
        "id": 1,
        "last_modified_on": "example",
        "name": "example",
        "platforms": [
          {
            "access_keys": [
              {
                "data_type": "example",
                "key": "example",
                "secret": "example"
              }
            ],
            "application_id": 1,
            "crash_handling": "example",
            "created_on": "example",
            "last_modified_on": "example",
            "network_performance": "example",
            "os": "example",
            "profile_merging": true,
            "push_attribution_timer": 1,
            "social_mode": "example"
          }
        ]
      }
    ],
    "dataType": "example"
  }
}

List a workspace's audiences

List the active real-time audiences of one workspace.

Inputs

Workspaceworkspace_idtextRequired
The workspace.

Outputs

datalist
The response from mParticle.
Example output
{
  "data": [
    {
      "added_last_24_hours": 1,
      "connected_outputs": [
        {
          "data_type": "example",
          "provider_name": "example"
        }
      ],
      "created_by": "example",
      "created_on": "example",
      "dropped_last_24_hours": 1,
      "external_name": "example",
      "id": 1,
      "is_calculated": true,
      "last_modified_by": "example",
      "last_modified_on": "example",
      "name": "example",
      "size": 1,
      "status": "example",
      "workspaces": [
        {
          "created_on": "example",
          "data_type": "example",
          "id": "example",
          "name": "example"
        }
      ]
    }
  ]
}

List accounts

List the accounts the credentials can reach.

Inputs

None.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "data": [
      {
        "created_on": "example",
        "data_type": "example",
        "id": 1,
        "last_modified_on": "example",
        "name": "example"
      }
    ],
    "dataType": "example"
  }
}

List apps

List the account's apps and their platforms.

Inputs

None.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "data": [
      {
        "created_on": "example",
        "data_type": "example",
        "id": 1,
        "last_modified_on": "example",
        "name": "example",
        "platforms": [
          {
            "access_keys": [
              {
                "data_type": "example",
                "key": "example",
                "secret": "example"
              }
            ],
            "application_id": 1,
            "crash_handling": "example",
            "created_on": "example",
            "last_modified_on": "example",
            "network_performance": "example",
            "os": "example",
            "profile_merging": true,
            "push_attribution_timer": 1,
            "social_mode": "example"
          }
        ]
      }
    ],
    "dataType": "example"
  }
}

List audiences

List the account's active real-time audiences, with their size and outputs.

Inputs

None.

Outputs

datalist
The response from mParticle.
Example output
{
  "data": [
    {
      "added_last_24_hours": 1,
      "connected_outputs": [
        {
          "data_type": "example",
          "provider_name": "example"
        }
      ],
      "created_by": "example",
      "created_on": "example",
      "dropped_last_24_hours": 1,
      "external_name": "example",
      "id": 1,
      "is_calculated": true,
      "last_modified_by": "example",
      "last_modified_on": "example",
      "name": "example",
      "size": 1,
      "status": "example",
      "workspaces": [
        {
          "created_on": "example",
          "data_type": "example",
          "id": "example",
          "name": "example"
        }
      ]
    }
  ]
}

List calculated attributes

List a workspace's calculated attributes, optionally by name.

Inputs

Workspaceworkspace_idtextRequired
The workspace.
Namenametext
Only the calculated attribute with this name.

Outputs

datalist
The response from mParticle.
Example output
{
  "data": [
    {
      "activated_by": "example",
      "activated_on": "example",
      "active_definition": {},
      "audience_count": 1,
      "created_by": "example",
      "created_on": "example",
      "description": "example",
      "draft_definition": {},
      "id": 1,
      "last_modified_by": "example",
      "last_modified_on": "example",
      "name": "example"
    }
  ]
}

List dashboard users

List the people who can sign in to the account.

Inputs

None.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "data": [
      {
        "data_type": "example",
        "email": "example",
        "first_name": "example",
        "last_name": "example"
      }
    ],
    "dataType": "example"
  }
}

List feeds

List the partner feeds (inputs from other services) of a workspace.

Inputs

Workspaceworkspace_idtextRequired
The workspace.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "data": [
      {
        "created_on": "example",
        "data_type": "example",
        "id": "example",
        "is_debug": true,
        "module_name": "example",
        "name": "example",
        "os": "example",
        "profile_protection_type": "example",
        "settings": [
          {
            "name": "example",
            "value": "example"
          }
        ]
      }
    ],
    "dataType": "example"
  }
}

List services

List the services (outputs) mParticle can forward data to, with their settings.

Inputs

None.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "data": [
      {
        "data_type": "example",
        "name": "example",
        "settings": [
          {
            "description": "example",
            "is_required": true,
            "name": "example",
            "type": "example"
          }
        ]
      }
    ],
    "dataType": "example"
  }
}

List workspaces

List the workspaces in the account.

Inputs

None.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "data": [
      {
        "created_on": "example",
        "data_type": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "dataType": "example"
  }
}

Remove a platform from an app

Remove a platform from an app. Data sent with its key stops being accepted.

Inputs

Appapp_idtextRequired
The app.
PlatformostextRequired
The platform to remove.One of: iOS, tvOS, Android, MobileWeb, Roku, Alexa, SmartTV, FireTV, Xbox.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "app_id": "example",
    "deleted": true
  }
}

Rename an app

Change an app's name.

Inputs

Appapp_idtextRequired
The app.
NamenametextRequired
The app's new name.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "name": "example"
  }
}

Send an event

Send a custom event for a user, with any user attributes to update at the same time.

Inputs

Event nameevent_nametextRequired
The event's name, such as Signed Up.
Event typecustom_event_typetext
The kind of event, which mParticle uses to group events.One of: other, navigation, location, search, transaction, user_content (User content), user_preference (User preference), social, media, attribution.
Event attributescustom_attributesobject
The event's attributes, by name, such as plan.
Customer IDcustomer_idtext
The user's customer ID.
Emailemailtext
The user's email address.
mParticle IDmpidtext
The user's mParticle ID (MPID), if known.
User attributesuser_attributesobject
User attributes to set, by name, such as $FirstName or plan.
Environmentenvironmenttext
Whether this is live data or a test.One of: production, development.
Request IDsource_request_idtext
A unique ID for this request, so a repeat is only counted once.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "accepted": true
  }
}

Update user attributes

Set attributes on a user's profile without sending an event.

Inputs

Customer IDcustomer_idtext
The user's customer ID.
Emailemailtext
The user's email address.
mParticle IDmpidtext
The user's mParticle ID (MPID), if known.
User attributesuser_attributesobjectRequired
The attributes to set, by name, such as $FirstName or plan.
Environmentenvironmenttext
Whether this is live data or a test.One of: production, development.

Outputs

dataobject
The response from mParticle.
Example output
{
  "data": {
    "accepted": true
  }
}

On this page