SpeechineerDocs

Reference

Runtime errors

Codes are stable: a failed call reports one, and a session that stops unexpectedly delivers one to onError as error.code (also in the session state's error). Branch on the code, never on the message text; error.recoverable tells you whether offering a retry makes sense.

Authentication

Fix the auth token or key configuration; do not retry unchanged.

CodeMeaning
AUTH_REQUIREDNo auth token was presented.
API_KEY_INVALIDThe API key in the token is unknown or inactive.
AUTH_SIGNATURE_REQUIREDThe workspace or key requires a PS256-signed token; alg=none was presented.
AUTH_MODE_MISMATCHThe token's alg does not match the API key's auth mode (Signed keys accept only PS256; Unsigned keys only alg=none).
AUTH_ENVELOPE_INVALIDThe token is malformed, or its claims are missing or wrong.
AUTH_ENVELOPE_REPLAYEDThis token was already used (replayed `jti`).
AUTH_ENVELOPE_LIFETIME_EXCEEDEDThe token is valid for longer than the maximum allowed lifetime.
ACCOUNT_REQUIREDThe token does not name an account.
SIGNING_KEY_NOT_FOUNDThe token's key id matches no active signing key in the workspace.

Quotas and billing

Surface to the user or your operations; retrying will not help until limits change.

CodeMeaning
API_KEY_QUOTA_EXCEEDEDThe API key's units limit is reached.
WORKSPACE_QUOTA_EXCEEDEDThe workspace units limit is reached.
ACCOUNT_QUOTA_EXCEEDEDThe account's units limit is reached.
FORM_QUOTA_EXCEEDEDThe form's units limit is reached.
PLAN_ALLOWANCE_EXHAUSTEDIncluded units are used up and no prepaid units remain.
OVERSPEND_LIMIT_REACHEDThe configured overspend cap is reached.
CONCURRENCY_LIMIT_REACHEDToo many workflows are running concurrently.

Form and workflow resolution

Check the form key, version, language, and workflow configuration.

CodeMeaning
FORM_NOT_FOUNDNo form with this key in the workspace.
FORM_VERSION_NOT_PUBLISHEDThe requested version is not published.
NO_PUBLISHED_VERSION_FOR_LANGUAGENo published version exists for the requested language.
FORM_KEY_PORTAL_OWNEDThis form is configured in Speechineer — use portal mode for it.
WORKFLOW_NOT_FOUNDThe requested workflow does not exist.
WORKFLOW_STANDALONE_MODE_UNSUPPORTEDThis workflow has no standalone mode.
SESSION_NOT_FOUNDThe workflow you tried to resume no longer exists.

Lifecycle

The component is deactivated or archived — resolve in the portal.

CodeMeaning
WORKSPACE_INACTIVEThe workspace is deactivated or archived.
CLIENT_INACTIVEThe owning organization is deactivated.
COMPONENT_ARCHIVEDA write was attempted on an archived component.

Connection close codes

A session that ends unexpectedly reports one of these; the SDK surfaces them through onError and resumes automatically where it can.

Close codeMeaning
4404The workflow was no longer available; the SDK restarts it.
4501Transcription or extraction failed.
4502A model integration failed.
4503Audio could not be processed.
4504Results could not be delivered.
4505The workflow stopped unexpectedly.