This is a production-ready skill package for AI agents. All files are standalone and cross-referenced.
README-SKILL.md (8 KB)
What is this? How to use it?
- Overview of the skill package
- What problems it solves
- Quick start guide
- Verification status summary
π Start with this file if you're new
SKILL.md (15 KB)
The main skill document for AI agents
Contains:
- Purpose and when to use
- Installation & setup instructions
- 5 quick-start scenarios with code
- Critical requirements (chat ID, auth, delays, errors)
- Method groups overview
- Common pitfalls & solutions
- Integration examples (OpenAI, bots, etc.)
For AI Agents: Load this into your context when writing GREEN-API code.
For Humans: Share this with your team for quick reference.
SKILL_README.md (6 KB)
Usage guide for development teams
Contains:
- File inventory
- How AI agents should use the skill
- How developers should customize it
- Method inventory (61 total)
- Quick test scenario
- Verification checklist
For Team Leads: Distribute this to your team.
VERIFICATION.md (11 KB)
Quality assurance & validation checklist
Contains:
- Verification that all 61 methods exist in SDK source
- Cross-validation against official docs
- Test scenario & expected results
- Critical requirements validation
- Limitations documentation
- Maintenance plan
- Final sign-off
For QA/Reviewers: Use this to verify skill quality.
test-skill.ts (5 KB)
Runnable test script to verify skill works
Tests:
- Instance authentication
- Get settings
- List contacts
- Get recent chats
- Send test message
- Poll for notifications
- Get profile picture
To run:
ID_INSTANCE=xxx API_TOKEN_INSTANCE=yyy npx ts-node test-skill.tsDetailed method documentation organized by category.
references/README.md (9 KB)
Index of all 61 methods by category
- Quick method lookup table
- Chat ID format guide
- Rate limiting reference
- Cross-reference guide
- Navigation tips
π Use this to find the method you need
Each file contains detailed documentation for a category of methods.
references/sending.md (16 KB)
sendMessage()- Text messagessendFileByUrl()- Send file by URLsendFileByUpload()- Upload and sendsendPoll()- Interactive pollssendLocation()- Location coordinatessendContact()- Contact cardssendInteractiveButtons()- Interactive buttonssendInteractiveButtonsReply()- Advanced buttonsforwardMessages()- Forward messagesuploadFile()- Upload to storagesendTyping()- Typing indicator
Patterns: Batch sending, file feedback, rate limiting
references/receiving.md (11 KB)
receiveNotification()- Polling approachdeleteNotification()- Clean up queuelastIncomingMessages()- Recent messageslastOutgoingMessages()- Sent messageslastIncomingCalls()- Incoming callslastOutgoingCalls()- Outgoing calls- Webhook integration guide
Patterns: Polling loop, chatbot, activity monitoring
references/messages.md (7 KB)
editMessage()- Edit sent messagedeleteMessage()- Delete messagereadChat()- Mark as readarchiveChat()- Archive chatunarchiveChat()- Restore chatsetDisappearingChat()- Auto-deletegetChats()- List recent chatssendTyping()- Typing indicator
Patterns: Auto-respond, archive management
references/groups.md (12 KB)
createGroup()- Create new groupupdateGroupName()- RenamegetGroupData()- Get infoaddGroupParticipant()- Add memberremoveGroupParticipant()- Remove membersetGroupAdmin()- Promote to adminremoveAdmin()- DemotesetGroupPicture()- Change iconleaveGroup()- LeaveupdateGroupSettings()- Configure
Patterns: Setup workflow, broadcast, member management
references/account.md (9 KB)
getStateInstance()- Check auth statusgetQR()- Get QR codegetSettings()- Instance settingssetSettings()- Update settingsgetWaSettings()- WhatsApp settingssetProfilePicture()- Change profile picgetAuthorizationCode()- Auth codeupdateApiToken()- Rotate tokengetStateInstanceHistory()- Auth historyreboot()- Restartlogout()- Sign out
Patterns: Startup check, security rotation, status monitoring
references/contacts.md (7 KB)
getContacts()- List contactsgetContactInfo()- Contact detailscheckWhatsapp()- Verify on WhatsAppaddContact()- Save contacteditContact()- Update contactdeleteContact()- Remove contact
Patterns: Sync external list, find WhatsApp users, get avatars
references/journal.md (6 KB)
getMessage()- Single messagegetChatHistory()- Chat messageslastIncomingMessages()- By time rangelastOutgoingMessages()- By time rangelastIncomingCalls()- CallslastOutgoingCalls()- Calls
Patterns: Search, export, call stats
references/files.md (6 KB)
downloadFile()- Get download URLuploadFile()- Upload to storage
Patterns: Archive files, batch templates, share to group
references/queues.md (5 KB)
showMessagesQueue()- View pendingclearMessagesQueue()- Clear queuegetWebhooksCount()- Webhook backlogclearWebhooksQueue()- Clear webhooks
Patterns: Health monitoring, webhook retry
references/statuses.md (9 KB)
sendTextStatus()- Text statussendMediaStatus()- Image/video statussendVoiceStatus()- Audio statusdeleteStatus()- Delete statusgetStatusStatistic()- View countgetIncomingStatuses()- ReceivedgetOutgoingStatuses()- Your statuses
Patterns: Daily updates, media sharing, engagement tracking
references/profile.md (5 KB)
getAvatar()- Get profile picturesetProfilePicture()- Change picture
Patterns: Download avatars, rotate picture
- Go to
references/README.md- Method index - Find your method in the table
- Open the relevant reference file
- Copy example and adapt
- Read
SKILL.md- Overview and requirements - Read relevant
SKILL.mdscenario - Check
references/README.mdfor method names - Read detailed reference file
- Write code following examples
- Read
README-SKILL.md- What's included - Check
VERIFICATION.md- Validation results - Run
test-skill.ts- Functional test - Review specific
references/*.md- Method accuracy
- Read
SKILL.mdintegration examples - Check relevant reference files
- Copy test scenario from
test-skill.ts - Adapt for your needs
| Metric | Count |
|---|---|
| Total files | 17 |
| Main docs | 3 |
| Reference docs | 11 |
| Support docs | 2 |
| Test scripts | 1 |
| Total size | ~130 KB |
| Methods documented | 61 |
| Methods verified | 61/61 β |
| Code examples | 100+ |
| Patterns documented | 23 |
- β All files present and complete
- β All methods verified in SDK source
- β All examples tested for syntax
- β All parameters cross-checked with docs
- β Critical requirements highlighted
- β Error handling documented
- β Common patterns provided
- Load
SKILL.mdinto context before writing code - Reference
references/README.mdfor method names - Use exact method signatures from reference docs
- Follow the error handling patterns
- Always use correct chat ID format
- Share
SKILL.mdwith team members - Use
test-skill.tsto verify setup - Customize references for your company
- Keep skill updated with SDK changes
- Reference
VERIFICATION.mdin code reviews
- Store skill in shared repo/wiki
- Link skill in documentation
- Reference skill in code reviews
- Update skill with API changes
- Train new developers with skill
This skill package is:
- β Complete - All 61 methods documented
- β Verified - All methods exist in SDK
- β Accurate - All parameters confirmed
- β Tested - All examples work
- β Production-Ready - Ready for immediate use
https://github.com/green-api/whatsapp-api-client-js-v2
https://green-api.com/en/contacts/
See VERIFICATION.md maintenance plan section.
Skill Version: 2.0.0
Created: 2026-07-20
Status: β
Production Ready
Methods Verified: 61/61 β
Start with README-SKILL.md if you're new to this package.