Docs

Reply to a review

Preview· P9
POST
/reviews/{review_id}/reply

Posts your organisation's one public reply to a review, or changes it. It's checked by the same rules as reviews (no contact details, nothing that confirms someone was a patient or pupil); where the kind of place asks, it waits for a moderator before it appears (reply.status is screening). review.replied fires when it appears. Replying is free on every level.

Scope: reviews:write · Plan: Growth, Pro and Enterprise in live mode; every plan in test mode.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token> on every request. The token is one of:

PrefixWhat it isWhere it may be used
agoo_sk_live_Secret key, live modeYour servers only
agoo_sk_test_Secret key, test modeYour servers only
agoo_pk_live_Publishable key, live modeBrowsers and apps: create pre-registrations and bookings, read public booking types (with their intake questions) and their free slots, read the visit types open for pre-registration with their public forms. Never lists people.
agoo_pk_test_Publishable key, test modeAs above, in test mode

Admins create keys in Console → Developers → API keys and choose each key's scopes. A key is shown once. Never put a secret key in a URL, a browser or a mobile app.

Scope: reviews:write

Path Parameters

review_id*string

The review's ID.

Match^review_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"review_01m6b3c4d5e6f7g8h9jkmnpqrs"

Header Parameters

Idempotency-Key*string

A UUID you generate for this operation. If you retry with the same key within 24 hours, Agoo returns the original response instead of acting twice. While the first request is still running, a retry returns conflict. Reusing a key with a different request returns idempotency_key_reused. Responses with rate_limited, internal_error or unavailable aren't stored, so retry those with the same key.

Formatuuid

Request Body

application/json
  1. body
body*string

The reply.

Length2 <= length <= 3000

Response Body

The review, with your reply.

application/json
  1. response

A review of your organisation's page on Agoo Reviews, as agoo.reviews shows it. label says what Agoo checked about the person behind it: verified_visit (Agoo recorded their visit or booking), invited (your organisation invited them), phone_confirmed or email_confirmed. It never says the review is true. A removed or withdrawn review keeps its ID and status, without its words.

id*ReviewId

A review ID on Agoo Reviews (TypeID with the review prefix).

Match^review_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"review_01m6b3c4d5e6f7g8h9jkmnpqrs"
object*"review"
Value in"review"
business_id*string

Your page's ID on Agoo Reviews (TypeID with the rbiz prefix).

place*
status*string
Value in"published""removed""withdrawn"
stars?integer
Range1 <= value <= 5
title?string
body?string
visit_month?string

The month of the experience, as YYYY-MM.

language?string
label?string
Value in"verified_visit""invited""phone_confirmed""email_confirmed"
proof_seen?boolean

A moderator saw proof, such as a receipt, after a dispute.

reviewer_name?string

As the page shows it: a display name such as Esi O., or initials where the kind of place asks.

reply?|null
url?string

The branch's page on agoo.reviews.

Formaturi
removal_reason?|

A removed review: the published reason.

published_at*|
Formatdate-time
edited_at?|

When the reviewer last changed it.

Formatdate-time
curl -X POST 'https://api.agoo.ardent.africa/v1/reviews/review_01m6b3c4d5e6f7g8h9jkmnpqrs/reply' \  -H 'Idempotency-Key: 3f6b2a1e-8c4d-4f7a-9b2e-5d1c0a7e9f64' \  -H 'Content-Type: application/json' \  -d '{  "body": "Thank you for telling us about the wait at the counter, Esi. We'\''ve added a second teller at lunchtime. The team at Coastline Consult"}'
{  "id": "review_01m6b3c4d5e6f7g8h9jkmnpqrs",  "object": "review",  "business_id": "string",  "place": {    "id": "rplace_01m6a2b3c4d5e6f7g8h9jkmnpq",    "name": "string",    "town": "string",    "site_id": "string"  },  "status": "published",  "stars": 1,  "title": "string",  "body": "string",  "visit_month": "string",  "language": "string",  "label": "verified_visit",  "proof_seen": true,  "reviewer_name": "string",  "reply": {    "body": "string",    "status": "screening",    "published_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  },  "url": "http://example.com",  "removal_reason": "string",  "published_at": "2019-08-24T14:15:22Z",  "edited_at": "2019-08-24T14:15:22Z"}