Loading...
Loading...
Use this skill when the user wants to create, list, search, update, or delete contacts in 2Chat. Trigger phrases include "create contact", "list contacts", "search contacts", "find contact", "update contact", "delete contact", "2chat contacts".
npx skill4agent add 2chatco/agent-skills 2chat-contactsX-User-API-Key: <api_key>https://api.p.2chat.io/openGET /contactspage_numberresults_per_pagechannel_uuiduuidfirst_namelast_namechannel_uuidprofile_pic_urldetailsGET /contacts/{contact_uuid}GET /contacts/search?q={phone_or_name}qchannel_uuidpage_numberresults_per_pagePOST /contacts{
"first_name": "John",
"last_name": "Doe",
"profile_pic_url": "https://example.com/photo.jpg",
"channel_uuid": "WPN-uuid",
"contact_detail": [
{ "type": "WAPH", "value": "+15551234567" },
{ "type": "E", "value": "john@example.com" }
]
}| Type | Description |
|---|---|
| Phone number |
| WhatsApp phone number |
| |
| Address |
channel_uuidPUT /contacts/{contact_uuid}{
"first_name": "John",
"last_name": "Smith",
"profile_pic_url": "https://example.com/new-photo.jpg",
"channel_uuid": "WPN-uuid",
"contact_details": {}
}channel_uuidDELETE /contacts/{contact_uuid}