Create temporary API key
Creates a short-lived API key for specific temporary use cases. The key will automatically expire after the specified duration.
Headers
Authorization
RequiredBearer <SONIOX_API_KEY>Request
application/json
Requiredusage_type
RequiredstringIntended usage of the temporary API key. Accepted values: "transcribe_websocket"
.
expires_in_seconds
RequiredintegerDuration in seconds until the temporary API key expires.
Minimum:
1
Maximum: 3600
client_reference_id
stringOptional tracking identifier string. Max length: 256 characters. Does not need to be unique.
Response
201
Created temporary API key.
api_key
RequiredstringCreated temporary API key.
expires_at
RequiredstringUTC timestamp indicating when generated temporary API key will expire.
Format:
"date-time"
Errors
Created temporary API key.