API reference Merchants
One streamed model turn for the merchant console's agents
POST/v1/merchants/{merchantId}/assistant
Streams the Messages API events as newline-delimited JSON (the Anthropic SDK's MessageStream.toReadableStream). Each merchant has a daily budget; once it is spent the turn runs on claude-haiku-5-5, named in Keelson-Model.
Path parameters
merchantIdstringRequired
Headers
Content-Typeapplication/jsonRequiredIdempotency-KeystringRequired- 1 to 255 characters. A retry with the same key returns the first answer.
Request body
application/json
modelstring- One of
claude-opus-5-5claude-haiku-5-5 systemstringRequiredmessagesarray of objectRequiredtoolsarray of objecttool_choicestring- One of
autonone
Responses
- 200The turn's events
- 401No session
- 403The session is not this merchant's
- 429Too many turns, or today's budget is spent
- 502The model provider refused the turn
- 503No model provider configured