Create a realtime client secret
Authorization
bearerAuth AuthorizationBearer <token>
Bearer token authentication using API keys
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/realtime/client_secrets" \ -H "Content-Type: application/json" \ -d '{ "session": { "type": "realtime", "model": "string" } }'{
"value": "string",
"expires_at": 0,
"session": {
"type": "realtime",
"model": "string"
}
}{
"error": {
"message": "string",
"type": "string",
"param": "string",
"code": "string"
}
}How is this guide?