Home / Servers / OpenAI API / create_chat_session_method

Create a ChatKit session

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

Create a ChatKit session [POST /chatkit/sessions]

Name on the gateway: openai_api__create_chat_session_method · may change things.

Parameters

NameTypeDescription
workflow requiredobjectWorkflow that powers the session.
user requiredstringA free-form string that identifies your end user; ensures this Session can…
expires_afterobjectOptional override for session expiration timing in seconds from creation.…
rate_limitsobjectOptional override for per-minute request limits. When omitted, defaults to 10.
chatkit_configurationobjectOptional overrides for ChatKit runtime configuration features

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_chat_session_method",
  "arguments": {
    "workflow": "…",
    "user": "…"
  }
}

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 a chatkit session tool with workflow set to ….

More from OpenAI API