UniClientHelp Open UniClient

WhatsApp via GREEN-API: connect a number, read the status, test the connection

How to connect a WhatsApp number via GREEN-API — with a QR code or a phone code, what the connection statuses mean and how to send a test message.

Updated Roles: owner, admin

WhatsApp connects through the GREEN-API service: it keeps the link to your number, and UniClient receives client messages and sends replies and reminders through it. The owner and the admin connect and change the channel: Integrations → Channels → WhatsApp.

Where to get the ID and token

  1. Sign up in the GREEN-API console (console.green-api.com) and create an instance. GREEN-API plans are paid separately from UniClient.
  2. On the instance card, copy three values: “API URL”, “ID Instance” and API Token Instance.
  3. In the WhatsApp panel, paste them into the fields with the same names, name the connection and click Connect.

The token is stored encrypted and is not shown again. To change it, delete the connection and connect again.

After saving, a linking step with two tabs opens under the connection.

QR code — when the panel is open on a computer and the phone with WhatsApp is at hand. Open WhatsApp on the phone: Settings → Linked devices → Link a device — and point the camera at the code.

Phone code — when there is no second screen, for example the panel is open on the same phone. Enter the WhatsApp number with the country code and click Get code. An eight-character code like K7MQ-2WXR appears with a timer: the code is valid for 2.5 minutes. In WhatsApp on the phone, go to:

  1. Settings.
  2. Linked devices.
  3. Link a device.
  4. Link with phone number instead — and enter the code.

If time runs out, click Get a new code. You can change the number with Another number. With either method the panel notices on its own that the phone is linked, closes the step and shows “Working”.

You can open the linking step later from the connection menu: Show QR code.

What the statuses mean

  • Working — messages come in and go out.
  • Starting — GREEN-API is starting the instance, usually for a couple of minutes. If the start hangs for more than five minutes, UniClient restarts the instance itself; if the connection does not come back, the owner and the admin get a “Channel disconnected” notification.
  • Sign in again — the phone was unlinked from GREEN-API. Link it again with a QR code or a phone code.
  • Suspended by the provider — GREEN-API has temporarily stopped sending from the number because of spam complaints. Replies wait in the queue for up to 24 hours, then sending resumes on its own.
  • GREEN-API plan limit — the limit of your GREEN-API plan is used up (for example, the number of chats per month on the free plan). Under the connection you see GREEN-API's description and how much is used; the owner and the admin get a notification about it. Replies to chats that are already open may still go out, but new chats do not start, so the warning does not disappear on its own. Change the plan in the GREEN-API console and click “Plan changed” under the connection. If GREEN-API reports the limit again, the warning comes back. It also clears on its own when you link the number again.
  • Number blocked by WhatsApp — WhatsApp has blocked the number. Messages are neither sent from it nor received: connect another number and delete this one. A “Channel disconnected” notification comes for this too.

Test the connection with a message

In the menu of a working connection, pick Send test message. The To field already holds the connection's own number — the message arrives in your WhatsApp chat with yourself; you can enter any number with WhatsApp. Click Send test: the text “UniClient connection check: the WhatsApp channel works.” goes out, and the form shows which number it was sent to. If GREEN-API has suspended sending, the form says so — the test is not sent.

How to avoid a block

  • Write only to clients who have booked with you or written to you themselves. Campaigns to unknown numbers are the main cause of complaints and blocks.
  • UniClient "warms up" a new number: for the first 10 days, no more than 20 new recipients a day, then up to 200 clients a day. Messages over the limit wait their turn and are not lost.
  • Do not connect one number to several messaging services at the same time.

Conversations with clients from WhatsApp are in the “Inbox” section — more in Inbox: reply to a client, take a chat, close it or mark it as spam.