Import messages from a Claude CLI session into a new Omnara session.
This creates:
The agent_session_id can then be used as the resume_session_id when starting the SDK to resume from the imported session.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request to import messages from a Claude CLI session.
This creates a new user_session and agent_session, then imports all the provided messages into the database. The agent_session_id can then be used as the resume_session_id when starting the SDK.
Workspace ID to import the session into
Original Claude CLI session ID (used as SDK resume ID)
Messages to import from the Claude CLI session
Optional worktree name (null for main workspace)
Optional name for the imported session
Successful Response
Response from importing a Claude CLI session.