Server-side events
Send identify and track events from your backend to Jimo through one API endpoint, to update user attributes and record actions that happen outside the browser.
Server-side events let your backend send data to Jimo directly. Use them for what happens outside the browser, such as a payment, a plan change or an import finishing, and for attributes your front-end does not know.
When to use it
Attributes and events your front-end knows
The SDK: Attributes and events
Attributes and events only your backend knows
Server-side events
Data already flowing through Segment
Segment, server-side destination

Before you start
A backend that can send HTTP requests.
Your API key, from Settings > Integrations > Server-Side Events: the key is masked, copy it with the copy button next to it. Keep it on your server: never ship it in front-end code.
The ID you use for each user in Jimo's identify call. Server-side events must use the same value. See Identify your users.

Endpoint and authentication
URL
https://karabor-harbour.usejimo.com/sse/webhook
Authentication
Your API key in the x-api-key request header
Event types
identify, track
Identify: update user attributes
userId
string
Yes
The user's ID, the same value as the identify token used in Jimo
type
string
Yes
identify
timestamp
string
Yes
ISO-8601, in UTC
traits
object
Yes
Key-value pairs of attributes to update
The keys of traits are attribute keys. Create them in Attributes with their type before you send values, so segments can use them from the first call. See Create a custom attribute.
Track: record an action
userId
string
Yes
The user's ID, the same value as the identify token used in Jimo
type
string
Yes
track
timestamp
string
Yes
ISO-8601, in UTC
event
string
Yes
The name of the event
properties
object
No
Key-value pairs with details on the event
Name events the same way as your SDK events, so one event name means one action wherever it comes from.
Verify
Send an
identifycall for a test user, then open that user in Users and check the attributes.Send a
trackcall, then check that the event is listed in Success Tracker > Events. The list shows each event once, with its Source and when it was Last received at, not a history over time: to follow an event over time, create a feature usage tracker.

Limits
Backend only
The API key gives write access to your users' data: keep it on your server, never in front-end code.
Events are listed, not counted
Success Tracker > Events lists each event once, with its Source and when it was Last received at, not a history over time. To follow an event over time, create a feature usage tracker.
Common mistakes
The user is not updated
The userId does not match the ID used in Jimo's identify call. Use the exact same value, with the same format.
Dates look shifted
Send ISO-8601 timestamps in UTC.
Related
Attributes: the list of attributes and their types
SDK methods: the front-end equivalent,
event:trackanduser:attributesWebhooks: the opposite direction, from Jimo to your backend
Last updated