Skip to main content
The audio watermark detection API returns errors in the standard Telnyx format. The HTTP endpoint and the WebSocket handshake answer with an errors array. An open WebSocket session sends JSON error frames and closes with a WebSocket close code.

HTTP errors

POST /v2/audio_watermark_detections and the upgrade request of the WebSocket endpoint return errors in this shape:
code and title are stable. detail is a human-readable explanation; do not parse it. source.pointer names the request field when the error is about one.

Error codes

The WebSocket upgrade request can fail with 401, 403, or 422 (37005) before the connection opens.

WebSocket errors

During a session, the server sends errors as JSON text frames:
code is a stable identifier. message is a human-readable description; do not parse it.

WebSocket error codes

Close codes

The close reason is the error code. Before every close that the server makes with a code other than 1000, it sends the matching error frame. A connection that closes with any other code, for example 1001 or 1012 while the server restarts, or a network failure, ends without a summary message. Reconnect with exponential backoff and send the audio again: the service keeps no state between connections.