You can submit a text testimonial via a
POST request to your Testimonial space, and even add it to your Wall of Love directly.
curl --location --request POST 'https://api.testimonial.to/v1/submit/text' \
--header 'Authorization: Bearer API_KEY' \
--header 'Content-Type: application/json' \
"testimonial": "text testimonial test",
"name": "Damon Chen",
"title": "Founder of Testimonial",
"email": "[email protected]",
Two parameters are required:
testimonial (the content of the testimonial)
Here are some optional parameters you can use too:
attachedImageURL(URL of the attached image)
avatarURL(submitter's avatar URL)
title(submitter's title and company)
socialLink(submitter's social profile link, i.e. LinkedIn profile link)
confirm(whether submitter permits to use his/her video publicly, false by default)
isLiked(directly add the video to the Wall of Love, false by default)
How to get the API_KEY
You need to go to the dashboard page. On the right side of each space card, there is a ⚙️ icon, click that you will see a dropdown list, choose the API key
You will see a popup modal show your API key, click Copy API Key to copy the key
Upon a successful request, the
status will show success, and
message will say The text testimonial is uploaded successfully.
If the request failed, the
status will show failed, and the message will display the reason why it failed.
"message": "Rating has to be an integer whose value is between 1 and 5."