← Marketing API
ReviewSources
Singular: ReviewSource — Base URL: https://marketing-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Example response (recorded) sample
A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.
{
"payload": {
"_id": "6ac5258c8a67e3fdb02c3736",
"_businessLocation": "6ac4c55fed1f2cb017939eb5",
"platform": "google",
"externalId": "ChIJVVVFp9mOnUcR3QpVVhtsIC8",
"url": "https://www.google.com/maps/place/?q=place_id:ChIJVVVFp9mOnUcR3QpVVhtsIC8",
"enabled": true,
"shares": [],
"createdAt": "2026-10-06T16:45:00.406Z",
"updatedAt": "2026-10-09T23:30:00.447Z",
"cursor": {
"lastExternalId": "places/ChIJVVVFp9mOnUcR3QpVVhtsIC8/reviews/ChdDSUhNMG9nS0VJQ0FnSURfbktqZTFnRRAB",
"lastReviewAt": "2025-01-22T10:34:21.255Z"
},
"lastSyncAt": "2026-10-09T23:30:00.177Z",
"lastSyncStatus": "partial",
"stats": {
"count": 2,
"average": 5,
"lastReviewAt": "2025-01-22T10:34:21.255Z"
},
"modifiedBy": "5a76d07e2d8b3270ff6df587"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://marketing-api.ayoune.app/reviewsources/6ac5258c8a67e3fdb02c3736",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "BusinessLocations",
"title": "MODEL_BUSINESSLOCATION",
"href": "https://api.ayoune.app/config/businesslocations/6ac4c55fed1f2cb017939eb5",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.businesslocations"
}
],
"relations": [
{
"rel": "BusinessLocations",
"title": "MODEL_BUSINESSLOCATION",
"href": "https://api.ayoune.app/config/businesslocations",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.businesslocations"
},
{
"rel": "Credentials",
"title": "MODEL_CREDENTIAL",
"href": "https://api.ayoune.app/config/credentials",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.credentials"
}
],
"debugId": "6ac9bbb8d942c8cd7c84bf7f",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_REVIEWSOURCE",
"href": "https://api.ayoune.app/marketing/reviewsources/6ac5258c8a67e3fdb02c3736/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_REVIEWSOURCE",
"href": "https://api.ayoune.app/marketing/reviewsources/6ac5258c8a67e3fdb02c3736",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.38.0",
"core": "2026.368.1"
},
"rateLimit": {
"limit": "10000",
"remaining": "8792",
"reset": "1791608900",
"resetDate": "Sat Oct 10 2026"
},
"responseTime": 1095.459576,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /reviewsources |
List with filters/pagination | marketing.reviewsources.view |
| GET | /reviewsources/:id |
Single record | marketing.reviewsources.view |
| POST | /reviewsources |
Create new record | marketing.reviewsources.new |
| PUT | /reviewsources |
Update record | marketing.reviewsources.edit |
| DELETE | /reviewsources/:id |
Delete record | marketing.reviewsources.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.marketing.reviewSources.find().limit(10).exec();
// Single record
const one = await ay.marketing.reviewSources.findById('OBJECT_ID').exec();
// Create
const created = await ay.marketing.reviewSources.create({ name: 'Foo' });