class

OpenAI::RealtimeSessionCreateResponseGAClientSecret

Inherits JSON::Serializable < Reference < Object

Ephemeral key returned by the API.

Constructors

new(value : String = "", expires_at : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

expires_at

Timestamp for when the token expires. Currently, all tokens expire after one minute.

Source
expires_at=(expires_at : Int64)

Timestamp for when the token expires. Currently, all tokens expire after one minute.

Source
value

Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.

Source
value=(value : String)

Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.

Source