Skip to content

Send message

POST/admin/v1/stores/{store_id}/agent/conversations/{conversation_id}/messages
  • Idempotency-Key supported

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

Path parameters

  • store_idstringrequired
  • conversation_idstringrequired

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • textstringrequired
  • pagestring · or null

    The path of the page beside the panel.

  • languagestring · or null

    The admin's language, ar or en.

  • filesarray of strings

    Files going with these words, from the file routes.

  • voiceobject · or null

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

  • theme_editobject · or null

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

  • theme_pageobject · or null

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

Returns

200 Events of the turn

Errors

  • 409
  • 429rate_limited