---
title: "Chat"
method: POST
path: "/keywords/sessions/{session_id}/chat"
tags: ["keywords"]
---

# Chat

`POST /keywords/sessions/{session_id}/chat`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/keywords/sessions/{session_id}/chat`
- Auth: API key in header `X-Agent-Key`

Streaming chat endpoint.

Saves the user message before streaming, saves the assistant message
after the stream completes. Returns SSE (``text/event-stream``).

Free plan: 20 messages per session.  Pro plan: unlimited.

## Path parameters

- `session_id` string, required

## Query parameters

- `email` string, nullable

## Request body

- ApiRoutersKeywordsChatRequest
  - `message` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
