Docs

List review invitations

Preview· P9
GET
/review-invitations

Returns your organisation's review invitations, newest first: after visits and bookings, to customers, and after-sale links. Each one's state is waiting, sent, not_sent (with skip_reason), stopped or cancelled. Which invitation became which review is never shown, and contacts appear only as a masked line.

Scope: reviews:read · 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:read

Query Parameters

limit?integer

How many items to return, from 1 to 100.

Range1 <= value <= 100
Default25
cursor?string

The next_cursor from the previous page. Leave it out for the first page.

Lengthlength <= 512
place_id?string

Only this branch's invitations.

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

Response Body

A page of invitations.

application/json
  1. response
data*array<>
next_cursor*|

Pass this as cursor to get the next page. null on the last page.

Example"b3BhcXVlLWN1cnNvcg"
has_more*boolean
curl -X GET 'https://api.agoo.ardent.africa/v1/review-invitations?limit=25'
{  "data": [    {      "id": "string",      "object": "review_invitation",      "place_id": "rplace_01m6a2b3c4d5e6f7g8h9jkmnpq",      "source": "visit",      "earns": "verified_visit",      "recipient": "string",      "channel": "email",      "state": "waiting",      "skip_reason": "no_contact",      "visit_id": "string",      "booking_id": "string",      "send_after": "2019-08-24T14:15:22Z",      "sent_at": "2019-08-24T14:15:22Z",      "expires_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "b3BhcXVlLWN1cnNvcg",  "has_more": true}