Subscribers

Trigger multiple events for subscriber

Triggers multiple events for a subscriber. Creates the subscriber if they don't exist and applies the workspace default lists setting. Creates event definitions if they don't exist. Events are processed independently, so an error response may still include events that were already triggered.

post/subscribers/events/bulk

Request body

emailstring email

Required when creating a new subscriber. Optional when externalId identifies an existing subscriber.

externalIdstring

Customer-owned app/customer/user ID

firstNamestring

First name to set if creating the subscriber.

lastNamestring

Last name to set if creating the subscriber.

customAttributesobject

Example request

{
  "email": "user@example.com",
  "externalId": "user_123",
  "firstName": "John",
  "lastName": "Doe",
  "events": [
    {
      "name": "page.viewed",
      "properties": {
        "page": "/pricing"
      }
    }
  ]
}

Response

Events triggered successfully

successboolean

Example response

{
  "success": true
}

Changes