Events

Import up to 1,000 past events

POST/events/import

The backfill endpoint, with its own scope. Same request and response as /events/bulk, but EVERY event is stored as historical, whatever its date: it is kept, counted and visible on the profile, and never triggers a flow or an outbound webhook.

Permission: events:import · on the API key screen: Import past 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.