Skip to content

Add a testimonial

Status beta

Say "add a testimonial" and get a customer’s words on your page, shown with their name because they agreed to it.

Put a customer’s words where buyers decide. The quote shows only with the customer’s consent to display it.

Needs Put up a page

What you get

  • 1Review with the customer’s consent to show itReview
  • 1quote block on the pagePage

Your agent does

Review.create then Review.publish
You, to your agent

Add a testimonial.

Put this customer quote on the homepage.

Show what customers say about us.

# 1. Review.create
REVIEW=$(curl -X POST https://api.sb/leaseline.app/reviews \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rating":5,"body":"Leaseline caught three renewals we would have missed in the first month.","displayConsent":true}' | jq -r '.review["$id"] | split("/") | last')

# 2. Review.publish
curl -X POST https://api.sb/leaseline.app/reviews/$REVIEW/publish \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
import { $ } from 'startup-builder'

const review = await $.Review.create({ rating: 5, body: 'Leaseline caught three renewals we would have missed in the first month.', displayConsent: true })
await $.Review.publish({ review: review.$id })
REVIEW=$(npx startup-builder do Review.create --json '{"rating":5,"body":"Leaseline caught three renewals we would have missed in the first month.","displayConsent":true}' | jq -r '.review["$id"] | split("/") | last')
npx startup-builder do Review.publish --json '{"review":"'"$REVIEW"'"}'
{
  "name": "do",
  "arguments": {
    "code": "const review = await $.Review.create({ rating: 5, body: 'Leaseline caught three renewals we would have missed in the first month.', displayConsent: true })\nreturn await $.Review.publish({ review: review.$id })"
  }
}

Change it

  • Put it on the pricing page instead.
  • Show the three newest five-star reviews.
  • Ask Riverside Property for a quote I can use.

Under the hood

Systems
Reviews, Sites
Nouns
Review, Customer, Page
Events
Review.published

The quote is a Review with displayConsent set, and Review.withhold takes it down without deleting it.