Skip to main content
POST
Creates a short-lived ek_ key (OpenAI calls it a client secret). Call it from your server with your sk_ key, hand only the ek_ value to the browser, and the browser connects to wss://api.60db.ai/v1/realtime with it. Same request and response shape as OpenAI’s POST /v1/realtime/client_secrets, so openai.realtime.clientSecrets.create() works unchanged with baseURL: "https://api.60db.ai/v1".
An ek_ key works only for Realtime sessions — every other 60db endpoint rejects it. It is reusable until it expires, and it stops working at once if the sk_ key that created it is deleted or disabled.

Request

Headers

string
required
Bearer sk_... — your secret API key. Never send this from a browser.
string
required
application/json

Body

object
How long the key lives.
object
A Realtime session config (same shape as session.update): model, instructions, audio, tools, tool_choice, plus the 60db extensions. It is validated now and applied when the browser connects, so the browser cannot change what you set here before the session starts.

Response

string
The ephemeral key, ek_.... Pass it to the browser.
integer
Expiry time, Unix seconds.
object
The normalized session config the key carries (model resolved, defaults filled in).

Errors

Errors use the OpenAI envelope { "error": { "message", "type", "code", "param" } }.