API Docs · v1.0

תיעוד API

שליחת הודעות, ניהול קמפיינים ואנשי קשר - הכל באופן פרוגרמטי.

התחלה מהירה

שלושה צעדים לבקשה הראשונה שלך.

  1. 01

    צרו מפתח גישה

    עברו לעמוד מפתחות הגישה וצרו מפתח חדש

    יצירת מפתח גישה
  2. 02

    הוסיפו את המפתח לכותרת הבקשה

    Authorization: YOUR_ACCESS_TOKEN
  3. 03

    שלחו את הבקשה הראשונה שלכם

    העתיקו את הקוד שלמטה והריצו.

fetch('https://api.vibrate.co.il/v1/sms/send', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'YOUR_ACCESS_TOKEN',
  },
  body: JSON.stringify({
    recipients: ['0501231234'],
    message: 'שלום עולם',
    sender: 'MySender',
  }),
})
  .then(res => res.json())
  .then(data => console.log(data));

Vibrate API Skill

חדש · v2026-11-25

למדו את ה-AI שלכם את כל ה-API של Vibrate בהדבקה אחת. עובד עם ChatGPT, Claude, Claude Code, Cursor ו-GitHub Copilot.

  1. 01העתיקו את ה-Skill (או את הפרומפט הקצר אם הכלי שלכם יודע לפתוח קישורים).
  2. 02הדביקו אותו ב-ChatGPT, Claude, Cursor או Claude Code כהודעה הראשונה.
  3. 03בקשו מה שצריך: "שלח SMS מהשרת Node שלי", "בדוק סטטוס מסירה", "שלח תבנית וואטסאפ לרשימה שלי".
עובד עם
ChatGPT ·Claude ·Claude Code ·Cursor ·GitHub Copilot
Claude Code / Cursor: התקנה חד-פעמית
mkdir -p .claude/skills/vibrate-api
curl -fsSL https://www.vibrate.co.il/vibrate-api-skill.md -o .claude/skills/vibrate-api/SKILL.md

נתוני משתמש

דוגמא לשליפת נתוני משתמש

GET/v1/user/info
fetch('https://api.vibrate.co.il/v1/user/info', {
  method: 'GET',
  headers: { 'Authorization': 'YOUR_ACCESS_TOKEN' },
})
  .then(res => res.json())
  .then(data => console.log(data));
תשובה לדוגמה
{
  "data": {
    "email": "[email protected]",
    "name": "ישראל ישראלי",
    "status": "active",
    "smsAmount": 38
  },
  "message": "User data retrieved successfully",
  "success": true
}

שליחת הודעות

דוגמא לשליחת הודעות לנמען יחיד

POST/v1/sms/send
fetch('https://api.vibrate.co.il/v1/sms/send', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'YOUR_ACCESS_TOKEN',
  },
  body: JSON.stringify({
    recipients: ['0501231234'],
    message: 'שלום עולם',
    sender: 'MySender',
  }),
})
  .then(res => res.json())
  .then(data => console.log(data));
תשובה לדוגמה
{
  "data": {
    "runId": "6d3c80fc-e2c6-4593-b787-cecafcf84f4b"
  },
  "message": "SMS batch queued successfully",
  "success": true
}

דוגמא לשליחת הודעות למספר נמענים

POST/v1/sms/sendBulk
fetch('https://api.vibrate.co.il/v1/sms/sendBulk', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'YOUR_ACCESS_TOKEN',
  },
  body: JSON.stringify({
    sender: 'MySender',
    messages: [
      { recipient: '0501231234', message: 'הודעה ראשונה' },
      { recipient: '0505675678', message: 'הודעה שנייה' },
    ],
  }),
})
  .then(res => res.json())
  .then(data => console.log(data));
תשובה לדוגמה
{
  "data": {
    "runId": "6d3c80fc-e2c6-4593-b787-cecafcf84f4b"
  },
  "message": "SMS batch queued successfully",
  "success": true
}

רשימות תפוצה

דוגמא לשליפת כל רשימות התפוצה

GET/v1/sms/campaigns
fetch('https://api.vibrate.co.il/v1/sms/campaigns', {
  method: 'GET',
  headers: { 'Authorization': 'YOUR_ACCESS_TOKEN' },
})
  .then(res => res.json())
  .then(data => console.log(data));
