API Reference - Users Reviews

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000108053

← Back to API Reference | Getting Started

Reviews

Member reviews submitted by visitors or other members. Reviews include multiple rating dimensions and require approval before appearing publicly (unless auto-approved in your site settings).

Model name in URL: users_reviews — DB table: users_reviews

The Review Object

FieldTypeDescription
review_idintegerUnique review ID (primary key, read-only)
user_idintegerID of the member being reviewed required on create
review_titlestringReview headline
review_descriptiontextFull review text
review_namestringName of the reviewer
review_emailstringEmail address of the reviewer
review_zipstringZIP code of the reviewer
review_statusintegerApproval status: 0=Pending, 1=Approved, 2=Rejected
review_workedstringDescription of working relationship with the member
service_idintegerID of the service being reviewed
rating_overallintegerOverall rating (1–5)
rating_serviceintegerService quality rating (1–5)
rating_responseintegerResponsiveness rating (1–5)
rating_expertiseintegerExpertise rating (1–5)
rating_resultsintegerResults rating (1–5)
rating_languageintegerCommunication rating (1–5)
recommendinteger1 if reviewer recommends this member
spoken_languagestringLanguage the review was written in
genderstringReviewer's gender: male or female
review_companystringReviewer's company name
member_idintegerID of the logged-in member who wrote the review (if applicable)
review_tokenstringUnique review token (auto-generated)
review_addedstringDate review was created (format: YYYYMMDDHHmmss)
review_approvedstringDate review was approved
review_updatedstringDate review was last updated
ipstringIP address of the reviewer
revision_timestamptimestampLast modified timestamp (auto-updated)
cookiestringCookie token from the reviewer's session
httprstringHTTP referrer URL where the review was submitted from
formnamestringName of the form used to submit this review (e.g. member_review)
user_consenttextRecord of user consent (GDPR/privacy compliance)
editmodestringEdit mode flag (set when review is being edited)
consent_historytextHistorical record of consent changes
replyReviewIdintegerID of the review this is a reply to (for threaded review responses)

List Reviews

GET /api/v2/users_reviews/get
Copy
# Get all approved reviews for a specific member
curl -X GET "https://www.yourdomain.com/api/v2/users_reviews/get?property[]=user_id&property_value[]=42&property[]=review_status&property_value[]=1" \
  -H "X-Api-Key: your-api-key-here"

Retrieve a Review

GET /api/v2/users_reviews/get/{review_id}
Copy
curl -X GET "https://www.yourdomain.com/api/v2/users_reviews/get/77" \
  -H "X-Api-Key: your-api-key-here"

Create a Review

POST /api/v2/users_reviews/create
Copy
curl -X POST "https://www.yourdomain.com/api/v2/users_reviews/create" \
  -H "X-Api-Key: your-api-key-here" \
  -d "user_id=42" \
  -d "review_name=Alice+Walker" \
  -d "review_email=alice@example.com" \
  -d "review_title=Excellent+service%21" \
  -d "review_description=Highly+professional+and+timely+work." \
  -d "rating_overall=5" \
  -d "recommend=1" \
  -d "review_status=1"

Update a Review

PUT /api/v2/users_reviews/update
Copy
curl -X PUT "https://www.yourdomain.com/api/v2/users_reviews/update" \
  -H "X-Api-Key: your-api-key-here" \
  -d "review_id=77" \
  -d "review_status=1"

Delete a Review

DELETE /api/v2/users_reviews/delete
Copy
curl -X DELETE "https://www.yourdomain.com/api/v2/users_reviews/delete" \
  -H "X-Api-Key: your-api-key-here" \
  -d "review_id=77"

Search Reviews

POST /api/v2/users_reviews/search
Copy
curl -X POST "https://www.yourdomain.com/api/v2/users_reviews/search" \
  -H "X-Api-Key: your-api-key-here" \
  -d "user_id=42" \
  -d "review_status=1"