Send an event

Send one event to the chat and receive a streaming JSON array of events in response.

The response stream includes the same user event that the client sent. If the UI already rendered that message optimistically, ignore the streamed copy with the same id to avoid showing the shopper's message twice.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
string
required

Generated by the client (UUID v7). A chat does not have to exist: its first turn on send-event creates it under the project and persona (agent) this request addresses. A chatId that already exists under another project or persona answers 404 with { "code": "CHAT_SCOPE_MISMATCH" }; the client should then start over with a new chatId. history answers the same body for a chat that has not been created yet, so a client regenerates its chatId on the code from send-event only.

Body Params
event
required
string
required
string | null
number | null
string | null
string | null
boolean | null
string | null
enum
Allowed:
agentPayload
object | null
Responses

400

Bad Request — invalid event format or missing required field.

404

Not Found — unknown agentId or chatId.

429

Too Many Requests — rate limit exceeded. Back off before retrying.

500

Internal Server Error — backend error.

Language
Credentials
Bearer
API token
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json

© Bloomreach, Inc. All rights reserved.