Skip to main content
POST
https://dashboard.laburen.com
/
api
/
transcribe-audio
curl --location --request POST 'https://dashboard.laburen.com/api/transcribe-audio' \
--form 'file=@"/path/to/audio.wav"' \
--form 'agentId="clxxxxxxxxxxxxxxxxx"'
{
  "text": "Hello, I need help with my order that was placed last week."
}
This endpoint converts audio files to text using Azure’s Speech-to-Text API. It is designed to be used from public-facing chatbot widgets and does not support API key authentication. Use Cases:
  • Enable voice input in chatbot widgets
  • Transcribe user audio messages for AI agent processing
  • Convert voice notes to text for conversation logs
  • Build voice-enabled customer support interfaces
This endpoint does not support API key authentication. It only works by providing a valid agentId of a public agent. The agent must have its visibility set to “public” for this endpoint to work.

Headers

Content-Type
string
default:"multipart/form-data"
required
Must be set to multipart/form-data for file uploads.

Body (multipart/form-data)

file
file
required
The audio file to transcribe. Supported formats:
  • audio/wav
  • audio/webm
agentId
string
required
The ID of a public agent. This is required for all requests. The agent must have its visibility set to “public”.

Response

text
string
The transcribed text from the audio file.

Error Responses

Status CodeDescription
401Unauthorized - Invalid or missing agentId, or agent is not public
400Invalid request - No file provided or invalid file format
500Transcription failed - Azure service error
curl --location --request POST 'https://dashboard.laburen.com/api/transcribe-audio' \
--form 'file=@"/path/to/audio.wav"' \
--form 'agentId="clxxxxxxxxxxxxxxxxx"'
{
  "text": "Hello, I need help with my order that was placed last week."
}