Logo

Show a conversation with messages

GET
/conversations/{conversationId}
/conversations/{conversationId}

Path Parameters

conversationId
Required
integer

The conversation's unique identifier.

Header Parameters

x-llm-key
Required
string

The API key for the LLM provider (e.g., OpenAI).

curl -X GET "https://example.com/conversations/0" \
  -H "x-llm-key: {{your_llm_provider_key}}"

Success

{
  "id": 0,
  "is_active": true,
  "user_id": "string",
  "subject_id": "string",
  "assistant_key": "string",
  "title": "string",
  "last_run": {
    "status": "initializing",
    "in_finite_state": true
  },
  "context": [
    {}
  ],
  "additional_data": [
    {}
  ],
  "error": {
    "message": "string"
  },
  "history": [
    {
      "role": "user",
      "run_status": "initializing",
      "messages": [
        {
          "id": "string",
          "content": "string"
        }
      ],
      "actions": [
        {
          "id": "string",
          "role": "tool",
          "content": "string",
          "status": "pending"
        }
      ]
    }
  ],
  "pendingItems": [
    {
      "role": "user",
      "run_status": "initializing",
      "messages": [
        {
          "id": "string",
          "content": "string"
        }
      ],
      "actions": [
        {
          "id": "string",
          "role": "tool",
          "content": "string",
          "status": "pending"
        }
      ]
    }
  ]
}