أنشئ عمليات تكامل قوية لتطبيق WhatsApp من خلال واجهة برمجة التطبيقات الشاملة الخاصة بنا. قم بإرسال الرسائل وإدارة المثيلات وأتمتة سير عمل الاتصالات الخاصة بك.
توفر واجهة برمجة تطبيقات WhatsApp Web طريقة بسيطة وقوية لدمج WhatsApp في تطبيقاتك.
ليس لديك أوراق اعتماد حتى الآن؟ اشترك هنا للحصول على رمز الوصول ومعرف المثيل.
https://wonotify.com/api/...
https://wonotify.com/whatsapp_api/...
قم بإنشاء معرف مثيل جديد للاتصال بـ WhatsApp Web.
https://wonotify.com/api/create_instance?access_token=6881c11f741a1
| Parameter | Type | Required | Description |
|---|---|---|---|
access_token | string | Yes | Your API access token |
curl -X POST 'https://wonotify.com/api/create_instance?access_token=6881c11f741a1'
قم بتسجيل الخروج من WhatsApp web وقم بإجراء فحص جديد.
https://wonotify.com/api/reboot?instance_id=609ACF283XXXX&access_token=6881c11f741a1
| Parameter | Type | Required | Description |
|---|---|---|---|
instance_id | string | Yes | WhatsApp instance ID |
access_token | string | Yes | Your API access token |
سيؤدي هذا إلى تسجيل الخروج من WhatsApp web وتغيير معرف المثيل وحذف جميع بيانات المثيل القديم.
https://wonotify.com/api/reset_instance?instance_id=609ACF283XXXX&access_token=6881c11f741a1
أعد بدء الاتصال من التطبيق إلى WhatsApp web عند فقدان الاتصال.
https://wonotify.com/api/reconnect?instance_id=609ACF283XXXX&access_token=6881c11f741a1
تسجيل الخروج من مثيل WhatsApp Web.
https://wonotify.com/api/logout?instance_id=609ACF283XXXX&access_token=EMCUH3NQQK8YXXXX
عرض رمز الاستجابة السريعة لتسجيل الدخول إلى WhatsApp web. يمكنك الحصول على النتائج التي تم إرجاعها عبر Webhook.
https://wonotify.com/api/get_qrcode?instance_id=609ACF283XXXX&access_token=6881c11f741a1
| Parameter | Type | Required | Description |
|---|---|---|---|
instance_id | string | Yes | WhatsApp instance ID |
access_token | string | Yes | Your API access token |
إرسال رسالة نصية إلى رقم الهاتف من خلال التطبيق.
https://wonotify.com/api/send?number=84933313xxx&type=text&message=test+message&instance_id=609ACF283XXXX&access_token=6881c11f741a1
https://wonotify.com/api/send
Content-Type: application/json
{
"number": "84933313xxx",
"type": "text",
"message": "test message",
"instance_id": "609ACF283XXXX",
"access_token": "6881c11f741a1"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
number | string | Yes | Phone number (without +) |
type | string | Yes | Message type: "text" |
message | string | Yes | Text message content |
instance_id | string | Yes | WhatsApp instance ID |
access_token | string | Yes | Your API access token |
أرسل وسائط أو ملفًا برسالة إلى رقم هاتف من خلال التطبيق.
https://wonotify.com/api/send?number=84933313xxx&type=media&message=test+message&media_url=https%3A%2F%2Fi.pravatar.cc&filename=file_test.jpg&instance_id=609ACF283XXXX&access_token=6881c11f741a1
https://wonotify.com/api/send
Content-Type: application/json
{
"number": "84933313xxx",
"type": "media",
"message": "test message",
"media_url": "https://i.pravatar.cc",
"instance_id": "609ACF283XXXX",
"access_token": "6881c11f741a1"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
number | string | Yes | Phone number (without +) |
type | string | Yes | Message type: "media" |
message | string | Yes | Caption for the media |
media_url | string | Yes | URL of the media file |
filename | string | No | Filename (for documents: file_test.pdf) |
instance_id | string | Yes | WhatsApp instance ID |
access_token | string | Yes | Your API access token |
أرسل رسالة نموذجية إلى رقم هاتف من خلال التطبيق.
https://wonotify.com/api/send_template?instance_id=609ACF283XXXX&access_token=6881c11f741a1
Content-Type: application/json
{
"number": "84933313xxx",
"type": "interactive",
"message": {
"text": "This is an Interactive message!",
"title": "Test Title",
"subtitle": "subtitle",
"footer": "test footer",
"interactiveButtons": [
{
"name": "quick_reply",
"buttonParamsJson": "{\"display_text\":\"Test\",\"id\":\"685250bce39ca\"}"
},
{
"name": "cta_url",
"buttonParamsJson": "{\"display_text\":\"Click me!\",\"url\":\"https://baceoin.com\"}"
},
{
"name": "cta_call",
"buttonParamsJson": "{\"display_text\":\"Call Us\",\"phone_number\":\"+1234567890\"}"
},
{
"name": "cta_copy",
"buttonParamsJson": "{\"display_text\":\"Copy Code\",\"copy_code\":\"PROMO2024\"}"
}
]
}
}
Content-Type: application/json
{
"number": "84933313xxx",
"type": "template",
"message": {
"text": "This is a template message!",
"footer": "test footer",
"templateButtons": [
{
"index": 1,
"quickReplyButton": {
"displayText": "Test",
"id": "685250bce39ca"
}
}
]
}
}
Content-Type: application/json
{
"number": "84933313xxx",
"type": "list",
"message": {
"text": "hello",
"footer": "test footer",
"title": "test title",
"buttonText": "bay",
"sections": [
{
"title": "hello",
"rows": [
{
"title": "hello",
"rowId": "685410595972e",
"description": "hello"
}
]
}
]
}
}
إرسال رسالة نصية إلى مجموعة WhatsApp.
https://wonotify.com/api/send_group?group_id=120363023285171234@g.us&type=text&message=group+message&instance_id=609ACF283XXXX&access_token=6881c11f741a1
https://wonotify.com/api/send_group
Content-Type: application/json
{
"group_id": "120363023285171234@g.us",
"type": "text",
"message": "group message",
"instance_id": "609ACF283XXXX",
"access_token": "6881c11f741a1"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
group_id | string | Yes | WhatsApp group ID (ends with @g.us) |
type | string | Yes | Message type: "text" |
message | string | Yes | Text message content |
instance_id | string | Yes | WhatsApp instance ID |
access_token | string | Yes | Your API access token |
أرسل الوسائط أو الملفات مع تسمية توضيحية إلى مجموعة WhatsApp.
https://wonotify.com/api/send_group?group_id=120363023285171234@g.us&type=media&message=group+message&media_url=https%3A%2F%2Fi.pravatar.cc&filename=file_test.jpg&instance_id=609ACF283XXXX&access_token=6881c11f741a1
https://wonotify.com/api/send_group
Content-Type: application/json
{
"group_id": "120363023285171234@g.us",
"type": "media",
"message": "group message",
"media_url": "https://i.pravatar.cc",
"filename": "file_test.jpg",
"instance_id": "609ACF283XXXX",
"access_token": "6881c11f741a1"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
group_id | string | Yes | WhatsApp group ID (ends with @g.us) |
type | string | Yes | Message type: "media" |
message | string | Yes | Caption for the media |
media_url | string | Yes | URL of the media file |
filename | string | No | Filename (for documents: file_test.pdf) |
instance_id | string | Yes | WhatsApp instance ID |
access_token | string | Yes | Your API access token |
احصل على جميع قيم الإرجاع من WhatsApp. مثل حالة الاتصال، الرسالة الواردة، الرسالة الصادرة، غير متصل، تغيير البطارية، ...
https://wonotify.com/api/set_webhook?webhook_url=https%3A%2F%2Fwebhook.site%2F1b25464d6833784f96eef4xxxxxxxxxx&enable=true&instance_id=609ACF283XXXX&access_token=6881c11f741a1
| Parameter | Type | Required | Description |
|---|---|---|---|
webhook_url | string | Yes | Your webhook URL (URL encoded) |
enable | boolean | Yes | Enable/disable webhook (true/false) |
instance_id | string | Yes | WhatsApp instance ID |
access_token | string | Yes | Your API access token |