For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Server-side events are in beta. If you have any questions, contact us at support@usejimo.com.

When to use it

You want to send
Use

Attributes and events your front-end knows

Attributes and events only your backend knows

Server-side events

Data already flowing through Segment

Segment, server-side destination

Your backend posts identify and track calls to the server-side events endpoint with the x-api-key header; identify updates attributes on the user, track records an event listed in Success Tracker > Events. The userId must match the one used in identify

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.

Server-Side Events settings page in Jimo, with the Server-Side Events in BETA notice. A: the API key, masked. B: the copy button.

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

Field
Type
Required
Description

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

Field
Type
Required
Description

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

  1. Send an identify call for a test user, then open that user in Users and check the attributes.

  2. Send a track call, 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.

Success Tracker > Events, with the columns Name, Source, Created at and Last received at. The row of an event received from Segment is outlined, and A marks its Source.

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.

Last updated