Skip to navigation

Transcribe Voice Message

Transcribe a base64-encoded audio clip to text via the AI assistant.

Authentication: Required — Bearer token.

Feature gate: Requires a configured LoyalStream/AI connector — otherwise 403 ai_sdk_unavailable.

Request body:

  • audio_data (required) — Base64 audio; a data:...;base64, prefix is stripped automatically
  • filename (optional, default voice-message.webm) — Used for the temp file extension

Response:

  • data.text — The transcribed text

Errors:

  • 403 — ai_sdk_unavailable
  • 422 — transcription_unavailable, audio_missing, or transcription_failed

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
audio_datastringOptional
filenamestringOptional

Response

OK