2Chat
2Chat puts a programmable API in front of WhatsApp numbers you already own — you link a phone by scanning a QR code, and from then on 2Chat can send and read its messages — plus SMS numbers you rent from 2Chat itself.
Authentication
- API key
Actions
Generic API request. Call any 2Chat API endpoint on this connection, for the case where no shipped action covers it yet. The connection supplies the base URL, the authentication and the egress route, so only the path, query and body are yours to fill.
- Check number on WhatsAppCheck whether a phone number is a valid, WhatsApp-reachable number before you try to message it, and read back its country, region and — optionally — its WhatsApp business profile.
- Create contactAdd a contact to the 2Chat address book with one or more typed detail rows — a WhatsApp number, a plain phone number, an email address or a postal address.
- Delete webhookDestructiveRemove one 2Chat webhook subscription so the account stops posting that event to its callback URL.
- Get contactRead one 2Chat contact by its CON uuid, returning its name, the connected number it is attached to and when it was last updated.
- Get WhatsApp messagesRead the message history of a connected WhatsApp number — everything it has exchanged, or just the thread with one counterpart when you name a remote number.
- List contactsList the 2Chat address book, each contact with its uuid, name and the typed detail rows that hold its phone numbers and email addresses.
- List SMS channelsList the SMS-capable numbers on the 2Chat account, with each one's inbound and outbound capability flags.
- List webhooksList every enabled webhook subscription on the 2Chat account, each with the event it listens for, the connected number it is bound to and the URL it posts to.
- List WhatsApp conversationsList the chat sessions on one connected WhatsApp number, newest activity first, with each counterpart's name, phone number and last-activity timestamps.
- List WhatsApp groupsList the WhatsApp groups a connected number takes part in, with each group's name, subject, size and owner.
- List WhatsApp numbersList the WhatsApp numbers connected to this 2Chat account, with each number's connection status, friendly name and channel uuid.
- Search contactsFind contacts in the 2Chat address book by name or by phone number, returning the same rows as the full listing.
- Send SMSSend a text message over SMS from one of the account's SMS-capable numbers.
- Send WhatsApp media messageSend an image, video, audio clip or document over WhatsApp by pointing 2Chat at a publicly reachable URL, with optional caption text.
- Send WhatsApp messageSend a WhatsApp text message from one of your connected numbers to a person or to a group.
- Subscribe webhookDestructiveSubscribe a callback URL to one 2Chat event on one connected WhatsApp number, so 2Chat posts to you when a message arrives, is read, or a group changes.
- Update contactDestructiveChange the profile fields of an existing 2Chat contact — its name, its picture, or the connected number it is attached to.
Triggers
- Message receivedStarts when a connected WhatsApp number receives a one-to-one message — text, media, an order or a reply quoting an earlier message.
- Messages to the numberAnswers as an agent on WhatsApp through 2Chat: when someone messages the connected number one-to-one, the agent replies in that chat.
Product names, logos and brands are the property of their respective owners and are used here for identification only. Their use does not imply endorsement by, or affiliation with, those owners.