Integration Guide
This guide covers everything required to build a production-ready Helios integration — user data, recording requirements, data deletion, tagging, and error handling. If you have not yet made your first Helios API call, start with the Quickstart.
Architecture
A Helios integration has three components:
- Your backend — creates model runs, handles recording uploads, and polls for results via the thymia API. Your API key must never be exposed in client-side code.
- Your frontend — captures audio from your users and passes it to your backend for upload, or embeds the thymia Widget to handle capture directly.
- thymia API — processes the recording and returns biomarker scores.
How your frontend and backend communicate is specific to your infrastructure. The thymia API is called exclusively from your backend.
User data
Every model run requires a user object containing three fields.
This data is used to benchmark results against a matched population —
accuracy is directly affected by the quality of information supplied.
Language and accent
The language field specifies the language and dialect the user will
be speaking. Choosing the most accurate code for your user improves
transcription quality and benchmarking accuracy.
Recording requirements
The upload URL returned when creating a model run is valid for 1 hour. If the URL expires before the recording is uploaded, create a new model run.
Sleep and recording time
For more accurate results, you can optionally pass the user’s sleep and wake times alongside the time the recording was made:
Sleep and recording time fields should not include timezone information. They are assumed to be in the local timezone of the user at the time of recording.
Tagging model runs
Tags are name/value pairs you can attach to a model run for later identification and filtering.
Data deletion
thymia is GDPR and HIPAA compliant. For data processing agreements or privacy queries, contact support@thymia.ai.
Polling for results
After uploading the recording, poll
GET /v1/models/mental-wellness/{model_run_id} until the status
field is no longer RUNNING. We recommend polling every 3 seconds.
Error handling
If the model run completes with COMPLETE_ERROR, check the errorCode
field to determine the cause and next action. See the
Error Reference for the full list of
error codes and recommended responses.
The most common errors in production are:
Multi-region
Contact support@thymia.ai to enable regional data storage for your account.
Next steps
- Interpreting Results — Understand what the scores mean and how to present them to users.
- Error Reference — Full reference for all Helios error codes.
- API Reference — Complete endpoint documentation for the Helios API.






