# Wati API Documentation

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

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

## Wati actions

- POST `add-contact` Add Contact
- PUT `assign-user` Assign User
- GET `get-media-by-file-name` Get Media by File Name
- GET `list-contacts` List Contacts
- GET `list-message-templates` List Message Templates
- GET `list-messages-by-whatsapp-number` List Messages by WhatsApp Number
- POST `send-file-to-open-session` Send File to Open Session
- POST `send-interactive-buttons-message` Send Interactive Buttons Message
- POST `send-interactive-list-message` Send Interactive List Message
- POST `send-message-to-open-session` Send Message to Open Session
- POST `send-template-message` Send Template Message
- POST `send-template-messages` Send Template Messages
- POST `send-template-messages-csv` Send Template Messages CSV
- PUT `update-contact-attributes` Update Contact Attributes
