# Chat conversations API

> Server-side chat sessions, messages and handoff with an API token (v2.1).

Source: https://developer.kustomer.com/api/chat

Server: `https://api.kustomerapp.com/v2.1` · 10 operations

API-token chat endpoints (`/v2.1/chat/…`) for server-side integrations.

These routes use a Bearer API token and supply customer identity in the JSON body
(`customerId`, optional `trackingId`). They are distinct from customer SDK routes
under `/c/…`, which use a tracking JWT.

For CRM conversation and message objects unrelated to chat sessions, see
[Core Resources](https://developer.kustomer.com/api).

## Chat Conversations

The server-side chat API lets your backend take part in Kustomer chat with a regular API key. It can open chat sessions for a customer, post messages as the customer, an agent or an assistant, show typing, import bot conversations and record satisfaction ratings.

- [List chat sessions](https://developer.kustomer.com/api/chat/list-chat-sessions.md): `GET /v2.1/chat/sessions`
- [Create a chat session](https://developer.kustomer.com/api/chat/create-a-chat-session.md): `POST /v2.1/chat/sessions`
- [Create a chat session via handoff](https://developer.kustomer.com/api/chat/create-a-chat-session-via-handoff.md): `POST /v2.1/chat/handoff`
- [List messages for a chat session](https://developer.kustomer.com/api/chat/list-messages-for-a-chat-session.md): `GET /v2.1/chat/sessions/{id}/messages`
- [Create an inbound chat message](https://developer.kustomer.com/api/chat/create-an-inbound-chat-message.md): `POST /v2.1/chat/messages`
- [Create an inbound assistant chat message](https://developer.kustomer.com/api/chat/create-an-inbound-assistant-chat-message.md): `POST /v2.1/chat/assistant/messages`
- [Create an outbound agent chat message](https://developer.kustomer.com/api/chat/create-an-outbound-agent-chat-message.md): `POST /v2.1/chat/outbound/messages`
- [Create an outbound assistant chat message](https://developer.kustomer.com/api/chat/create-an-outbound-assistant-chat-message.md): `POST /v2.1/chat/outbound/assistant/messages`
- [Show or hide agent/AI typing indicator](https://developer.kustomer.com/api/chat/show-or-hide-agent-ai-typing-indicator.md): `POST /v2.1/chat/outbound/typing`
- [Update a chat satisfaction response](https://developer.kustomer.com/api/chat/update-a-chat-satisfaction-response.md): `PUT /v2.1/chat/satisfaction-responses/{id}`
