/chatkit/sessionsCreate a ChatKit session
Creates a ChatKit session powered by a specified workflow. Supply workflow with its required id and a non-empty user identifier; optionally configure expiration, rate limits, tracing, and ChatKit features. The response includes the session's client secret, expiration time, and resolved configuration.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
ChatKit session configuration, including the required workflow and end-user identifier, with optional expiration, rate limit, and runtime feature overrides.
A 400 is returned when the request is invalid or the required ChatKit beta header is missing or invalid. A 404 is returned when the workflow or requested workflow version is not found or accessible. A 429 is returned when the request rate limit is exceeded. workflow and user are required, and workflow.id is required; user must contain at least one character. If provided, expires_after requires anchor to be created_at and seconds to be between 1 and 600; rate_limits.max_requests_per_1_minute must be at least 1.