# LiveChat API Documentation

This is the complete API documentation for connecting to the LiveChat API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **LiveChat connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/liveChat/actions/{actionSlug}/run
```

## LiveChat actions

- PUT `add-user-to-chat` Add User To Chat
- PUT `deactivate-chat` Deactivate Chat
- PUT `follow-chat` Follow Chat
- GET `get-chat` Get Chat
- GET `get-customer` Get Customer
- GET `list-agents-for-transfer` List Agents For Transfer
- GET `list-archives` List Archives
- GET `list-chats` List Chats
- GET `list-routing-statuses` List Routing Statuses
- GET `list-threads` List Threads
- PUT `mark-events-as-seen` Mark Events As Seen
- PUT `remove-user-from-chat` Remove User From Chat
- POST `resume-chat` Resume Chat
- POST `send-event` Send Event
- POST `send-rich-message-postback` Send Rich Message Postback
- PUT `set-routing-status` Set Routing Status
- POST `start-chat` Start Chat
- PUT `tag-thread` Tag Thread
- PUT `transfer-chat` Transfer Chat
- PUT `unfollow-chat` Unfollow Chat
- PUT `untag-thread` Untag Thread
- PUT `update-chat-properties` Update Chat Properties
- PUT `update-customer` Update Customer
- POST `upload-file` Upload File
