org_id, user_id, and session_id.
Your API key decides org_id. The SDK usually gets user_id from the token. Your app chooses session_id. That is the field you use for a chat thread, Slack channel, agent run, or tenant-specific memory.
| Field | Source | You set it? |
|---|---|---|
org_id | JWT minted from your API key | Almost never |
user_id | JWT (or per-call override when supported) | Sometimes |
session_id | Your application | Always |
session_id is the field you set on every call.
session_id
Pick a stable pattern:
Single chat thread
chat-{conversation_uuid}Slack channel
slack-{channel_id}Agent run
agent-{task_id}Long-lived user profile
bio-{user_id}recall searches the same memory each time.
SaaS (one key)
For a SaaS app, map each customer or user conversation to a distinctsession_id. One shared Tex client is enough:
session_id for another customer.
Per-call
user_id overrides are planned for SDK 1.2. Until then, include the end user in session_id. The multi-tenant SaaS recipe shows the full pattern.Recall and ranking
top_k, modes, confidence.
