Ask Chat

Get chat session state

get/api/v1/ask-chat/{askWidgetId}/chat

Request

  • Base URL: https://brew.marketbrew.ai/api/v1
  • URL: https://brew.marketbrew.ai/api/v1/api/v1/ask-chat/{askWidgetId}/chat
  • Auth: API key in header API-Key

Path parameters

askWidgetIdinteger required

Query parameters

conversationIdinteger

Existing conversation id (optional) to resume.

websiteHoststring

Headers

X-Ask-Session-Tokenstring

Server-issued browser-session credential that owns public widget conversations.

Response

Current session state including the active conversation.

Example response

{
  "currentConversation": {
    "createdAt": "2022-03-10T12:15:50"
  },
  "chatHistory": [
    {
      "createdAt": "2022-03-10T12:15:50"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.