---
title: "Chat with a given session id and get back a response for a given message in a async manner in the form of server side events"
method: GET
path: "/ai/agents/session/{sessionId}/chatAsync"
tags: ["AI Agent", "Experimental"]
---

# Chat with a given session id and get back a response for a given message in a async manner in the form of server side events

`GET /ai/agents/session/{sessionId}/chatAsync`

The API responds to user message, a session id is required to identify the session this message needs to be posted

## Path parameters

- `sessionId` string, required

## Query parameters

- `userMessage` string

## Response `200`

successful operation

- OutboundEvent
  - `name` string
  - `comment` string
  - `id` string
  - `mediaType` MediaType
    - `type` string
    - `subtype` string
    - `parameters` object
    - `wildcardType` boolean
    - `wildcardSubtype` boolean
  - `data` object
  - `reconnectDelay` integer
  - `genericType` Type
    - `typeName` string
  - `reconnectDelaySet` boolean

---

[API](https://skmtc.net/dealhub/apis/quote-api.md) · [All operations](https://skmtc.net/dealhub/apis/quote-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dealhub/quote-api/versions/c30f5b9fbfab/schema)
