Vexar API

Gallery & Testimonials

Manage the photo gallery and customer testimonials shown on your AI business card. Authentication required.

Gallery

POST /api/v1/my-profile/gallery Auth

Upload an image (multipart field image, max 10MB; plan-limited). Optional caption.

Response
{ "success": true, "id": 4, "image_url": "https://cdn…" }

Testimonials

Verified testimonials (collected via review requests) can only have their visibility toggled — their text and rating are locked.

GET /api/v1/my-profile/testimonials Auth

List testimonials.

Response
{ "success": true, "testimonials": [ { "id": 2, "author_name": "Bob", "rating": 5, "text": "Great!", "is_visible": true, "is_verified": false } ] }
POST /api/v1/my-profile/testimonials Auth

Add a testimonial. author_name and text required; rating 1–5.

Request body
{ "author_name": "Bob", "text": "Great service!", "rating": 5, "is_visible": true }
Response
{ "success": true, "testimonial": { … } }
PUT /api/v1/my-profile/testimonials/{id} Auth

Update a testimonial (verified ones: visibility only).

Request body
{ "is_visible": false }
Response
{ "success": true, "testimonial": { … } }
DELETE /api/v1/my-profile/testimonials/{id} Auth

Delete a testimonial.

Response
{ "success": true }
POST /api/v1/my-profile/testimonials/{id}/request-edit Auth

Email the original reviewer a link to edit their verified review.

Response
{ "success": true }