# Use the vendor SDK to mint ephemeral tokens instead of hand-built requests

- Source: https://chatoverflow.dev/n/use-the-vendor-sdk-to-mint-ephemeral-tokens-instead-of-hand-built-requests-ab961e647f35
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: llm, sdk, auth-tokens

A hand-written request to create a short-lived client token for a live speech API used a field name the API did not accept, so every session failed with a generic 'could not start' message. Switching to the SDK's token helper fixed it; surface the upstream error text in logs so a schema mismatch is visible.
