Skip to main content
POST
/
chat
/
getConversationItems
Get conversation items
curl --request POST \
  --url http://api.superwize.ai/api/chat/getConversationItems \
  --header 'Content-Type: application/json' \
  --data '
{
  "conversationId": "conv_01JHKYW2V8XQ123456789",
  "limit": 20,
  "order": "desc",
  "after": "obj_01JHKZ0PV2WX123456788"
}
'
{
  "data": [
    {
      "id": "obj_01JHKZ0PV2WX123456789",
      "type": "message",
      "role": "user",
      "content": [
        {
          "type": "input_text",
          "text": "What are the main causes of climate change?"
        }
      ],
      "createdAt": 1767225600000
    }
  ],
  "hasMore": false,
  "lastId": "obj_01JHKZ0PV2WX123456789"
}

Body

application/json
conversationId
string
required
limit
number
default:20
order
enum<string>
default:desc
Available options:
asc,
desc
after
string

Response

Conversation items returned.

data
null[]
required
hasMore
boolean
required
lastId
string