/chatkit/sessionsCreate a ChatKit session
Creates a ChatKit session powered by a specified workflow. Supply workflow.id and user to associate the session with a workflow and end user, and use the optional configuration objects to override expiration, rate limits, tracing, and ChatKit features. The response provides an ephemeral client secret and the resolved session configuration.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
ChatKit session creation parameters. workflow and user are required; optional settings override session expiration, rate limits, and ChatKit runtime features.
workflow and user are required, and workflow.id must be provided. expires_after requires both anchor and seconds, with anchor set to created_at and seconds between 1 and 600; state_variables supports at most 64 properties and max_requests_per_1_minute must be at least 1.