REST API SDK Getting Started
This guide shows the shared setup used by REST API SDK examples.
Verified example flow
Each language guide demonstrates the same end-to-end workflow:
- Upload a local audio file
- Start a transcription job with the generated
UploadAndTranscribeoperation - Poll the transcription job until it reaches a terminal state
- Print the final transcription or the job errors
Prerequisites
- A running Koldan server
- A valid API key
- A downloaded SDK archive for your language
- A local audio file to transcribe
Shared Environment Variables
Use the same three environment variables in every example.
Upload And Transcribe Request
The examples call POST /api/v1/speech-services/transcriptions/upload through the generated SDK method for each language.
The verified request uses these values:
file: the local WAV file contentname: a display name such asmeeting-recordingpath:/incoming-audio/metadata: a JSON string such as{"source":"upload","type":"meeting-recording"}tags: a JSON string such as["meeting","transcription"]transcription: a JSON string such as:
{
"model": "general",
"language": {
"defaultLanguageCode": "he"
},
"punctuation": false,
"capitalization": false
}
diarization: a JSON string withenabled: false
Provide uri instead of file only when you want Koldan to import a remote file.
Multipart request fields
transcription and diarization are sent as JSON-encoded strings because the upload endpoint uses multipart form data.
Polling For Completion
UploadAndTranscribe returns both the uploaded file and the created transcription job. After creating the job, the examples poll the generated getJob operation until the job reaches one of these terminal states:
COMPLETEDFAILEDCANCELLED
When the job completes successfully, the transcript is available in job.result.text. When the job fails, the examples print job.errorCode and job.errors.
Install A REST API SDK
Download the REST API SDK archive for your language from SDK Overview, extract it, and follow the language-specific setup guide:
For live microphone or PCM streaming integrations, use the separate C# WebSocket SDK.
Authentication
Koldan accepts API key authentication through the X-API-Key header. Depending on the generated client, you will configure either:
- the generated
apiKeysecurity scheme value, or - the
X-API-Keyheader entry expected by that SDK
Each language page shows the exact client configuration call.