Communication
GREEN-API for WhatsApp
11 min
green api is an official api that enables businesses to automate communication and interact with whatsapp with the green api for whatsapp app in make, you can send messages, files, contacts, location messages, polls, and media statuses you can also forward messages, receive chat histories and contact information, create and manage groups, manage message queues, archive chats, and download files in your green api account requirements to use the green api for whatsapp app in {{product name}} , you must have a green api account connect green api for whatsapp and {{product name}} to get started, you must first create a connection between green api for whatsapp and {{product name}} , allowing the two services to communicate to create the connection, you need to green api for whatsapp /#obtain your id instance and api key instance in green api green api for whatsapp /#create the connection in obtain your id instance and api key instance in green api before you create the connection in {{product name}} , you should first obtain an id instance and api key instance in your green api account to obtain the instande id and api key instance log in to your green api account in the left sidebar, click instances click create an instance and select a tariff once your instance is created, copy the idinstance and apitokeninstance , then store them in a safe place to authenticate your instance, scroll down and click get qr scan the generated qr via whatsapp settings > linked devices > link device now your created instance is authorized y ou'll use the copied and stored values in the id instance and api token instance connection fields in {{product name}} create the connection in {{product name}} once you have your id instance and api key instance, you're ready to create the connection in {{product name}} to create the connection log in to your {{product name}} account, add a green api for whatsapp module to your {{scenario singular lowercase}} , and click create a connection optional in the connection name field, enter a name for the connection in the id instance field, enter the idinstance you copied from your green api account in the api token instance field, enter the apitokeninstance you copied from your green api account click save if prompted, authenticate your account and confirm access you've successfully created the connection and can now use the green api for whatsapp app in your {{scenario plural lowercase}} if you want to make changes to your connection in the future, follow the steps here https //help make com/connect an application#tn2pj green api for whatsapp modules after connecting to the green api for whatsapp app, you can use the following types of modules to build your {{scenario plural lowercase}} trigger watch incoming webhooks watch all messages webhooks send send a message send a file by url send a file by upload upload a file send a contact send a location message send a poll forward messages journal get chat history get a message get last outgoing messages get last incoming messages groups create a group update a group name set a group picture get a group data add a participant to a group remove a group participant leave a group set a group admin remove an admin queue show a messages queue clear a messages queue statuses send a text status send a voice status send a media status delete a status service check whatsapp get an avatar get the contacts get a contact info delete a message edit a message unarchive a chat set a dissapearing chat read a chat settings get the settings set the settings set a profile picture get wa settings receiving download a file templates you can look for green api for whatsapp templates in make's template gallery , where you'll find thousands of pre created {{scenario plural lowercase}} green api for whatsapp resources green api documentation