Authorization: Bearer ********************curl --location '/chatkit/sessions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"workflow": {
"id": "string",
"version": "string",
"state_variables": {
"property1": "string",
"property2": "string"
},
"tracing": {
"enabled": true
}
},
"user": "string",
"expires_after": {
"anchor": "created_at",
"seconds": 1
},
"rate_limits": {
"max_requests_per_1_minute": 1
},
"chatkit_configuration": {
"automatic_thread_titling": {
"enabled": true
},
"file_upload": {
"enabled": true,
"max_file_size": 1,
"max_files": 1
},
"history": {
"enabled": true,
"recent_threads": 1
}
}
}'{
"id": "cksess_123",
"object": "chatkit.session",
"client_secret": "ek_token_123",
"expires_at": 1712349876,
"workflow": {
"id": "workflow_alpha",
"version": "2024-10-01T00:00:00.000Z"
},
"user": "user_789",
"rate_limits": {
"max_requests_per_1_minute": 60
},
"max_requests_per_1_minute": 60,
"status": "cancelled",
"chatkit_configuration": {
"automatic_thread_titling": {
"enabled": true
},
"file_upload": {
"enabled": true,
"max_file_size": 16,
"max_files": 20
},
"history": {
"enabled": true,
"recent_threads": 10
}
}
}