Skip to main content
Registers a conversation (session) in Hone. Send this once when a conversation begins, then reference the same session_id on every event you capture for it.

Headers

HeaderValueRequired
x-api-keyYour API key, sk_...Yes
Content-Typeapplication/jsonYes

Body

FieldTypeRequiredDescription
session_idUUIDYesIdentifier for this conversation. Reuse it on every event in the conversation.
user_dataobjectYesDetails about the end user. Must contain user_id. Additional traits are allowed (keep them pseudonymous).
metadataobjectNoFree-form session-level metadata. Allowlist the keys you send.
timestampinteger (ms)NoEpoch milliseconds for when the session started. Defaults to server time.
client_configstringNoA label for the client or SDK that produced the session.

user_data

user_data must include a user_id. Any further keys are stored as traits on the user profile and become filterable dimensions in the dashboard.
FieldTypeRequiredDescription
user_idstringYesPseudonymous end-user identifier.
…traitsanyNoExtra attributes such as plan or region.

Request

Response

Generate session_id on your side as a UUID so you can attach it to the events you send next. See POST /capture-event.