Skip to content

An answer as speech

POST/admin/v1/stores/{store_id}/agent/speech/voice
  • Idempotency-Key supported

An answer as speech, through the speech engine. 409 speech_off unless it's turned on.

Path parameters

  • store_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
  • localestring · or null

    The browser's language, such as ar-EG.

  • time_zonestring · or null

    The browser's time zone, such as Africa/Cairo.

  • voicestring · or null

    woman or man, if the person has chosen.

Returns

200

Errors

  • 409
  • 429rate_limited