Create a new text chat session. Returns session token, conversation ID, and greeting message.
X-API-Key or X-Studio-Token header required
Time: ~300-500ms (agent initialization + memory loading)
| Field | Type | Required | Description |
|---|---|---|---|
agent_id | string | ✅ | Agent ID (UUID format) |
metadata | object | ❌ | Optional metadata for tracking |
user_identifier | string | ❌ | End-user email for memory linking |
user_identifier should be the end-user’s email address. This enables:
200 OK
| Field | Type | Description |
|---|---|---|
conversation_id | string | Unique session ID (use in all subsequent requests) |
session_token | string | JWT token for authentication (24h expiry) |
agent_name | string | Display name of the agent |
greeting | string | Agent’s opening message (null if user speaks first) |
agent_model | string | LLM model used (e.g., gpt-4o-mini) |
/v1/chat/sessions with your API keysession_tokensession_token to frontendsession_token for all chat requestsX-Studio-Token headeruser_identifier provided: resolve Graphiti memory_idchatgreetingTypesession_tokenuser_identifier for returning user memory:
Your TalkifAI API key. Generate from Studio → Settings → API Keys. Format: tk_live_...
ID of a Text architecture agent
"5b710eca-ee67-4c3a-aeb6-8b541f451b40"