API documents#
Green API presents HTTP API WhatsApp for sending and receiving messages, files, working with group chats, getting contacts and other methods.
Make sure you have completed all the steps in Before you start section before executing requests. Check out Requests execution section. Use Postman collection to debug requests to Green API.
Account#
- Get instance settings
- Set instance settings
- Get instance state
- Reboot instance
- Logout instance
- Get QR code
- Get QR code via websocket
- Link with phone number
- Get WhatsApp account information
Archive#
Sending#
- Send text message
- Send poll
- Send video, audio, image, document
- Send video, audio, image, document by URL
- Send location
- Send contact
- Forward messages
Archive#
Receiving#
Receiving notifications via HTTP API#
Receiving notifications via Webhook Endpoint#
Incoming notifications format#
Incoming message#
- Incoming text message
- Ordinary button selection
- Template button selection
- List element selection
- Incoming text message with URL
- Incoming image, video, audio, document message
- Incoming location message
- Incoming contact message
- Incoming message with an array of contacts
- Incoming message with sticker
- Incoming message-reaction
- Incoming message with an invitation to the group
- Incoming poll message
- Incoming poll update message
Outgoing message#
Others#
Archive#
Objects#
Receiving files#
Journals#
- Get chat messages history
- Get chat message
- Get incoming messages journal
- Get outgoing messages journal
Queues#
Groups#
- Create a group
- Change group name
- Get group info
- Add group participant
- Remove group participant
- Set group admin rights
- Remove group admin rights
- Leave group
Statuses (β-version)#
Statuses#
Statistics#
History#
Read mark#
Service methods#
- Check WhatsApp availability
- Get avatar
- Get contacts
- Get contact info
- Delete message
- Archive chat
- Unarchive chat
- Change chat disappearing messages settings
Other#
Integration Recommendations#
- Creating and configuring an instance
- Tracking the state of an instance
- Connecting a phone number to the Green API service
- Working with incoming calls
- Using Green API Hosts
- Working with incoming webhooks