> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Submit a public review

**Published**: 2026-11-30
**Category**: Forms & Reviews

## `POST /reviews`

**Submit a public review**

Submits a review. It enters the moderation queue and appears in
`GET /reviews` once approved; the response `status` tells you whether
the site approved it at once.

Read `GET /reviews/settings` first for the required email and the
custom fields. `locale` files the review under a language (default:
the site's); a multi-language site returns 400 for a locale it does
not enable. An invalid `productId` returns 422.

With honeypot on, send an empty `_hp` and `_ts`, the display time in
Unix milliseconds. A v3 reCAPTCHA token needs action `review_submit`.

Returns 403 `AUTHZ_PERMISSION_DENIED` when submissions are closed, and
400 `VALIDATION_FIELD_REQUIRED` when a required email is missing.

### Request Body

Content-Type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `authorName` | string | Yes | Required. Display name of the author. 2-100 characters |
| `authorEmail` | string | No | Author email address. Valid email address |
| `authorPhotoUrl` | string | No | Author photo URL. Valid URL |
| `authorCompany` | string | No | Author company name. Max 100 characters |
| `authorPosition` | string | No | Author job title. Max 100 characters |
| `authorCity` | string | No | Author city. Max 100 characters |
| `rating` | integer (1 to 5) | Yes | Required |
| `content` | string | Yes | Required. Text content. 10-5000 characters |
| `title` | string | No | Display title. Max 200 characters |
| `productName` | string | No | Associated product name. Max 200 characters |
| `productSku` | string | No | Associated product SKU. Max 100 characters |
| `productId` | string \| null | No | The `prod_` id or slug of a published product to link the review to. Any other value returns 422. |
| `customFields` | object | No | Free-form values. Counting the object itself, at most 3 levels deep; up to 50 keys per object, 50 items per array, 200-character keys and 5000-character strings |
| `locale` | string | No | BCP 47 locale code (e.g. "en", "fr") |
| `recaptchaToken` | string | No | Verification token, required when the site uses CAPTCHA. A v3 token needs this operation's action. |
| `_hp` | string | No | Spam-trap field that must remain empty when the site uses honeypot protection. |
| `_ts` | integer | No | Form-load Unix timestamp in milliseconds when the site uses honeypot protection. |


### Responses

| Status | Description |
| --- | --- |
| `201` | Successful response |
| `400` | Spam protection failed: the `_ts` timestamp is too old, or the verification token is missing or invalid. |
| `402` | The site subscription does not currently permit this operation |
| `422` | Validation error |
| `429` | Rate limit exceeded, or the `_ts` timestamp is missing, malformed or too recent. |


> **Notes:** Limit: 10 per 15 minutes per site and client. A bad `_ts` returns 429
> `RATE_SUBMISSION_TOO_FAST`, or 400 `RATE_SUBMISSION_EXPIRED` if expired.

### SDK

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({ siteId: process.env.LYNKOW_SITE_ID! })

const result = await lynkow.reviews.submit({
  authorName: 'Alice',
  rating: 5,
  content: 'Excellent service!'
})

if (result.status === 'pending') {
  // Show "your review is awaiting moderation"
} else {
  // result.status === 'approved': it is already live
}
console.log(result.id) // UUID of the new review
```

### Examples

```curl
# Set FORM_DISPLAYED_AT_MS to the integer timestamp captured at form display.
# Send after the user completes the form, within the site's timing window.
curl -X POST "https://api.lynkow.com/storefront/{siteId}/reviews" \
  -H "Content-Type: application/json" \
  -d "{ \"authorName\": \"Anna Cooper\", \"rating\": 5, \"title\": \"Great\", \"content\": \"Worked perfectly.\", \"_hp\": \"\", \"_ts\": ${FORM_DISPLAYED_AT_MS:?Set the form display timestamp} }"
```

```javascript
const formDisplayedAt = Date.now() // Capture when displaying the form.

// Call when the user submits, within the site's timing window.
async function submitReview() {
  return fetch(`https://api.lynkow.com/storefront/${siteId}/reviews`, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      authorName: 'Anna Cooper',
      rating: 5,
      title: 'Great',
      content: 'Worked perfectly.',
      _hp: '',
      _ts: formDisplayedAt,
    }),
  })
}
```

### Response Example

```json
{
  "data": {
    "message": "Thank you! Your review will be published after moderation.",
    "status": "pending",
    "id": "3f6c2a8e-5b1d-4e7a-9c0f-8d2b1a6e4c37"
  }
}
```

---