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
| Name | Type | Description |
|---|---|---|
workflow required | object | Workflow that powers the session. |
user required | string | A free-form string that identifies your end user; ensures this Session can… |
expires_after | object | Optional override for session expiration timing in seconds from creation.… |
rate_limits | object | Optional override for per-minute request limits. When omitted, defaults to 10. |
chatkit_configuration | object | Optional 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:
{
"name": "openai_api__create_chat_session_method",
"arguments": {
"workflow": "…",
"user": "…"
}
}Or connect the OpenAI API server directly, which lists 371 tools including this one:
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 ….