Base URL
v1.
Authentication
Send a secret key as a bearer token:Authorization: Bearer flowyte_sk_…. See
Authentication for keys, scopes, and the publishable-key path
for the chat widget.
Response envelope
Successful responses are wrapped in anApiResponse<T> envelope:
PaginatedResponse<T> with cursor pagination — pass the returned cursor
to fetch the next page rather than page numbers.
Errors
Errors use RFC 9457 problem+json (application/problem+json):
type / status pair as the recovery contract.
Streaming (SSE)
Streaming endpoints (simulate, assist, probe) returntext/event-stream. Each frame is
event:<type>\ndata:<json>\n\n; the stream terminates with event: done (or event: error).
Consume them with fetch() streaming so your Authorization header attaches.