GET
/
api
/
external
/
chatbot
/
{chatbotId}
/
conversations
/
{sessionId}
/
messages
curl --request GET \
  --url https://v2.okchat.ai/api/external/chatbot/{chatbotId}/conversations/{sessionId}/messages \
  --header 'Content-Type: application/json' \
  --data '""'
{
  "data": [
    {
      "attachments": [
        {
          "name": "0.806494468977148.png",
          "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.806494468977148.png"
        },
        {
          "name": "0.47461492756254064.png",
          "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.47461492756254064.png"
        },
        {
          "name": "0.34089790317279434.png",
          "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.34089790317279434.png"
        }
      ],
      "content": "Describe this image",
      "created_at": "2025-03-05T04:25:58.059835+00:00",
      "id": "b10506a1-1ca7-4336-a72b-f37782c6a054",
      "metadata": {},
      "migrated_data": false,
      "model": null,
      "provider": null,
      "sender_type": "user",
      "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
      "session_token": null,
      "tokens_used": 0,
      "tool_calls": null,
      "tool_results": null
    },
    {
      "attachments": null,
      "content": "The images depict a serene camping scene set in a mountainous landscape. \n\n1. **First Image**: A tent is pitched on a grassy area surrounded by tall trees and boulders, with majestic snow-capped mountains in the background. A campfire is burning nearby, creating a cozy atmosphere.\n\n2. **Second Image**: A robot stands in the same picturesque setting, next to the tent. The robot has a vintage design, featuring metallic elements and a friendly appearance, suggesting it might be a companion for outdoor adventures.\n\n3. **Third Image**: Another robot, similar in style to the second, is present in a slightly different area of the campsite. This robot also has a vintage look, wearing a cap and equipped with various tools, indicating it might assist with camping tasks.\n\nOverall, the images blend elements of nature with whimsical robotic characters, creating a unique and imaginative camping scenario.",
      "created_at": "2025-03-05T04:26:10.241508+00:00",
      "id": "85706af7-c3f1-413a-b4fb-43eda8d258d7",
      "metadata": {},
      "migrated_data": false,
      "model": "gpt-4o-mini",
      "provider": "openai",
      "sender_type": "bot",
      "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
      "session_token": null,
      "tokens_used": 0,
      "tool_calls": [],
      "tool_results": []
    },
    {
      "attachments": [
        {
          "name": "0.031071150695289873.png",
          "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.031071150695289873.png"
        },
        {
          "name": "0.5423937996768102.png",
          "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.5423937996768102.png"
        },
        {
          "name": "0.7798706640238224.png",
          "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.7798706640238224.png"
        }
      ],
      "content": "Describe these images",
      "created_at": "2025-03-05T07:08:50.863723+00:00",
      "id": "e69359c7-caf7-419b-906e-0f478a94ccde",
      "metadata": {},
      "migrated_data": false,
      "model": null,
      "provider": null,
      "sender_type": "user",
      "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
      "session_token": null,
      "tokens_used": 0,
      "tool_calls": null,
      "tool_results": null
    },
    {
      "attachments": null,
      "content": "Here are descriptions of the images:\n\n1. **First Image**: A serene camping scene featuring a large tent set in a lush green meadow. The background showcases majestic mountains with snow-capped peaks under a clear blue sky. A small campfire is burning nearby, surrounded by rocks, adding to the tranquil outdoor atmosphere.\n\n2. **Second Image**: A whimsical robot stands in the same picturesque camping setting. The robot has a vintage design with metallic features and large, expressive eyes. It appears to be exploring the area, with the tent and mountains in the background, creating a blend of nature and technology.\n\n3. **Third Image**: Another robot, similar in style to the second, is depicted in the same outdoor environment. This robot has a different design, featuring a cap and a utility belt, suggesting it might be equipped for camping or exploration. The background includes a cabin and additional tents, enhancing the camping theme.",
      "created_at": "2025-03-05T07:09:05.423355+00:00",
      "id": "9a0e408d-1588-4d64-9e33-814a56b0543b",
      "metadata": {},
      "migrated_data": false,
      "model": "gpt-4o-mini",
      "provider": "openai",
      "sender_type": "bot",
      "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
      "session_token": null,
      "tokens_used": 0,
      "tool_calls": [],
      "tool_results": []
    },
    {
      "attachments": [
        {
          "name": "0.3554636060885503.png",
          "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.3554636060885503.png"
        }
      ],
      "content": "describe this image",
      "created_at": "2025-03-06T06:54:57.123427+00:00",
      "id": "5a5e3b4d-9894-4e78-be11-fbd637034c27",
      "metadata": {},
      "migrated_data": false,
      "model": null,
      "provider": null,
      "sender_type": "user",
      "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
      "session_token": null,
      "tokens_used": 0,
      "tool_calls": null,
      "tool_results": null
    },
    {
      "attachments": null,
      "content": "The image depicts a serene camping scene. In the foreground, there is a pitched tent on a grassy area surrounded by rocks. Next to the tent, a campfire is burning, adding warmth and ambiance to the setting. In the background, a range of majestic, snow-capped mountains rises beneath a clear blue sky with a bright sun. Tall evergreen trees frame the scene, contributing to the tranquil and natural atmosphere.",
      "created_at": "2025-03-06T06:55:07.999262+00:00",
      "id": "4492f637-8a3a-4bfa-abc6-8dd1a561926b",
      "metadata": {
        "mid": "msg-Mzs8wSy4weVyiALOzzZRDles"
      },
      "migrated_data": false,
      "model": "gpt-4o",
      "provider": "openai",
      "sender_type": "bot",
      "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
      "session_token": null,
      "tokens_used": 0,
      "tool_calls": [],
      "tool_results": []
    },
    {
      "attachments": [
        {
          "name": "0.4848606669311497.png",
          "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.4848606669311497.png"
        }
      ],
      "content": "describe this image pls",
      "created_at": "2025-03-06T07:11:47.402167+00:00",
      "id": "1d96c472-172e-4dee-bbe5-fbe7ce56b4e5",
      "metadata": {},
      "migrated_data": false,
      "model": null,
      "provider": null,
      "sender_type": "user",
      "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
      "session_token": null,
      "tokens_used": 0,
      "tool_calls": null,
      "tool_results": null
    },
    {
      "attachments": null,
      "content": "The image shows an error message indicating \"Server selection timed out after 30000 ms.\" It mentions a problem connecting to a specific server, with an option to \"REVIEW\" the issue. There's a warning icon next to the message.",
      "created_at": "2025-03-06T07:11:54.899588+00:00",
      "id": "90459d74-ffdd-4088-a75f-a9002d5eeb09",
      "metadata": {
        "mid": "msg-ZhahmWh01hRFKAqqQ2BzkCBP"
      },
      "migrated_data": false,
      "model": "gpt-4o",
      "provider": "openai",
      "sender_type": "bot",
      "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
      "session_token": null,
      "tokens_used": 0,
      "tool_calls": [],
      "tool_results": []
    },
    {
      "attachments": [
        {
          "name": "0.8697358026985564.jpeg",
          "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.8697358026985564.jpeg"
        }
      ],
      "content": "Describe this image",
      "created_at": "2025-03-08T07:59:25.422254+00:00",
      "id": "10ddabba-c38a-418b-88ea-5a7df7eaa95f",
      "metadata": {},
      "migrated_data": false,
      "model": null,
      "provider": null,
      "sender_type": "user",
      "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
      "session_token": null,
      "tokens_used": 0,
      "tool_calls": null,
      "tool_results": null
    },
    {
      "attachments": null,
      "content": "The image captures a city skyline at sunrise or sunset. The sun is positioned low on the horizon, casting a warm glow over the skyscrapers. Tall buildings, including one with a prominent spire, are silhouetted against the vibrant sky. The street below is lined with more buildings, and the overall scene conveys a serene urban atmosphere.",
      "created_at": "2025-03-08T07:59:34.45648+00:00",
      "id": "bdd8e93c-9d80-4fa6-bf8d-f230cfadcaeb",
      "metadata": {
        "mid": "msg-Fs9PbjHF38Tg8OOvvyP2ZYBh"
      },
      "migrated_data": false,
      "model": "gpt-4o",
      "provider": "openai",
      "sender_type": "bot",
      "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
      "session_token": null,
      "tokens_used": 0,
      "tool_calls": [],
      "tool_results": []
    }
  ],
  "metadata": {
    "currentPage": 1,
    "pageSize": 10,
    "totalCount": 10,
    "totalPages": 1
  }
}

