Create ChatKit session
$ openai beta:chatkit:sessions create
POST/chatkit/sessions
Create a ChatKit session.
Parameters
--user: string
A free-form string that identifies your end user; ensures this Session can access other objects that have the same user scope.
--chatkit-configuration: optional object { automatic_thread_titling, file_upload, history }
Optional overrides for ChatKit runtime configuration features
Create ChatKit session
openai beta:chatkit:sessions create \
--api-key 'My API Key' \
--user x \
--workflow '{id: id}'{
"client_secret": "chatkit_token_123",
"expires_at": 1735689600,
"workflow": {
"id": "workflow_alpha",
"version": "2024-10-01"
},
"scope": {
"project": "alpha",
"environment": "staging"
},
"max_requests_per_1_minute": 60,
"max_requests_per_session": 500,
"status": "active"
}
Returns Examples
{
"client_secret": "chatkit_token_123",
"expires_at": 1735689600,
"workflow": {
"id": "workflow_alpha",
"version": "2024-10-01"
},
"scope": {
"project": "alpha",
"environment": "staging"
},
"max_requests_per_1_minute": 60,
"max_requests_per_session": 500,
"status": "active"
}