DocsIntegrationsAPI payload reference
IntegrationsCustom

API payload reference

Reference for the exact request bodies the engine accepts on the core v1 ingest routes.

Source of truthserver/engine/cmd/sankofa/main.go

Track payload

FieldTypeRequiredDescription
event_namestringYesStable event name such as signup_completed or payment_failed.
distinct_idstringYesThe active user identifier or anonymous identifier for the event.
propertiesmap<string, string>NoEvent-specific properties. Include $session_id here when you want session correlation.
default_propertiesmap<string, string>NoContext fields such as $os, $device_model, $country, and other SDK-provided defaults.
lib_versionstringNoClient library version label such as flutter-0.0.1 or your own custom sender label.

People payload

FieldTypeRequiredDescription
distinct_idstringYesThe user identity whose profile should be updated.
propertiesmap<string, string>YesFlat profile properties to merge into the person record.

Alias payload

FieldTypeRequiredDescription
alias_idstringYesThe previous anonymous or legacy identifier.
distinct_idstringYesThe new canonical identifier to stitch future analysis against.

The engine promotes some high-value data from payloads into indexed fields:

  • $session_id from properties
  • $city, $region, $country, $timezone from default_properties
  • $os from default_properties
  • $device_model from default_properties