List Testimonials

Retrieve a paginated list of testimonials from your organization. Supports filtering and sorting options.

Endpoint

GET /v1/testimonials

Authentication

This endpoint requires authentication. Include your API token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

Query Parameters

ParameterTypeDefaultDescription
pagenumber1Page number for pagination
limitnumber25Number of testimonials per page (max 100)
statusstringallFilter by status: pending, approved, rejected, all
typestringallFilter by type: text, video, audio, all
ratingnumber-Filter by minimum rating (1-5)
sortstringcreatedAtSort field: createdAt, updatedAt, rating
orderstringdescSort order: asc, desc
searchstring-Search in testimonial content and author name
tagsstring-Comma-separated list of tags to filter by

Response

Returns a paginated list of testimonials:

FieldTypeDescription
testimonialsarrayArray of testimonial objects
paginationobjectPagination metadata
pagination.pagenumberCurrent page number
pagination.limitnumberItems per page
pagination.totalnumberTotal number of testimonials
pagination.totalPagesnumberTotal number of pages
pagination.hasNextbooleanWhether there's a next page
pagination.hasPrevbooleanWhether there's a previous page

Testimonial Object

Each testimonial in the response includes:

FieldTypeDescription
idstringUnique testimonial identifier
contentstringThe testimonial content
authorobjectAuthor information
author.namestringAuthor's full name
author.emailstringAuthor's email address
author.companystringAuthor's company name (optional)
ratingnumberRating from 1-5 stars (optional)
typestringTestimonial type: text, video, or audio
statusstringCurrent status: pending, approved, rejected
tagsarrayArray of tags for categorization
createdAtstringISO 8601 timestamp of creation
updatedAtstringISO 8601 timestamp of last update

Examples

Get approved video testimonials

curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  "https://api.nowts.com/v1/testimonials?status=approved&type=video"

Search testimonials

curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  "https://api.nowts.com/v1/testimonials?search=amazing%20product"

Get high-rated testimonials

curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  "https://api.nowts.com/v1/testimonials?rating=4&sort=rating&order=desc"

Error Codes

CodeDescription
400Bad Request - Invalid query parameters
401Unauthorized - Invalid or missing API token
403Forbidden - Insufficient permissions
500Internal Server Error - Something went wrong on our end

Request

# Get all testimonials
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  https://api.nowts.com/v1/testimonials

# Get testimonials with filters
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  "https://api.nowts.com/v1/testimonials?status=approved&type=video&limit=10"

Results

{
  "testimonials": [
    {
      "id": "test_123456789",
      "content": "Amazing product! Highly recommend to everyone.",
      "author": {
        "name": "John Doe",
        "email": "john@example.com",
        "company": "Acme Corp"
      },
      "rating": 5,
      "type": "text",
      "status": "approved",
      "createdAt": "2025-08-22T10:30:00Z",
      "updatedAt": "2025-08-22T10:30:00Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 25,
    "total": 142,
    "totalPages": 6,
    "hasNext": true,
    "hasPrev": false
  }
}
PrivacyTermsapp icon