תשובה לדוגמה
{
  "data": [
    {
      "id": "e4b42342-550b-4e52-b42c-3c22bd8bf132",
      "name": "New Campaign",
      "createdAt": "2025-06-16T21:25:19.903Z",
      "updatedAt": "2025-06-16T21:25:19.903Z",
      "userId": "zkf3jN4fTxiVlDHFiQpnRQt7p12eTKJp",
      "status": "active"
    }
  ],
  "message": "Campaigns retrieved successfully",
  "success": true
}

דוגמא ליצירת רשימת תפוצה חדשה

POST/v1/sms/campaigns
fetch('https://api.vibrate.co.il/v1/sms/campaigns', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'YOUR_ACCESS_TOKEN',
  },
  body: JSON.stringify({ name: "רשימת תפוצה חדשה" }),
})
  .then(res => res.json())
  .then(data => console.log(data));
תשובה לדוגמה
{
  "data": {
    "id": "e4b42342-550b-4e52-b42c-3c22bd8bf132",
    "name": "New Campaign",
    "createdAt": "2025-06-16T21:25:19.903Z",
    "updatedAt": "2025-06-16T21:25:19.903Z",
    "userId": "zkf3jN4fTxiVlDHFiQpnRQt7p12eTKJp",
    "status": "active"
  },
  "message": "Campaign created successfully",
  "success": true
}

דוגמה להפעלת רשימת תפוצה — שליחת הודעה מותאמת אישית לכל איש קשר פעיל

POST/v1/sms/campaigns/{id}/run
// Replace {{campaignId}} with your campaign ID
fetch('https://api.vibrate.co.il/v1/sms/campaigns/{{campaignId}}/run', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'YOUR_ACCESS_TOKEN',
  },
  body: JSON.stringify({
    sender: 'MySender',
    message: 'שלום {{name}}, יש לך הזמנה חדשה!',
    addUnsubscribe: true,
  }),
})
  .then(res => res.json())
  .then(data => console.log(data));
תשובה לדוגמה
{
  "data": {
    "runId": "6d3c80fc-e2c6-4593-b787-cecafcf84f4b",
    "campaignId": "62b496b6-da6b-483e-b40d-bbed67d7a4e0",
    "recipientCount": 247,
    "totalSmsUnits": 247
  },
  "message": "Campaign run queued successfully",
  "success": true
}

אנשי קשר

דוגמא לשליפת אנשי קשר לפי מזהה רשימת תפוצה

GET/v1/sms/campaigns/{id}/contacts
// Replace {{campaignId}} with your campaign ID
fetch('https://api.vibrate.co.il/v1/sms/campaigns/{{campaignId}}/contacts', {
  method: 'GET',
  headers: { 'Authorization': 'YOUR_ACCESS_TOKEN' },
})
  .then(res => res.json())
  .then(data => console.log(data));

דוגמה להוספת איש קשר למקפיין

POST/v1/sms/campaigns/{id}/contacts
// Replace {{campaignId}} with your campaign ID
fetch('https://api.vibrate.co.il/v1/sms/campaigns/{{campaignId}}/contacts', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'YOUR_ACCESS_TOKEN',
  },
  body: JSON.stringify({
    name: "David Beckham",
    phoneNumber: "0505975550",
    additionalFields: { "first name": "David", "last name": "Beckham" },
  }),
})
  .then(res => res.json())
  .then(data => console.log(data));
תשובה לדוגמה
{
  "data": {
    "id": "N2PU-V",
    "phoneNumber": "0505975550",
    "name": "New Campaign",
    "additionalFields": {
      "first name": "Or",
      "last name": "Nakash"
    },
    "createdAt": "2025-06-16T21:07:06.509Z",
    "updatedAt": "2025-06-16T21:07:06.509Z",
    "campaignId": "62b496b6-da6b-483e-b40d-bbed67d7a4e0",
    "status": "active"
  },
  "message": "Contact added to campaign successfully",
  "success": true
}

האתר משתמש בעוגיות הכרחיות לתפעולו ובעוגיות אנליטיקה כדי להבין כיצד משתמשים שלנו פועלים. השימוש בעוגיות אנליטיקה כפוף להסכמתך, בהתאם לחוק הגנת הפרטיות. פרטים נוספים במדיניות הפרטיות