Campaigns

POST /v1/campaigns/preview

Render a template with example values.

כל נקודות הקצה מסוג Campaigns

אימות

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

המקום שבו מזהה הארגון שלך נכנס

נקודת קצה זו מקבלת את org_id כשדה בגוף ה-JSON.

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

נסה זאת

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

curl -X POST https://api.zinndigital.com/v1/campaigns/preview \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "subject": <string>, "body": <string> }'

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

פרטים

Rendered by the engine, through the same renderer the send uses. A preview computed in the client is a second implementation of the substitution rules, and the first time it disagrees an author ships copy they never actually saw.

גוף הבקשה

שםסוגנדרשמה זה
fallbacksbooleanלאPreview only. Render with NO merge values, so every tag falls back and the author reads what a customer we know nothing about reads. It exists because a normal preview substitut…
namestringכן
subjectstringכן
bodystringכן
purposestring<marketing, transactional>לא
channelsstring<email, in_app, slack, telegram>[]לא
org_idstringלא

תשובה

שםסוגנדרשמה זה
fallbacksbooleanלאWhether this was rendered with fallbacks only, echoed so the composer can label the panel honestly.
subjectstringכן
body_textstringכן
body_htmlstringכן
headersobjectכןRFC 8058 one-click unsubscribe headers on a marketing message; empty otherwise.

שגיאות שנקודה קצה זו עשויה להחזיר

401 · 403 · 422