When it fires
POST /v1/market-conversations/{conversationId}/messages when the message breaks Kash’s market content rules, the same rules the Kash app applies before a message reaches the market assistant. Nothing was sent, nothing was charged and nothing counts against your daily limits. It does count toward the 20-a-minute creation limit, which is checked before the message is read.
Example problem body:
Why it happens
The body’sreason member names the rule, and detail explains it in words you can show the user:
personal_harm: a market about violence against, or the death or self-harm of, a person.doxxing: a market that needs a private person’s address, phone number or other identifying details.insider_information: the user says they hold non-public information about the outcome.outcome_manipulation: the user says they will decide or rig the outcome themselves.profanity: the message contains profanity.
How to fix
- Show the user the
detailand ask them to rephrase. Sending the same text again is refused again. - Do not retry automatically: the refusal depends only on the text.
- A retry with the same
Idempotency-Keyreturns the same refusal, withIdempotent-Replay: true. - The TypeScript SDK raises this as
KashValidationError;isMarketContentRefusal(err)narrows it and typeserr.extensions.reason.