# 2Chat API Documentation

This is the complete API documentation for connecting to the 2Chat 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 **2Chat connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

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

## 2Chat actions

- PUT `add-participant` Add Participant
- GET `check-if-number-is-on-whats-app` Check If Number Is On WhatsApp
- POST `create-contact` Create Contact
- POST `create-group` Create Group
- POST `create-whats-app-qr-connection` Create WhatsApp QR Connection
- DELETE `delete-contact` Delete Contact
- DELETE `delete-message` Delete Message
- PUT `execute-channel-command` Execute Channel Command
- GET `get-a-message` Get a Message
- GET `get-account-info` Get Account Info
- GET `get-channel-status` Get Channel Status
- GET `get-contact` Get Contact
- GET `get-messages-by-phone-number` Get Messages by Phone Number
- GET `get-whats-app-number` Get WhatsApp Number
- GET `list-all-webhooks` List All Webhooks
- GET `list-contacts` List Contacts
- GET `list-conversations` List Conversations
- GET `list-group-participants` List Group Participants
- GET `list-webhooks-by-channel` List Webhooks By Channel
- GET `list-whats-app-groups` List WhatsApp Groups
- GET `list-whats-app-numbers` List WhatsApp Numbers
- PUT `remove-participant` Remove Participant
- GET `search-contacts` Search Contacts
- POST `send-whats-app-message` Send WhatsApp Message
- PUT `update-contact` Update Contact
