Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

An access token from the OAuth flow (eo_at_...). It lasts one hour; refresh it with the refresh token. See Authentication.

Headers

Idempotency-Key
string

A unique key (up to 255 printable ASCII characters). The same key from your app within 24 hours answers the first result again, with Idempotent-Replayed: true, instead of creating twice.

Maximum string length: 255

Body

application/json

No field takes null.

product_id
string<uuid>
required

A live product of this store. It cannot change later.

rating
integer
required

A whole number of stars.

Required range: 1 <= x <= 5
user_name
string
required

One line, trimmed, no invisible characters and no <.

Required string length: 1 - 255
comment
string
default:""

Trimmed. Line breaks and tabs are kept; < and invisible characters are refused.

Maximum string length: 5000
image
string
default:""

An https URL with a host, no user name or password, no # fragment, and none of ", ', <, >, `, \ or spaces. "" for none.

Maximum string length: 2048
is_accepted
boolean
default:false

true shows the review on the product page.

Response

The review created. Location is its path.

review
object
required