curl --request POST \
--url http://api.superwize.ai/api/widget/getWidgetByResponseIds \
--header 'Content-Type: application/json' \
--data '
{
"responseIds": [
"resp_01JHKYW6J6AB123456789"
]
}
'{
"widget": {
"id": "obj_01JHKZ0PV2WX123456789",
"type": "message",
"conversationId": "conv_01JHKYW2V8XQ123456789",
"responseId": "resp_01JHKYW6J6AB123456789",
"config": {},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"thread": {
"id": "obj_01JHKZ0PV2WX123456789",
"widgetId": "wid_01JHKYX9T3EF123456789",
"userId": "user_01JHKYV8FMS234567890",
"status": "active",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"messages": [
{
"id": "obj_01JHKZ0PV2WX123456789",
"threadId": "thr_01JHKYY5K4GH123456789",
"data": {},
"createdAt": "2026-01-01T00:00:00.000Z"
}
]
}
}
}Returns widget details for the first matching response id in a set. Supports merged assistant-message lookups.
curl --request POST \
--url http://api.superwize.ai/api/widget/getWidgetByResponseIds \
--header 'Content-Type: application/json' \
--data '
{
"responseIds": [
"resp_01JHKYW6J6AB123456789"
]
}
'{
"widget": {
"id": "obj_01JHKZ0PV2WX123456789",
"type": "message",
"conversationId": "conv_01JHKYW2V8XQ123456789",
"responseId": "resp_01JHKYW6J6AB123456789",
"config": {},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"thread": {
"id": "obj_01JHKZ0PV2WX123456789",
"widgetId": "wid_01JHKYX9T3EF123456789",
"userId": "user_01JHKYV8FMS234567890",
"status": "active",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"messages": [
{
"id": "obj_01JHKZ0PV2WX123456789",
"threadId": "thr_01JHKYY5K4GH123456789",
"data": {},
"createdAt": "2026-01-01T00:00:00.000Z"
}
]
}
}
}