curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.stateset.com/api/v1/reviews' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"body": "Two-person tent, green — replacement for damaged pole set.",
"customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rating": 1,
"title": "Replacement tent pole set",
"verified_purchase": true
}'
{
"body": "Two-person tent, green — replacement for damaged pole set.",
"created_at": "2026-08-31T14:22:05Z",
"customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"helpful_count": 1,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rating": 1,
"status": "pending",
"title": "Replacement tent pole set",
"verified_purchase": true
}
Create a review
Create a review
POST
/
api
/
v1
/
reviews
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.stateset.com/api/v1/reviews' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"body": "Two-person tent, green — replacement for damaged pole set.",
"customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rating": 1,
"title": "Replacement tent pole set",
"verified_purchase": true
}'
{
"body": "Two-person tent, green — replacement for damaged pole set.",
"created_at": "2026-08-31T14:22:05Z",
"customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"helpful_count": 1,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rating": 1,
"status": "pending",
"title": "Replacement tent pole set",
"verified_purchase": true
}
Confirm your deployment before running this request. This page describes an API contract;
a published reference does not establish hosted availability. Check the dated
host report and obtain your deployment URL and credentials.
Replace the example host if your provisioned service uses a different URL.
Request body
CreateReviewRequest
string,null
Review body text.
string (uuid)
required
Customer who wrote the review.
string (uuid)
required
Product being reviewed.
integer (int32)
required
Star rating (1-5). Minimum:
0.string,null
Review headline.
boolean,null
Whether the reviewer actually purchased the product.
Response
ReviewResponse
string
required
string (date-time)
required
string (uuid)
required
integer (int64)
required
string (uuid)
required
string (uuid)
required
integer (int32)
required
Minimum:
0.string
required
string
required
boolean
required
Status codes
| Code | Meaning |
|---|---|
201 | Review created |
400 | Invalid request |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.stateset.com/api/v1/reviews' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"body": "Two-person tent, green — replacement for damaged pole set.",
"customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rating": 1,
"title": "Replacement tent pole set",
"verified_purchase": true
}'
{
"body": "Two-person tent, green — replacement for damaged pole set.",
"created_at": "2026-08-31T14:22:05Z",
"customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"helpful_count": 1,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rating": 1,
"status": "pending",
"title": "Replacement tent pole set",
"verified_purchase": true
}
Last modified on September 21, 2026