Skip to main content

Get conversation

GET /api/conversations/{conversation_id}

Given an id, get a conversation

Parameters

NameInTypeRequiredDescription
conversation_idpathstringyes

Responses

StatusDescription
200Successful Response
404Item not found
422Validation Error

Response body

FieldTypeRequiredDescription
idstringyesUnique conversation ID
agentAgentBase-OutputyesThe agent running in the conversation. This is persisted to allow resuming conversations and check agent configuration to handle e.g., tool changes, LLM changes, etc.
workspaceBaseWorkspace-OutputyesWorkspace used by the agent to execute commands and read/write files. Not the process working directory.
persistence_dir`stringnull`no
max_iterationsintegernoMaximum number of iterations the agent can perform in a single run.
stuck_detectionbooleannoWhether to enable stuck detection for the agent.
execution_statusConversationExecutionStatusno
confirmation_policyConfirmationPolicyBase-Outputno
security_analyzer`SecurityAnalyzerBase-Outputnull`no
activated_knowledge_skillsstring[]noList of activated knowledge skills name
blocked_actionsobjectnoActions blocked by PreToolUse hooks, keyed by action ID
blocked_messagesobjectnoMessages blocked by UserPromptSubmit hooks, keyed by message ID
statsConversationStats-OutputnoConversation statistics for tracking LLM metrics
secret_registrySecretRegistry-OutputnoRegistry for handling secrets and sensitive data
agent_stateobjectnoDictionary for agent-specific runtime state that persists across iterations. Agents can store feature-specific state using string keys. To trigger autosave, always reassign: state.agent_state = {**state.agent_state, key: value}. See https://docs.faheem-code.dev/sdk/guides/convo-persistence#how-state-persistence-works
title`stringnull`no
metrics`MetricsSnapshotnull`no
created_atstringno
updated_atstringno

Operation ID: get_conversation_api_conversations__conversation_id__get