Marketplace Chat
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/marketplace-chat/click/ |
Click |
| POST | /api/marketplace-chat/feedback/ |
Feedback |
| POST | /api/marketplace-chat/stream/ |
Stream |
Click
1 2 3 4 5 6 7 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
- Model Source:
AnonymousChatClickRequestRequest - API Source:
marketplace_chat_click
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
| Field | Type | Required | Description |
|---|---|---|---|
interaction_uuid |
string (uuid) | ✓ | UUID of the interaction this click belongs to. |
feedback_token |
string | ✓ | HMAC-bound bearer issued in the streaming m frame (same as /feedback/). |
offering_uuid |
string (uuid) | ✓ | UUID of the clicked offering. Must appear in the parent interaction's recommended set, else 400. |
200 - Click recorded.
400 - offering_uuid not in interaction's recommended set.
403 - Missing or forged feedback_token.
404 - Unknown interaction_uuid.
Feedback
1 2 3 4 5 6 7 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
- Model Source:
AnonymousChatFeedbackRequestRequest - API Source:
marketplace_chat_feedback
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
| Field | Type | Required | Description |
|---|---|---|---|
interaction_uuid |
string (uuid) | ✓ | UUID of the interaction the feedback is about (from the streaming m frame). |
feedback_token |
string | ✓ | HMAC-bound bearer issued in the streaming m frame. |
score |
integer | ✓ | +1 thumbs-up or -1 thumbs-down (0 not accepted). |
comment |
string | Optional free-text comment. Constraints: default: `` |
|
category |
any | Required when score == -1; rejected when score == 1. Constraints: default: `` |
200 - Feedback recorded.
400 - Invalid body shape, or comment was rejected by injection guard.
403 - Missing or forged feedback_token.
404 - Unknown interaction_uuid.
Stream
Anonymous chat streaming endpoint. Returns NDJSON with one assistant content block per line. Final m frame carries input/output token counts.
1 2 3 4 5 6 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
AnonymousChatStreamRequestRequest - API Source:
marketplace_chat_stream
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
| Field | Type | Required | Description |
|---|---|---|---|
input |
string | ✓ | User input text for the anonymous marketplace assistant. |
session_id |
string | ✓ | Client-generated session identifier. Bound to the originating IP on first use; subsequent requests from a different IP get 403. |
200 - NDJSON stream of assistant content blocks.
400 - Input rejected by injection/PII guard.
403 - Session bound to different IP, or IP blocked.
409 - Per-IP daily request or token cap exhausted, or the anonymous chat API URL/token is not configured. Carries Retry-After header + structured rate-limit body for the per-IP variants.
424 - Anonymous chat is disabled (master switch off or public marketplace browsing disabled).
429 - Site-wide per-minute burst cap exhausted. Retry-After header + structured rate-limit body.
503 - Site-wide daily token or request budget exhausted. Retry-After header + structured rate-limit body.