Headers

x-api-key
string
Example:

"15a23c21867f4f38b0b46f5e4adb1caf87a040b34eb58f68"

Path Parameters

chatbotId
string
required
Example:

"5afe16ed-5fd2-4552-a993-903bc9c32bb6"

sessionId
string
required
Example:

"f081d259-6c72-4eca-8687-1b6ed716257e"

Query Parameters

page
string
Example:

"1"

limit
string
Example:

"10"

Body

application/json · any

The body is of type any.

Response

200 - application/json
Example
data
object[]
Example:
[
  {
    "attachments": [
      {
        "name": "0.806494468977148.png",
        "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.806494468977148.png"
      },
      {
        "name": "0.47461492756254064.png",
        "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.47461492756254064.png"
      },
      {
        "name": "0.34089790317279434.png",
        "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.34089790317279434.png"
      }
    ],
    "content": "Describe this image",
    "created_at": "2025-03-05T04:25:58.059835+00:00",
    "id": "b10506a1-1ca7-4336-a72b-f37782c6a054",
    "metadata": {},
    "migrated_data": false,
    "model": null,
    "provider": null,
    "sender_type": "user",
    "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
    "session_token": null,
    "tokens_used": 0,
    "tool_calls": null,
    "tool_results": null
  },
  {
    "attachments": null,
    "content": "The images depict a serene camping scene set in a mountainous landscape. \n\n1. **First Image**: A tent is pitched on a grassy area surrounded by tall trees and boulders, with majestic snow-capped mountains in the background. A campfire is burning nearby, creating a cozy atmosphere.\n\n2. **Second Image**: A robot stands in the same picturesque setting, next to the tent. The robot has a vintage design, featuring metallic elements and a friendly appearance, suggesting it might be a companion for outdoor adventures.\n\n3. **Third Image**: Another robot, similar in style to the second, is present in a slightly different area of the campsite. This robot also has a vintage look, wearing a cap and equipped with various tools, indicating it might assist with camping tasks.\n\nOverall, the images blend elements of nature with whimsical robotic characters, creating a unique and imaginative camping scenario.",
    "created_at": "2025-03-05T04:26:10.241508+00:00",
    "id": "85706af7-c3f1-413a-b4fb-43eda8d258d7",
    "metadata": {},
    "migrated_data": false,
    "model": "gpt-4o-mini",
    "provider": "openai",
    "sender_type": "bot",
    "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
    "session_token": null,
    "tokens_used": 0,
    "tool_calls": [],
    "tool_results": []
  },
  {
    "attachments": [
      {
        "name": "0.031071150695289873.png",
        "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.031071150695289873.png"
      },
      {
        "name": "0.5423937996768102.png",
        "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.5423937996768102.png"
      },
      {
        "name": "0.7798706640238224.png",
        "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.7798706640238224.png"
      }
    ],
    "content": "Describe these images",
    "created_at": "2025-03-05T07:08:50.863723+00:00",
    "id": "e69359c7-caf7-419b-906e-0f478a94ccde",
    "metadata": {},
    "migrated_data": false,
    "model": null,
    "provider": null,
    "sender_type": "user",
    "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
    "session_token": null,
    "tokens_used": 0,
    "tool_calls": null,
    "tool_results": null
  },
  {
    "attachments": null,
    "content": "Here are descriptions of the images:\n\n1. **First Image**: A serene camping scene featuring a large tent set in a lush green meadow. The background showcases majestic mountains with snow-capped peaks under a clear blue sky. A small campfire is burning nearby, surrounded by rocks, adding to the tranquil outdoor atmosphere.\n\n2. **Second Image**: A whimsical robot stands in the same picturesque camping setting. The robot has a vintage design with metallic features and large, expressive eyes. It appears to be exploring the area, with the tent and mountains in the background, creating a blend of nature and technology.\n\n3. **Third Image**: Another robot, similar in style to the second, is depicted in the same outdoor environment. This robot has a different design, featuring a cap and a utility belt, suggesting it might be equipped for camping or exploration. The background includes a cabin and additional tents, enhancing the camping theme.",
    "created_at": "2025-03-05T07:09:05.423355+00:00",
    "id": "9a0e408d-1588-4d64-9e33-814a56b0543b",
    "metadata": {},
    "migrated_data": false,
    "model": "gpt-4o-mini",
    "provider": "openai",
    "sender_type": "bot",
    "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
    "session_token": null,
    "tokens_used": 0,
    "tool_calls": [],
    "tool_results": []
  },
  {
    "attachments": [
      {
        "name": "0.3554636060885503.png",
        "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.3554636060885503.png"
      }
    ],
    "content": "describe this image",
    "created_at": "2025-03-06T06:54:57.123427+00:00",
    "id": "5a5e3b4d-9894-4e78-be11-fbd637034c27",
    "metadata": {},
    "migrated_data": false,
    "model": null,
    "provider": null,
    "sender_type": "user",
    "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
    "session_token": null,
    "tokens_used": 0,
    "tool_calls": null,
    "tool_results": null
  },
  {
    "attachments": null,
    "content": "The image depicts a serene camping scene. In the foreground, there is a pitched tent on a grassy area surrounded by rocks. Next to the tent, a campfire is burning, adding warmth and ambiance to the setting. In the background, a range of majestic, snow-capped mountains rises beneath a clear blue sky with a bright sun. Tall evergreen trees frame the scene, contributing to the tranquil and natural atmosphere.",
    "created_at": "2025-03-06T06:55:07.999262+00:00",
    "id": "4492f637-8a3a-4bfa-abc6-8dd1a561926b",
    "metadata": { "mid": "msg-Mzs8wSy4weVyiALOzzZRDles" },
    "migrated_data": false,
    "model": "gpt-4o",
    "provider": "openai",
    "sender_type": "bot",
    "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
    "session_token": null,
    "tokens_used": 0,
    "tool_calls": [],
    "tool_results": []
  },
  {
    "attachments": [
      {
        "name": "0.4848606669311497.png",
        "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.4848606669311497.png"
      }
    ],
    "content": "describe this image pls",
    "created_at": "2025-03-06T07:11:47.402167+00:00",
    "id": "1d96c472-172e-4dee-bbe5-fbe7ce56b4e5",
    "metadata": {},
    "migrated_data": false,
    "model": null,
    "provider": null,
    "sender_type": "user",
    "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
    "session_token": null,
    "tokens_used": 0,
    "tool_calls": null,
    "tool_results": null
  },
  {
    "attachments": null,
    "content": "The image shows an error message indicating \"Server selection timed out after 30000 ms.\" It mentions a problem connecting to a specific server, with an option to \"REVIEW\" the issue. There's a warning icon next to the message.",
    "created_at": "2025-03-06T07:11:54.899588+00:00",
    "id": "90459d74-ffdd-4088-a75f-a9002d5eeb09",
    "metadata": { "mid": "msg-ZhahmWh01hRFKAqqQ2BzkCBP" },
    "migrated_data": false,
    "model": "gpt-4o",
    "provider": "openai",
    "sender_type": "bot",
    "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
    "session_token": null,
    "tokens_used": 0,
    "tool_calls": [],
    "tool_results": []
  },
  {
    "attachments": [
      {
        "name": "0.8697358026985564.jpeg",
        "url": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/user_images/internal/0.8697358026985564.jpeg"
      }
    ],
    "content": "Describe this image",
    "created_at": "2025-03-08T07:59:25.422254+00:00",
    "id": "10ddabba-c38a-418b-88ea-5a7df7eaa95f",
    "metadata": {},
    "migrated_data": false,
    "model": null,
    "provider": null,
    "sender_type": "user",
    "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
    "session_token": null,
    "tokens_used": 0,
    "tool_calls": null,
    "tool_results": null
  },
  {
    "attachments": null,
    "content": "The image captures a city skyline at sunrise or sunset. The sun is positioned low on the horizon, casting a warm glow over the skyscrapers. Tall buildings, including one with a prominent spire, are silhouetted against the vibrant sky. The street below is lined with more buildings, and the overall scene conveys a serene urban atmosphere.",
    "created_at": "2025-03-08T07:59:34.45648+00:00",
    "id": "bdd8e93c-9d80-4fa6-bf8d-f230cfadcaeb",
    "metadata": { "mid": "msg-Fs9PbjHF38Tg8OOvvyP2ZYBh" },
    "migrated_data": false,
    "model": "gpt-4o",
    "provider": "openai",
    "sender_type": "bot",
    "session_id": "f081d259-6c72-4eca-8687-1b6ed716257e",
    "session_token": null,
    "tokens_used": 0,
    "tool_calls": [],
    "tool_results": []
  }
]
metadata
object