ChatKit
Models
ChatKitWorkflow object { id, state_variables, tracing, version } Workflow metadata and state returned for the session.
Workflow metadata and state returned for the session.
ChatKitSessions
Cancel a ChatKit session
Create a ChatKit session
ChatKitThreads
Delete a ChatKit thread
List ChatKit threads
List ChatKit thread items
Retrieve a ChatKit thread
Models
ChatSession object { id, chatkit_configuration, client_secret, 7 more } Represents a ChatKit session and its resolved configuration.
Represents a ChatKit session and its resolved configuration.
Resolved ChatKit feature configuration for the session.
Type discriminator that is always chatkit.session.
ChatSessionChatKitConfigurationParam object { automatic_thread_titling, file_upload, history } Optional per-session configuration settings for ChatKit behavior.
Optional per-session configuration settings for ChatKit behavior.
automatic_thread_titling: optional object { enabled } Configuration for automatic thread titling. When omitted, automatic thread titling is enabled by default.
Configuration for automatic thread titling. When omitted, automatic thread titling is enabled by default.
file_upload: optional object { enabled, max_file_size, max_files } Configuration for upload enablement and limits. When omitted, uploads are disabled by default (max_files 10, max_file_size 512 MB).
Configuration for upload enablement and limits. When omitted, uploads are disabled by default (max_files 10, max_file_size 512 MB).
ChatSessionWorkflowParam object { id, state_variables, tracing, version } Workflow reference and overrides applied to the chat session.
Workflow reference and overrides applied to the chat session.
state_variables: optional map[string or number or boolean or number]State variables forwarded to the workflow. Keys may be up to 64 characters, values must be primitive types, and the map defaults to an empty object.
State variables forwarded to the workflow. Keys may be up to 64 characters, values must be primitive types, and the map defaults to an empty object.
ChatKitResponseOutputText object { annotations, text, type } Assistant response text accompanied by optional annotations.
Assistant response text accompanied by optional annotations.
ChatKitThread object { id, created_at, object, 3 more } Represents a ChatKit thread and its current status.
Represents a ChatKit thread and its current status.
Type discriminator that is always chatkit.thread.
status: Active { type } or Locked { reason, type } or Closed { reason, type } Current status for the thread. Defaults to active for newly created threads.
Current status for the thread. Defaults to active for newly created threads.
ChatKitThreadAssistantMessageItem object { id, content, created_at, 3 more } Assistant-authored message within a thread.
Assistant-authored message within a thread.
Ordered assistant response segments.
Ordered assistant response segments.
ChatKitThreadItemList object { data, first_id, has_more, 2 more } A paginated list of thread items rendered for the ChatKit API.
A paginated list of thread items rendered for the ChatKit API.
data: array of ChatKitThreadUserMessageItem { id, attachments, content, 5 more } or ChatKitThreadAssistantMessageItem { id, content, created_at, 3 more } or ChatKitWidgetItem { id, created_at, object, 3 more } or 3 moreA list of items
A list of items
ChatKitThreadUserMessageItem object { id, attachments, content, 5 more } User-authored messages within a thread.
User-authored messages within a thread.
content: array of InputText { text, type } or QuotedText { text, type } Ordered content elements supplied by the user.
Ordered content elements supplied by the user.
inference_options: object { model, tool_choice } or nullInference overrides applied to the message. Defaults to null when unset.
Inference overrides applied to the message. Defaults to null when unset.
ChatKitThreadAssistantMessageItem object { id, content, created_at, 3 more } Assistant-authored message within a thread.
Assistant-authored message within a thread.
Ordered assistant response segments.
Ordered assistant response segments.
ChatKitWidgetItem object { id, created_at, object, 3 more } Thread item that renders a widget payload.
Thread item that renders a widget payload.
ChatKitClientToolCall object { id, arguments, call_id, 7 more } Record of a client side tool invocation initiated by the assistant.
Record of a client side tool invocation initiated by the assistant.
Type discriminator that is always chatkit.thread_item.
JSON-encoded output captured from the tool. Defaults to null while execution is in progress.
ChatKitTask object { id, created_at, heading, 5 more } Task emitted by the workflow to show progress and status updates.
Task emitted by the workflow to show progress and status updates.
ChatKitTaskGroup object { id, created_at, object, 3 more } Collection of workflow tasks grouped together in the thread.
Collection of workflow tasks grouped together in the thread.
ChatKitThreadUserMessageItem object { id, attachments, content, 5 more } User-authored messages within a thread.
User-authored messages within a thread.
content: array of InputText { text, type } or QuotedText { text, type } Ordered content elements supplied by the user.
Ordered content elements supplied by the user.
inference_options: object { model, tool_choice } or nullInference overrides applied to the message. Defaults to null when unset.
Inference overrides applied to the message. Defaults to null when unset.