Test Helna Consultation Module
All API calls require authentication via API key in the header.
| Header | Value | Description |
|---|---|---|
| X-Api-Key | Required | Your API key (starts with hlna_) |
| X-Clinician-Id | Required | Clinician identifier |
| Content-Type | application/json | For POST requests with JSON body |
Initiates a consultation audio upload. Returns a secure upload URL and creates the consultation record.
| Field | Type | Required | Description |
|---|---|---|---|
| consultationId | string | Yes | Unique ID for the consultation |
| patientId | string | Yes | Patient identifier |
| clinicId | string | No | Clinic identifier |
| language | string | No | Language code (e.g., en-US, ar-IQ). Default: en-US |
| contentType | string | No | Audio MIME type. Default: audio/webm |
| fileSizeBytes | number | No | File size in bytes |
Upload the audio file to the uploadUrl using PUT method with Content-Type header.
Confirms that the audio file has been uploaded successfully. Updates the recording status.
| Field | Type | Required | Description |
|---|---|---|---|
| recordingId | string | Yes | Recording ID from upload response |
Starts speech-to-text transcription. Supports 100+ languages including Arabic dialects.
| Field | Type | Required | Description |
|---|---|---|---|
| recordingId | string | Yes | Recording ID from upload |
| language | string | No | Override language (e.g., ar-IQ, en-GB) |
| enableDiarization | boolean | No | Enable speaker diarization. Default: true |
Transcription deducts credits from your account. Minimum 1 minute per transcription.
Get the current status of a transcription job and retrieve the transcribed text.
| Parameter | Type | Description |
|---|---|---|
| recordingId | string | The recording ID to check |
Uploading → Uploaded → Processing → Transcribing → Completed or Failed
Runs AI analysis on consultation notes. Provides clinical assessment, differential diagnosis, treatment recommendations, and more.
| Field | Type | Required | Description |
|---|---|---|---|
| ConsultationNotes | string | Yes | The transcription or consultation notes to analyze |
| PatientAge | number | No | Patient age for context |
| PatientGender | string | No | Patient gender for context |
| Field | Description |
|---|---|
| chiefComplaint | Main reason for visit |
| executiveSummary | Brief clinical summary |
| clinicalAssessment | Symptoms, vitals, findings |
| differentialDiagnosis | Possible diagnoses ranked by likelihood |
| treatmentRecommendations | Suggested treatments and medications |
| redFlags | Warning signs requiring urgent attention |
| followUpPlan | Recommended follow-up schedule |
Retrieve a consultation by ID with full details including transcription and AI analysis.
| Parameter | Type | Description |
|---|---|---|
| consultationId | string | The consultation ID |
Translate consultation content to another language using AI translation.
| Field | Type | Required | Description |
|---|---|---|---|
| consultationId | string | Yes | Consultation to translate |
| targetLanguage | string | Yes | Target language code (e.g., en, ar, fr) |
| Status | Meaning |
|---|---|
| 200 | Success |
| 400 | Bad Request - Check required fields |
| 401 | Unauthorized - Invalid or missing API key |
| 402 | Payment Required - Insufficient credits |
| 404 | Not Found - Resource doesn't exist |
| 500 | Server Error - Check logs |