Import Claude Session
Import messages from a Claude CLI session into a new Omnara session.
This creates:
- A new user_session linked to the workspace's main worktree
- A new agent_session for the imported messages
- All messages from the Claude CLI session
The agent_session_id can then be used as the resume_session_id when starting the SDK to resume from the imported session.
Request
- Base URLhttps://docs.omnara.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Request body
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
Optional worktree name (null for main workspace)
Original Claude CLI session ID (used as SDK resume ID)
Messages to import from the Claude CLI session
Optional name for the imported session
Response
Successful Response
Response from importing a Claude CLI session.
Whether the import was successful
ID of the created user session
ID of the created agent session
Number of messages successfully imported
Error message if the import failed
Changes
No recorded changes to this operation across all 1 revision of this API.