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; adata:...;base64,prefix is stripped automaticallyfilename(optional, defaultvoice-message.webm) — Used for the temp file extension
Response:
data.text— The transcribed text
Errors:
403—ai_sdk_unavailable422—transcription_unavailable,audio_missing, ortranscription_failed
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
audio_data
filename
Response
OK