The console's data, from the outside.
Authentication
Integrations → API keys. Keys are shown once at issue and stored hashed. Every request carries one as a bearer token; the key resolves to your organisation, so a caller never names a tenant and cannot ask for another's. A key is organisation-wide by default, but at issue you can narrow it to specific apps and mark it read-only — narrower than that request needs is always the right call for a key headed into a script or a third party.
curl https://console.jalon.dev/api/v1/objects \ -H "Authorization: Bearer sk_…"
Records
Objects and fields are defined in the console's Data section; the API reads and writes the same records the agent does, through the same store — so API writes are sanitised by the same rules and fire the same webhooks.
| Call | What |
|---|---|
GET /api/v1/objects |
Your objects and their fields |
GET /api/v1/objects/{slug}/records |
Cursor-paged records |
POST /api/v1/objects/{slug}/records |
Create |
GET /api/v1/records/{id} · PATCH · DELETE |
One record |
Context
The other direction: your backend telling the agent what it knows, rather than reading what we know. Per-user account facts (plan, seats, billing state, open tickets) and app-wide facts no crawl can find (pricing, promos, tier matrices).
| Call | What |
|---|---|
GET /api/v1/apps |
Your apps and their public keys |
PUT · PATCH · GET · DELETE /api/v1/apps/{key}/users/{id}/context |
One user's account context |
PUT · DELETE /api/v1/apps/{key}/context/{name} |
One app-wide universal context entry |
GET /api/v1/apps/{key}/context |
Every entry pushed that way |
Per-user context requires identity verification to be configured on the app. Full reference: Context API.
Your data, out
Sessions, handoffs and findings, readable and downloadable. Raw telemetry is deleted on the retention window, so this is how you keep a copy of what you want to keep.
Not a developer? The same three CSVs are one click away under app settings → Your data. Everything below is for scripting it instead.
Every call names one app with ?app= — your public key, from GET /api/v1/apps. A key is organisation-wide by default, but can be narrowed to
specific apps and issued read-only when you create it — either way, an export
that defaulted to "all of them" would be the widest read in the product
chosen by omission, so naming the app is never optional.
| Call | What |
|---|---|
GET /api/v1/sessions |
Cursor-paged visits, each with its event timeline, page engagement, verdict and the conversations held during it |
GET /api/v1/handoffs |
Cursor-paged handoffs, with context and team replies |
GET /api/v1/findings |
Cursor-paged findings, with evidence |
GET /api/v1/exports/sessions.csv · handoffs.csv · findings.csv |
The same rows, streamed as CSV |
curl -H "Authorization: Bearer sk_…" \ "https://console.jalon.dev/api/v1/sessions?app=pk_…&limit=50" curl -OJ -H "Authorization: Bearer sk_…" \ "https://console.jalon.dev/api/v1/exports/sessions.csv?app=pk_…"
cursor · limit (max 100) on the paged reads; days on either form narrows
to a recent window, and leaving it off returns everything still held. Reads
come back newest first with a nextCursor that is null when there is no more;
the CSV is written oldest first, so a spreadsheet reads in order. Nested values
(context, events, pages, evidence, verdictEvidence, replies,
conversations) are JSON
in their CSV column.
If your organisation has PII redaction on, it is applied on the way out as well as at the write — an export is not a way around your own policy. A handoff's poll token is never included. Every CSV download is written to your audit trail with the key that took it.
A session page carries full timelines and transcripts, so keep limit modest
if you are paging rather than downloading.
Webhooks
Integrations → Webhooks. A signed POST per event: escalation.opened,
escalation.assigned, escalation.resolved, record.created,
playbook.triggered, improve.digest, and — on Enterprise — audit.recorded
for every audit-trail entry. The payload is signed with the
endpoint's secret; verify it before trusting a delivery.
Analytics export
Five events describe what your agent is doing, shaped to be counted rather than read. Subscribe to them like any other event.
| Event | Fires when |
|---|---|
jalon.answer |
A turn was answered — sent as the answer starts. grounded says whether anything backed it. |
jalon.escalation |
Somebody asked for a person. Once, when the handoff opens. |
jalon.friction |
A visit hit trouble. kind says which: rage_click, error, form_abandon or stuck_loop. Dead clicks are not sent. |
jalon.tour_completed |
Somebody completed the last step of an onboarding checklist. Guided walkthroughs do not send it. |
jalon.deflection |
A conversation settled. See the note on timing below. |
Every payload carries the same envelope — schema, occurredAt, appId,
distinctId, sessionId, path — plus its own properties. schema is the
version, and it only changes for a breaking change: new properties get
added without bumping it, so build on the fields you use and ignore the rest.
distinctId is a per-app hash of whatever identity your site declared. It is
stable for one person on one app and meaningless across apps, and the raw
value is never sent in an event. If your organisation has redact PII on, free
text (path, topic, reason) arrives as null; the hashes stay, or the
events could not be counted per person at all.
Preview turns and sandboxed handoffs are never exported.
Deflection is a day behind
jalon.deflection is the honest version of "the agent handled it without a
human", so a conversation only counts as resolved when three things hold:
some turn in it was grounded, no handoff came out of it, and the person
did not come back within the day. That last clause is what stops a
follow-up two hours later — somebody who gave up and retried — being counted as
a save.
It also means the verdict does not exist when the conversation ends. So we send
this event once the 24-hour window has closed, stamped with occurredAt
set to when the conversation actually ended, not when we worked it out. Your
charts land on the right day; today's number is simply not final until
tomorrow. We would rather be a day late than send you a figure we would have to
retract, which your warehouse has no way to accept.
Every settled conversation is sent, not only the successful ones — otherwise
you would have a numerator with no denominator and no way to compute a rate.
deflected is the verdict, outcome is one of resolved, handed_off,
ungrounded or came_back. grounded, handedOff and cameBack restate
outcome as booleans: a conversation that failed more than one clause is
reported under the most serious — a handoff, then ungrounded, then came back —
so the one looser definition you can build is ours without the recontact
clause (deflected, or outcome of came_back).
Sending it straight into your analytics
A webhook can point at a product instead of an endpoint of your own. Pick a destination when you add one and we translate each event into that product's own format before sending:
| Destination | URL to give us | Also needs |
|---|---|---|
| Your own endpoint | Your handler | — |
| PostHog | Your instance, e.g. https://eu.i.posthog.com |
Project API key |
| Amplitude | https://api2.amplitude.com/2/httpapi |
API key |
| Segment | https://api.segment.io/v1/track |
Write key |
| ClickHouse | Your cluster, e.g. https://…:8443 |
Table, and a user/password if it needs one |
Credentials are encrypted at rest and never shown again once saved.
ClickHouse writes go over the HTTP interface as JSONEachRow into a table you
create and own — we issue no DDL against your cluster. Unknown columns are
skipped, so adding a property to an event will never start failing your
inserts. A table to start from:
create table jalon_events ( event LowCardinality(String), occurredAt DateTime64(3), appId LowCardinality(String), distinctId String, sessionId String, path String, grounded Nullable(Bool), outcome LowCardinality(Nullable(String)), deflected Nullable(Bool) ) engine = MergeTree order by (appId, event, occurredAt);
Deliveries to a destination are retried, logged and paused on repeated failure exactly like any other webhook — see Integrations → Deliveries. They are signed too, even though the vendor will not check it, so you can put a proxy of your own in front and still verify us.
Typed destinations are a Scale feature. On any plan with webhooks you can subscribe to all five events on your own endpoint and forward them yourself.
Audit
Everything done to your organisation — by your team, by the API, or by our support — is listed under Security → Activity in your workspace settings, newest first, with support actions marked distinctly. Support impersonation in particular is recorded against your organisation precisely so you can see it.