Skip to main content

Create Testimonial

Add a testimonial to a testimonial wall. type and name are required, content is required for a text testimonial, and video_url for a video testimonial. The new testimonial is approved unless you send status: "pending", and it is placed after the highest order. Its id is assigned now. source is api. On a published testimonial wall, the testimonial is shown after you publish. See Testimonials and Approval.

Request​

POST /walls/{id}/testimonials

Path Parameters​

ParameterTypeRequiredDescription
idstringYesTestimonial wall UUID. See Identifiers.

Request Body​

ParameterTypeRequiredDescription
draft_versionintegerYesCurrent counter from Get Testimonial Wall. Minimum 1. Missing, not an integer, or below 1 is 422. A value that is not current is 409.
typestringYestext or video. Cannot change later.
namestringYesReviewer name, 1–255 characters, not only spaces
statusstringNopending or approved. Omit for approved.
is_hiddenbooleanNoHide from the testimonial wall. Omit for false.
positionstring|nullNoReviewer position or company, at most 255 characters
contentstringFor textTestimonial text. Required and not empty for text. Omit on video for "".
website_urlstring|nullNoReviewer website, at most 255 characters
avatar_urlstring|nullNoReviewer avatar address, at most 255 characters
ratinginteger|nullNo1 to 5
image_urlsarrayNoImage addresses, at most 10, each at most 2048 characters. Replaces the list.
gif_urlsarrayNoGIF addresses, at most 10, each at most 2048 characters. Replaces the list.
video_urlstring|nullFor videoVideo address, at most 255 characters. Required for video.
author_emailstring|nullNoReviewer email address, at most 255 characters. No confirmation email is sent.
dated_atstring|nullNoDate shown on the card, YYYY-MM-DDTHH:MM:SS(.sss)Z (seconds required; fractional seconds optional). null shows created_at.

is_confirmed, confirmed_at, source, order, created_at, and updated_at are read-only.

Example Request​

curl -X POST "https://app.easy.tools/api/v1/walls/4a0c8e55-1d69-4b72-9f30-7c2e6b1a8d94/testimonials" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"draft_version": 3,
"type": "text",
"name": "Sarah Miller",
"position": "Marketing lead, Northwind",
"content": "Our conversion rate went up after the first module.",
"rating": 5
}'

Response​

Success Response (201)​

{
"data": {
"id": "1d6a9e37-2b84-4c50-9f13-8e7a5c2d0b46",
"status": "approved",
"is_hidden": false,
"type": "text",
"name": "Sarah Miller",
"position": "Marketing lead, Northwind",
"content": "Our conversion rate went up after the first module.",
"website_url": null,
"avatar_url": null,
"rating": 5,
"image_urls": [],
"gif_urls": [],
"video_url": null,
"author_email": null,
"is_confirmed": false,
"confirmed_at": null,
"dated_at": null,
"source": "api",
"order": 2,
"created_at": "2026-01-20T10:00:00.000Z",
"updated_at": "2026-01-20T10:00:00.000Z",
"preview_url": "https://app.easy.tools/walls/4a0c8e55-1d69-4b72-9f30-7c2e6b1a8d94/preview?expires=...&signature=...",
"draft_version": 4,
"draft_updated_at": "2026-01-20T10:00:00.000Z"
}
}

Response Fields​

See Testimonial Object. preview_url on data is minted for this response. draft_version and draft_updated_at are on data as well.

Error Responses​

Not Found Error (404)​

See Identifiers.

{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Resource not found"
}
}

Conflict Error (409)​

draft_version is not the current counter. Read the testimonial wall and retry with that value. Nothing is saved.

{
"error": {
"code": "CONFLICT",
"message": "The draft was edited elsewhere. GET the draft and retry with the current draft_version."
}
}

Validation Error (422 Unprocessable Entity)​

A missing type or name, a text testimonial without content, a video testimonial without video_url, or a field outside its limits. Nothing is saved.

{
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid",
"details": {
"content": ["content must be a non-empty string when type is text"]
}
}
}

Authentication, permission, and rate-limit errors are described in Authorization.