Home / Servers / OpenAI API / create_realtime_client_secret

Create client secret

An MCP tool from the OpenAI API server, hosted on mcp.hjlabs.in.

Create client secret Create a Realtime client secret with an associated 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… [POST /realtime/client_secrets]

Name on the gateway: openai_api__create_realtime_client_secret · may change things.

Parameters

NameTypeDescription
expires_afterobjectConfiguration for the client secret expiration. Expiration refers to the time…
sessionobjectSession configuration to use for the client secret. Choose either a realtime…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "openai_api__create_realtime_client_secret",
  "arguments": {}
}

Or connect the OpenAI API server directly, which lists 371 tools including this one:

Run in your terminal
claude mcp add --transport http hj-openai-api https://mcp.hjlabs.in/mcp/openai-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create client secret tool with expires_after set to ….

More from OpenAI API