Import Conversation
Import a conversation file into Nowledge Mem.
Converts external conversation formats (Claude Code, Codex, Cursor) into threads.
Request Body
application/json
path*string
Path to conversation file
source*string
Source type: claude, codex, or cursor
thread_id_override?string|null
Optional thread ID override
summary?string|null
Optional user-provided summary
auto_compact?boolean
Auto-extract memories during import
Default
falsepreserve_timestamps?boolean
Preserve original timestamps
Default
trueResponse Body
application/json
application/json
curl -X POST "http://127.0.0.1:14242/threads/conversations/import" \ -H "Content-Type: application/json" \ -d '{ "path": "string", "source": "string" }'{
"thread": {
"id": "string",
"node_type": "Thread",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"metadata": {},
"thread_id": "string",
"title": "string",
"summary": "string",
"message_count": 0,
"participants": [
"string"
],
"source": "string",
"project": "string",
"workspace": "string",
"tool_version": "string",
"import_date": "2019-08-24T14:15:22Z"
},
"messages": [
{
"id": "string",
"node_type": "Thread",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"metadata": {},
"content": "string",
"role": "string",
"order_index": 0,
"timestamp": "2019-08-24T14:15:22Z",
"token_count": 0
}
],
"import_summary": "string",
"warnings": [
"string"
],
"created_memories": [
{
"id": "string",
"node_type": "Thread",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"metadata": {},
"content": "string",
"title": "string",
"importance": 0.5,
"confidence": 0.5,
"embedding": [
0
],
"source_range": {
"property1": 0,
"property2": 0
},
"source": "string",
"semantic_field": "string",
"reindex_needed": false,
"last_reindexed_at": "2019-08-24T14:15:22Z",
"last_accessed_at": "2019-08-24T14:15:22Z",
"access_count": 0,
"appearances": 0,
"clicks": 0,
"total_dwell_time_ms": 0,
"last_clicked_at": "2019-08-24T14:15:22Z",
"decay_score_cached": 1,
"temporal_context": "timeless",
"temporal_type": "string",
"event_start": "string",
"event_end": "string",
"temporal_precision": "string",
"temporal_confidence": 1
}
],
"skipped_messages": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}