---
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`

## Request

- Base URL: `https://api.app.subskribe.com`
- URL: `https://api.app.subskribe.com/ai/agents/session/{sessionId}/chatAsync`
- Auth: API key in header `X-API-Key`

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.dev/dealhub/apis/subskribe-api.md) - [All operations](https://skmtc.dev/dealhub/apis/subskribe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dealhub/apis/subskribe-api/revisions/c1ee531b82ce?raw)
