انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Send message

POST/admin/v1/stores/{store_id}/agent/conversations/{conversation_id}/messages
  • يدعم Idempotency-Key

Sends a message and streams the turn as server-sent events.

معاملات المسار

  • store_idstringمطلوب
  • conversation_idstringمطلوب

الترويسات

  • Idempotency-Keystring

    أرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

الجسم

  • textstringمطلوب
  • pagestring · أو null

    The path of the page beside the panel.

  • languagestring · أو null

    The admin's language, ar or en.

  • filesarray of strings

    Files going with these words, from the file routes.

  • voiceobject · أو null

    Set on a voice call: where the person is, for how the answer should sound.

  • theme_editobject · أو null

    A fixed section and the editor's unsaved working copy, for a draft-only turn.

  • theme_pageobject · أو null

    The page the theme editor shows and its unsaved working copy, for a page draft.

ما يُرجعه

200 Events of the turn

الأخطاء

  • 409
  • 429rate_limited