Skip to main content
POST
/
v1
/
feedback
Feedback
curl --request POST \
  --url https://api.compose.market/v1/feedback \
  --header 'Content-Type: application/json' \
  --data '
{
  "targetType": "<string>",
  "targetId": "<string>",
  "rating": 123,
  "comment": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.compose.market/llms.txt

Use this file to discover all available pages before exploring further.

Feedback can be anonymous, tied to a wallet session header, or tied to a Compose Key when the bearer token is valid.

Routes

MethodPathDescription
POST/v1/feedbackSubmit feedback.
GET/v1/feedbackList feedback for one target.
GET/v1/feedback/summaryReturn aggregate feedback for one target.

Request body

targetType
string
required
Feedback target type. Must match one of the target types accepted by the API validator.
targetId
string
required
Target identifier.
rating
number
Numeric rating when the selected target accepts ratings.
comment
string
Free-form feedback text.

Query parameters

targetType
string
required
Required by GET /v1/feedback and GET /v1/feedback/summary.
targetId
string
required
Required by GET /v1/feedback and GET /v1/feedback/summary.
limit
number
Maximum feedback records to return. Clamped to 1..100; default is 50.
recentLimit
number
Maximum recent records included in the summary. Clamped to 1..100; default is 10.

Headers

Authorization
string
Optional Bearer compose-...; valid keys attach the reviewer wallet to the feedback.
x-session-user-address
string
Optional wallet address fallback when no Compose Key is present.
x-chain-id
number
Optional chain ID paired with x-session-user-address.