Events

Record up to 1,000 events

POST/events/bulk

The body is a JSON list of up to 1,000 events, each in the shape POST /api/v1/events takes. Always answers 200 with one result per event, in order. An email or external_id nobody has becomes a new profile (not subscribed), as on POST /api/v1/events. One invalid event (or one naming a profile id that does not exist) is reported at its index and never fails the others. Events older than 48 hours are stored as historical.

Permission: events:write · on the API key screen: Events → Full access · All permissions

Body parameters

  • metricstringrequired

    A metric key (placed_order) or name (Placed Order). An unknown name creates a custom metric (at most 200 per account).

    At least 1 characters. At most 100 characters.

  • profileobjectrequired

    Exactly one of id, external_id or email.

    Show properties
    • idstring

      At most 2,000 characters.

    • external_idstring

      At least 1 characters. At most 255 characters.

    • emailstring

      At most 254 characters.

  • occurred_atstring

    Default: now. Events older than 48 hours are stored as historical: they never trigger flows or webhooks.

    At most 2,000 characters.

  • valuestring | number

    A decimal amount, as a string or number.

  • currencystring

    At most 2,000 characters.

  • propertiesobject

    Up to 200 keys, 2,000 values in total, 5 levels deep, 32 KB.

  • unique_idstring

    Your id for this event. A repeat with the same unique_id records nothing. Without one, a repeat is prevented only by an Idempotency-Key or by sending occurred_at (identical events then collapse).

    At least 1 characters. At most 190 characters.

Response

  • recordednumberrequired
  • duplicatesnumberrequired
  • failednumberrequired
  • resultsobject[]required

    At most 1000 items.

    Show properties
    • indexnumberrequired
    • statusstringrequired

      One of: recorded duplicate failed

      At most 2,000 characters.

    • event_idstring | nullrequired

      At most 20 characters.

    • codestring | nullrequired

      At most 64 characters.

    • paramstring | nullrequired

      At most 300 characters.

    • messagestring | nullrequired

      At most 500 characters.