/realtime/translations/client_secretsCreate translation client secret
Create a Realtime translation client secret with an associated translation session configuration.
Client secrets are short-lived tokens that can be passed to a client app, such as a web frontend or mobile client, which grants access to the Realtime Translation API without leaking your main API key. You can configure a custom TTL for each client secret.
Returns the created client secret and the effective translation session object.
The client secret is a string that looks like ek_1234.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Create a client secret with the given translation session configuration.
A 400 is returned: Invalid session configuration or model. A 404 is returned: The requested model was not found or is unavailable to this caller. A 500 is returned: The requested model's availability could not be determined.