- Build a WebSocket server that speaks the wire protocol.
- Register it. It starts as a
draft. - Try it on your own calls, with your own key.
- Optionally, make it public and get it approved, so other organizations can use it.
How it works
websocket_url you registered for as long
as the call lasts. Every call brings its own key for your engine, which you issued to
the caller; Telnyx holds no key for your engine and sends the caller’s key to it (see
Authentication).
Before you register
- A WebSocket server that speaks the community STT wire protocol (see Wire protocol below)
- A public
wss://URL reachable from Telnyx’s infrastructure (use a tunnel likecloudflaredorngrokfor development). Private, loopback and internal addresses are not accepted — see Fields - A Telnyx account with an API key
- A way to issue keys: callers bring their own key for your engine, so your engine decides which keys it accepts (see Authentication). Telnyx stores none.
Register an engine
status: draft. Your organization can use it right away with
its own key (see Try your engine before approval);
other organizations can use it only once it is public and approved.
Fields
Engine names
Thename is the engine’s address. A caller selects the engine by sending its name
as the engine — the start of model on an assistant (<engine> or
<engine>/<model>), transcription_engine on Call Control and WebSocket
streaming, transcriptionEngine in TeXML — together with their key.
- Format: 1–64 characters — lowercase letters, digits, hyphens (
-) and underscores (_) — starting with a letter or digit.my-whisper-engineis valid;My Whisper Engineis not. - Unique across all Telnyx accounts. A name identifies one engine for
everyone, which is how another organization refers to your engine if you make it
public. Registering a name that is already taken returns a422(see the example below). - Not a vendor’s name. These names are reserved and cannot be registered:
custom,deepgram,azure,telnyx,google,xai,assemblyai,speechmatics,soniox,parakeet,nvidia,omi-health,humain,reson8,cohere,openaianddistil-whisper. So are the names Deepgram’s models go by without the vendor:flux,flux-multi,nova-2,nova-3andnova-3-medical, as areaandb, the legacy codes for the Google and Telnyx engines. Choosing one of those would reach another engine, not yours. A reserved name counts under either spelling, with a hyphen or an underscore (omi-healthandomi_health,deepgram-fluxanddeepgram_flux). A name that is not a built-in vendor’s is looked up as an engine, so a vendor’s name must never be an engine’s. A reserved name returns a422with"is reserved". - Immutable. A name cannot be changed after the engine is created. Sending
a different
nameon update returns a422; sending the current name unchanged is fine. To use a different name, delete the engine and register a new one.
id is used in the API paths (/stt_integrations/{id}). It is
not what a caller puts in model or transcription_engine — they use the name.
Models
An engine offers one or more models — a size, a language pack, a version — the way Deepgram offersnova-2 and nova-3. List them in models, each with the
languages it supports. A caller chooses one by sending its name as model,
next to the engine’s name (on an AI Assistant, as <engine>/<model> in model):
- An engine needs at least one model. With one, it is the default and you
need not set
default_model; with several, setdefault_modelto the one a caller that names none should get. - Models are part of what Telnyx reviews. Adding or removing one, or changing the languages a model lists, invalidates an existing approval (see the note under Status lifecycle).
- Model names are validated like engine names, but may also contain dots and are
limited to 32 characters. They cannot contain
/.
Languages per model
Models differ in the languages they handle, so each model lists its own insupported_languages:
- A session on a model is admitted only for a language in that model’s list.
With the example above,
large-v3acceptses,basedoes not, andexperimentalaccepts any language because it lists none. - A model that lists no languages is unrestricted. Languages belong to models, not to the engine.
language: "auto"needs the selected model to listmulti, unless it lists no languages at all; otherwise set a language it supports.
See your engines
Your organization’s engines are listed in every status, drafts included:draft and active engines, and every engine another organization has published.
Each engine model is one entry marked community: true, with the engine’s name as
provider and <engine>/<model> as model:
disabled, suspended or deleted is not in the providers
listing, because it cannot be used.
Try your engine before approval
You do not need approval to try your own engine. While it isdraft, your
organization can use it exactly as a call would: name it, send a key for it
(api_key_ref), and place a call or open a WebSocket session. Nobody else can
use it until it is approved and public.
Check your endpoint against the wire protocol first, then try it
end to end:
engine_not_found, model_not_found, api_key_missing, api_key_unavailable,
engine_unavailable). Telnyx does not publish network-level details of a failed
connection to your endpoint.
Update or delete an engine
PUT and PATCH on /stt_integrations/{id} change only the fields you send. models
is replaced as a whole: send every model you want to keep, with its languages.
Changing websocket_url, a supported_* field, models (including
any model’s languages), default_model, or making an engine public invalidates an
existing approval (see the note under Status lifecycle).
DELETE on /stt_integrations/{id} removes the engine from every listing and
lookup, and it can no longer serve traffic. Its name stays reserved for your
organization: no other organization can register it, and you can register it
again yourself later. An assistant or call still configured with the engine’s
name cannot use it until an engine with that name exists again.
Private or public
visibility decides who can use an engine. Engine names are unique across
Telnyx, so a name always means one engine, whoever sends it.
A
public engine is what makes your engine part of the marketplace: once it is
active it is listed for every organization, and calls from other organizations
reach your websocket_url, in the same wire protocol as your own traffic. Every
caller authenticates with a key of their own, which your engine issued to them:
Telnyx stores no key for your engine, and sends the caller’s key to it as described
under Authentication. Making the engine private, or disabling or
deleting it, stops other organizations from using it from then on, and calls that
name it stop transcribing with it.
Review and approval
An engine you makepublic goes through review before other organizations can
use it. This is by design: a community engine runs on infrastructure its publisher
operates and receives other organizations’ audio, so Telnyx reviews it before
allowing it to serve other people’s traffic. Review is
manual; Telnyx does not run an automated check against your engine. A private
engine is yours alone, so you can use it while it is still draft.
Submit for review and approval
When your engine works, it needs approval before it can serve other organizations. To request a review, email Telnyx support at [email protected] with your engine ID. You can check the status any time:status: active and review_status: approved — your engine is
usable by other organizations when both are set.
Status lifecycle
Updating
websocket_url or other sensitive fields invalidates an existing
approval — the engine reverts to draft and must be re-reviewed. This is
intentional: a URL change means a different endpoint, which needs a new
review.Suspension
Telnyx does not run health checks against your engine, and does not suspend it automatically. It can suspend an engine administratively, for example after an abuse report or an SLA breach (status: suspended). A suspended engine cannot
serve traffic and the owner cannot re-enable it: contact the Telnyx platform team,
who can reinstate it. Monitor your own endpoint: a call that cannot reach your engine
ends its transcription with engine_unavailable. contact_email is stored only so
the platform team can reach you.
Wire protocol
Your WebSocket server receives a connect request with query parameters identifying the session’s negotiated settings:model is the model the caller selected, or your default_model when the caller
names none. It is the model only — never the engine name.
Frames your engine sends to Telnyx
Ready
Sent once on connection, before any audio arrives. Confirms the engine is
ready to receive audio.
provider, model, language, encoding, and sample_rate fields
are informational — Telnyx uses its own negotiated values, not the engine’s
self-reported ones, to prevent misreporting.
Transcript
Sent for each transcribed utterance. is_final: true marks the end of a
turn; is_final: false marks an interim (in-progress) result.
Transcript after the previous turn closed and ends with the one that has
is_final: true. Your engine only sends Transcript frames; it does not send any
turn events. words, confidence, start_time
and end_time are optional.
errors
Sent when the engine encounters an error:
Frames Telnyx sends to your engine
Binary audio
Audio in the session’sencoding at its sample_rate (both in the connect query),
sent as WebSocket binary frames:
- Calls and AI Assistants (Call Control, TeXML, AI Assistant conversations): always
linear32(32-bit float PCM) at 16 kHz. This is whysupported_encodingsmust includelinear32andsupported_sample_ratesmust include16000. - WebSocket streaming: the format and sample rate the client sends, unchanged, when
your engine declares both.
linear16is 16-bit signed little-endian PCM;mulawandalaware G.711;opus,amr_nbandspeexarrive as the client’s codec packets, for your engine to decode. Otherwise, if your engine declareslinear16, 8 kHzmulaw,alaworlinear16is decoded tolinear16first: at 8 kHz when your engine lists8000, at 16 kHz when it does not. Any other format or rate is refused before your engine is connected.
Finalize
Transcript with
is_final: true.
CloseStream
KeepAlive
CloseStream, to keep the connection alive. You receive none while audio
is arriving, even silent audio. Your engine should ignore it (or send nothing back —
a no-op is fine).
vad_silence (Telnyx extension)
Authentication
Your engine is called with a key the caller brought: the caller stores the key you issued to them as an Integration Secret in their organization and references it asapi_key_ref. Telnyx reads it when
their call starts and sends it as:
Authorization: Bearer <key>headerX-Telnyx-Signature: t=<timestamp>,v1=<hmac>header — an HMAC-SHA256 signature over<timestamp>.<stream_id>.<query_string>, binding the signature to this specific sessionX-Telnyx-Stream-Id: <stream_id>header — the session’s unique stream ID, used as part of the signed payload
X-Telnyx-Stream-Id header and the query string from the incoming WebSocket
request, recompute HMAC-SHA256(key, "<timestamp>.<stream_id>.<query_string>"),
hex-encode it in lowercase, and compare it to the v1 digest in the
X-Telnyx-Signature header. Reject if the timestamp is more than 300 seconds from
the current time (replay protection).
Every call has a key, so Authorization and X-Telnyx-Signature are always sent,
along with X-Telnyx-Stream-Id. Put how a caller gets a key in your engine’s
documentation_url.
TLS
Telnyx requires TLS 1.2 or 1.3 with a CA-verified, hostname-matched certificate when it connects to a community engine. Self-signed certificates are rejected. Use a tunnel (cloudflared, ngrok) or a real certificate (Let’s Encrypt, Cloudflare) for your engine’s public URL.Use an engine
Any engine you can use, your own or one another organization published, is selected by its name where a built-in vendor’s would go, with your own key for it: the key the engine’s publisher issued to you, stored as an Integration Secret and sent asapi_key_ref. To find published engines, list them with
GET /v2/stt_integrations/discoverable, or look for community: true in the
STT providers listing. The publisher’s documentation_url says
how to get a key.
For example, on an AI Assistant:
- The key belongs to the engine: switching to another engine needs that engine’s
key, and a
<Language>on<ConversationRelay>or a conversation flow node that names another engine needs its own key. - An AI Assistant on a community engine takes no
fallback_models,challenger,regionorsettings. - On the WebSocket,
sample_rateis required.input_formatandsample_ratemust be ones the engine declares, or 8 kHzmulaw,alaworlinear16for an engine that declareslinear16, which Telnyx decodes for it. - A name that matches no engine you can use fails when the call starts, with a clear “not found” error. A mistyped built-in vendor does the same.