Appearance
Depot Reviews API Documentation
This API is used by the Depot system to manage reviews returned by profiles.
- Version: 1
Endpoints
FetchProfiles
POST /fetch-profiles
Summary: Gets fetch responses profiles with pagination and optional profile_uuid filter
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
profile_uuid | string | null | Yes | 123e4567-e89b-12d3-a456-426614174000 | Optional profile UUID to filter results. |
page_size | integer | null | No | 50 | Number of profiles to return. Defaults to 50, max 250. |
continuation_token | string | null | No | string | Pagination continuation token from the previous response. |
json
{
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"page_size": 50,
"continuation_token": "string"
}Responses:
200 OK OK
json
{
"results": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"profile_reference": "string",
"profile_source": "string",
"ds_job_id": "string",
"ds_job_status": "string",
"ds_job_start_time": "2025-01-01T00:00:00Z",
"last_fetched_at": "2025-01-01T00:00:00Z",
"next_fetch_at": "2025-01-01T00:00:00Z",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
}
],
"continuation_token": "string",
"total_results": 0
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
results | array<object> | List of results for the current page | - |
results[].id | string | - | - |
results[].profile_uuid | string | - | - |
results[].profile_reference | string | - | - |
results[].profile_source | string | - | - |
results[].ds_job_id | string | - | - |
results[].ds_job_status | string | - | - |
results[].ds_job_start_time | string | null | - | - |
results[].last_fetched_at | string | null | - | - |
results[].next_fetch_at | string | null | - | - |
results[].created_at | string | - | - |
results[].updated_at | string | - | - |
continuation_token | string | null | Token for fetching the next page of results | - |
total_results | integer | Total number of results available | - |
Example usage
curl
curl --location --request POST 'https://api.example.com/fetch-profiles' \
--header 'Content-Type: application/json' \
--data-raw '{
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"page_size": 50,
"continuation_token": "string"
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/fetch-profiles");
var json = """
{
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"page_size": 50,
"continuation_token": "string"
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/fetch-profiles", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"page_size": 50,
"continuation_token": "string"
}),
});
const data = await response.json();
console.log(data);GET /fetch-profiles/{ProfileUuid}
Summary: Gets a fetch responses profile by id
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
ProfileUuid | path | string | Yes | The Profile UUID that is to be used to fetch the profile details. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
profile_uuid | string | Yes | 123e4567-e89b-12d3-a456-426614174000 | The Profile UUID that is to be used to fetch the profile details. |
json
{
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000"
}Responses:
200 OK OK
json
{
"profile_id": "123e4567-e89b-12d3-a456-426614174000",
"ref": "string",
"source": "string"
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
profile_id | string | The unique identifier of the profile. | - |
ref | string | The reference that is used by the profile to fetch reviews. | - |
source | string | The source of the profile. | - |
400 Bad Request Bad Request
json
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"errors": {}
}404 Not Found Not Found
json
"string"Example usage
curl
curl --location --request GET 'https://api.example.com/fetch-profiles/123e4567-e89b-12d3-a456-426614174000' \
--header 'Content-Type: application/json' \
--data-raw '{
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000"
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/fetch-profiles/123e4567-e89b-12d3-a456-426614174000");
var json = """
{
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000"
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/fetch-profiles/123e4567-e89b-12d3-a456-426614174000", {
method: "GET",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000"
}),
});
const data = await response.json();
console.log(data);POST /fetch-profiles/dedupe-fetch-responses-profiles
Summary: Deduplicates fetch responses profiles
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
body | object | Yes | - | No request body fields specified. |
json
{}Responses:
200 OK OK
json
{
"message": "string",
"total_deduped_profiles": 0
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
message | string | - | - |
total_deduped_profiles | integer | - | - |
400 Bad Request Bad Request
404 Not Found Not Found
Example usage
curl
curl --location --request POST 'https://api.example.com/fetch-profiles/dedupe-fetch-responses-profiles' \
--header 'Content-Type: application/json' \
--data-raw '{}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/fetch-profiles/dedupe-fetch-responses-profiles");
var json = """
{}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/fetch-profiles/dedupe-fetch-responses-profiles", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
const data = await response.json();
console.log(data);DELETE /fetch-profiles/delete-message/{QueueName}/{SequenceNumber}
Summary: Deletes a scheduled message by queue name and sequence number
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
QueueName | path | string | Yes | The name of the queue from which to delete the scheduled message. |
SequenceNumber | path | integer | Yes | The sequence number of the scheduled message to delete. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
queueName | string | Yes | string | The name of the queue from which to delete the scheduled message. |
sequenceNumber | integer | Yes | 0 | The sequence number of the scheduled message to delete. |
json
{
"queueName": "string",
"sequenceNumber": 0
}Responses:
200 OK OK
json
{
"message": "string"
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
message | string | The message returned by the endpoint. | - |
400 Bad Request Bad Request
json
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"errors": {}
}404 Not Found Not Found
json
"string"Example usage
curl
curl --location --request DELETE 'https://api.example.com/fetch-profiles/delete-message/string/0' \
--header 'Content-Type: application/json' \
--data-raw '{
"queueName": "string",
"sequenceNumber": 0
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://api.example.com/fetch-profiles/delete-message/string/0");
var json = """
{
"queueName": "string",
"sequenceNumber": 0
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/fetch-profiles/delete-message/string/0", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"queueName": "string",
"sequenceNumber": 0
}),
});
const data = await response.json();
console.log(data);GET /fetch-profiles/scheduled-messages/{QueueName}
Summary: Gets scheduled messages by queue name
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
QueueName | path | string | Yes | The name of the queue to fetch scheduled messages from. |
Responses:
200 OK OK
json
{
"messages": [
{
"body": {},
"messageId": "string",
"partitionKey": "string",
"transactionPartitionKey": "string",
"sessionId": "string",
"replyToSessionId": "string",
"timeToLive": "string",
"correlationId": "string",
"subject": "string",
"to": "string",
"contentType": "string",
"replyTo": "string",
"scheduledEnqueueTime": "2025-01-01T00:00:00Z",
"applicationProperties": {},
"lockToken": "string",
"deliveryCount": 0,
"lockedUntil": "2025-01-01T00:00:00Z",
"sequenceNumber": 0,
"deadLetterSource": "string",
"enqueuedSequenceNumber": 0,
"enqueuedTime": "2025-01-01T00:00:00Z",
"expiresAt": "2025-01-01T00:00:00Z",
"deadLetterReason": "string",
"deadLetterErrorDescription": "string",
"state": 0
}
]
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
messages | array<object> | The first 100 messages scheduled on the queue. | - |
messages[].body | object | - | - |
messages[].messageId | string | null | - | - |
messages[].partitionKey | string | null | - | - |
messages[].transactionPartitionKey | string | null | - | - |
messages[].sessionId | string | null | - | - |
messages[].replyToSessionId | string | null | - | - |
messages[].timeToLive | string | - | - |
messages[].correlationId | string | null | - | - |
messages[].subject | string | null | - | - |
messages[].to | string | null | - | - |
messages[].contentType | string | null | - | - |
messages[].replyTo | string | null | - | - |
messages[].scheduledEnqueueTime | string | - | - |
messages[].applicationProperties | object | null | - | - |
messages[].lockToken | string | null | - | - |
messages[].deliveryCount | integer | - | - |
messages[].lockedUntil | string | - | - |
messages[].sequenceNumber | integer | - | - |
messages[].deadLetterSource | string | null | - | - |
messages[].enqueuedSequenceNumber | integer | - | - |
messages[].enqueuedTime | string | - | - |
messages[].expiresAt | string | - | - |
messages[].deadLetterReason | string | null | - | - |
messages[].deadLetterErrorDescription | string | null | - | - |
messages[].state | integer | - | - |
404 Not Found Not Found
json
"string"Example usage
curl
curl --location --request GET 'https://api.example.com/fetch-profiles/scheduled-messages/string'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/fetch-profiles/scheduled-messages/string");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/fetch-profiles/scheduled-messages/string", {
method: "GET",
});
const data = await response.json();
console.log(data);DELETE /fetch-profiles/scheduled-messages/{QueueName}
Summary: Deletes all scheduled messages by queue name
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
QueueName | path | string | Yes | The name of the queue to fetch scheduled messages from. |
Responses:
200 OK OK
json
{
"message": "string"
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
message | string | Status of deleted scheduled messages. | - |
404 Not Found Not Found
json
"string"Example usage
curl
curl --location --request DELETE 'https://api.example.com/fetch-profiles/scheduled-messages/string'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://api.example.com/fetch-profiles/scheduled-messages/string");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/fetch-profiles/scheduled-messages/string", {
method: "DELETE",
});
const data = await response.json();
console.log(data);POST /fetch-profiles/setup-fetch-responses-queues
Summary: Sets up the fetch responses queues for all profiles in db
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
body | object | Yes | - | No request body fields specified. |
json
{}Responses:
200 OK OK
json
{
"message": "string"
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
message | string | - | - |
400 Bad Request Bad Request
404 Not Found Not Found
Example usage
curl
curl --location --request POST 'https://api.example.com/fetch-profiles/setup-fetch-responses-queues' \
--header 'Content-Type: application/json' \
--data-raw '{}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/fetch-profiles/setup-fetch-responses-queues");
var json = """
{}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/fetch-profiles/setup-fetch-responses-queues", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
const data = await response.json();
console.log(data);Review
GET /review/{ReviewUuid}
Summary: Fetches all review data for a specific review by its unique identifier
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
ReviewUuid | path | string | Yes | The unique identifier of the review. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
reviewUuid | string | Yes | 123e4567-e89b-12d3-a456-426614174000 | The unique identifier of the review. |
json
{
"reviewUuid": "123e4567-e89b-12d3-a456-426614174000"
}Responses:
200 OK OK
json
{
"created_at": "2025-01-01T00:00:00Z",
"review_uuid": "123e4567-e89b-12d3-a456-426614174000",
"review_source": "string",
"review_title": "string",
"review_text": "string",
"review_rating": 0,
"language_code": "string",
"review_url": "string",
"source_url": "string",
"review_management_response": "string",
"management_response": {
"name": "string",
"date": "2025-01-01T00:00:00Z",
"comment": "string"
},
"review_date": "2025-01-01T00:00:00Z",
"reviewer": {
"profile_source": "string",
"profile_id": "string",
"profile_url": "string",
"profile_name": "string",
"profile_picture": "string"
},
"meta_data": {
"additional_ratings": {
"atmosphere": 0,
"checkin_boarding": 0,
"cleanliness": 0,
"food": 0,
"legroom": 0,
"location": 0,
"seat_comfort": 0,
"service": 0,
"value": 0
},
"review_feedback_ratings": {
"likes": 0,
"downvotes": 0
},
"review_images": [
"string"
]
}
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
created_at | string | null | - | - |
review_uuid | string | - | - |
review_source | string | - | - |
review_title | string | - | - |
review_text | string | - | - |
review_rating | number | - | - |
language_code | string | - | - |
review_url | string | - | - |
source_url | string | - | - |
review_management_response | string | null | - | - |
management_response | null | object | - | - |
review_date | string | - | - |
reviewer | object | - | - |
reviewer.profile_source | string | - | - |
reviewer.profile_id | string | - | - |
reviewer.profile_url | string | - | - |
reviewer.profile_name | string | - | - |
reviewer.profile_picture | string | - | - |
meta_data | object | - | - |
meta_data.additional_ratings | object | - | - |
meta_data.additional_ratings.atmosphere | number | - | - |
meta_data.additional_ratings.checkin_boarding | number | - | - |
meta_data.additional_ratings.cleanliness | number | - | - |
meta_data.additional_ratings.food | number | - | - |
meta_data.additional_ratings.legroom | number | - | - |
meta_data.additional_ratings.location | number | - | - |
meta_data.additional_ratings.seat_comfort | number | - | - |
meta_data.additional_ratings.service | number | - | - |
meta_data.additional_ratings.value | number | - | - |
meta_data.review_feedback_ratings | object | - | - |
meta_data.review_feedback_ratings.likes | integer | - | - |
meta_data.review_feedback_ratings.downvotes | integer | - | - |
meta_data.review_images | array<string> | - | - |
400 Bad Request Bad Request
json
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"errors": {}
}404 Not Found Not Found
Example usage
curl
curl --location --request GET 'https://api.example.com/review/123e4567-e89b-12d3-a456-426614174000' \
--header 'Content-Type: application/json' \
--data-raw '{
"reviewUuid": "123e4567-e89b-12d3-a456-426614174000"
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/review/123e4567-e89b-12d3-a456-426614174000");
var json = """
{
"reviewUuid": "123e4567-e89b-12d3-a456-426614174000"
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/review/123e4567-e89b-12d3-a456-426614174000", {
method: "GET",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"reviewUuid": "123e4567-e89b-12d3-a456-426614174000"
}),
});
const data = await response.json();
console.log(data);Reviews
POST /reviews
Summary: Searches and returns all reviews
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
profile_uuid | string | null | No | 123e4567-e89b-12d3-a456-426614174000 | The unique identifier of a profile to filter by. |
profile_uuids | array<string> | null | No | 123e4567-e89b-12d3-a456-426614174000 | Optional profile identifiers to filter by. |
from_date | string | null | No | 2025-01-01T00:00:00Z | The start date for the review search. |
to_date | string | null | No | 2025-01-01T00:00:00Z | The end date for the review search. |
page_size | integer | null | No | 0 | The number of results to return per page. |
review_source | array<string> | null | No | string | Optional review source filters (tripadvisor/google). |
review_ratings | array<integer> | null | No | 0 | Optional review rating buckets to include. Valid values are 1-5, where 1 matches ratings from 1 up to 2, 2 matches 2 up to 3, and so on. |
order_by | string | null | No | string | Optional field to order results by. Valid values are review_date or review_rating. |
order_direction | string | null | No | string | Optional sort direction. Valid values are asc or desc. |
exclude_empty_review_text | boolean | null | No | true | When true, removes reviews where review text is null/empty. |
has_images | boolean | null | No | true | When true, only include reviews that have at least one image. |
search_term | string | null | No | string | The term to search for in the review text. |
continuation_token | string | null | No | string | The token to retrieve the next page of results. |
json
{
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"profile_uuids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z",
"page_size": 0,
"review_source": [
"string"
],
"review_ratings": [
0
],
"order_by": "string",
"order_direction": "string",
"exclude_empty_review_text": true,
"has_images": true,
"search_term": "string",
"continuation_token": "string"
}Responses:
200 OK OK
json
{
"results": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"profile_reference": "string",
"profile_source": "string",
"ds_job_id": "string",
"ds_job_status": "string",
"ds_job_start_time": "2025-01-01T00:00:00Z",
"last_fetched_at": "2025-01-01T00:00:00Z",
"next_fetch_at": "2025-01-01T00:00:00Z",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
}
],
"continuation_token": "string",
"total_results": 0
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
results | array<object> | List of results for the current page | - |
results[].id | string | - | - |
results[].profile_uuid | string | - | - |
results[].profile_reference | string | - | - |
results[].profile_source | string | - | - |
results[].ds_job_id | string | - | - |
results[].ds_job_status | string | - | - |
results[].ds_job_start_time | string | null | - | - |
results[].last_fetched_at | string | null | - | - |
results[].next_fetch_at | string | null | - | - |
results[].created_at | string | - | - |
results[].updated_at | string | - | - |
continuation_token | string | null | Token for fetching the next page of results | - |
total_results | integer | Total number of results available | - |
400 Bad Request Bad Request
json
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"errors": {}
}404 Not Found Not Found
Example usage
curl
curl --location --request POST 'https://api.example.com/reviews' \
--header 'Content-Type: application/json' \
--data-raw '{
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"profile_uuids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z",
"page_size": 0,
"review_source": [
"string"
],
"review_ratings": [
0
],
"order_by": "string",
"order_direction": "string",
"exclude_empty_review_text": true,
"has_images": true,
"search_term": "string",
"continuation_token": "string"
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/reviews");
var json = """
{
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"profile_uuids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z",
"page_size": 0,
"review_source": [
"string"
],
"review_ratings": [
0
],
"order_by": "string",
"order_direction": "string",
"exclude_empty_review_text": true,
"has_images": true,
"search_term": "string",
"continuation_token": "string"
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/reviews", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"profile_uuids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z",
"page_size": 0,
"review_source": [
"string"
],
"review_ratings": [
0
],
"order_by": "string",
"order_direction": "string",
"exclude_empty_review_text": true,
"has_images": true,
"search_term": "string",
"continuation_token": "string"
}),
});
const data = await response.json();
console.log(data);POST /reviews/company
Summary: Fetches all reviews which are associated with the company id
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
id | string | Yes | 123e4567-e89b-12d3-a456-426614174000 | The unique identifier of the company. |
from_date | string | null | Yes | 2025-01-01T00:00:00Z | The start date for the review search. |
to_date | string | null | Yes | 2025-01-01T00:00:00Z | The end date for the review search. |
page_size | integer | null | Yes | 0 | The number of results to return per page. |
continuation_token | string | null | No | string | The token to retrieve the next page of results. |
json
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z",
"page_size": 0,
"continuation_token": "string"
}Responses:
200 OK OK
json
{
"results": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"profile_reference": "string",
"profile_source": "string",
"ds_job_id": "string",
"ds_job_status": "string",
"ds_job_start_time": "2025-01-01T00:00:00Z",
"last_fetched_at": "2025-01-01T00:00:00Z",
"next_fetch_at": "2025-01-01T00:00:00Z",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
}
],
"continuation_token": "string",
"total_results": 0
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
results | array<object> | List of results for the current page | - |
results[].id | string | - | - |
results[].profile_uuid | string | - | - |
results[].profile_reference | string | - | - |
results[].profile_source | string | - | - |
results[].ds_job_id | string | - | - |
results[].ds_job_status | string | - | - |
results[].ds_job_start_time | string | null | - | - |
results[].last_fetched_at | string | null | - | - |
results[].next_fetch_at | string | null | - | - |
results[].created_at | string | - | - |
results[].updated_at | string | - | - |
continuation_token | string | null | Token for fetching the next page of results | - |
total_results | integer | Total number of results available | - |
400 Bad Request Bad Request
json
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"errors": {}
}404 Not Found Not Found
Example usage
curl
curl --location --request POST 'https://api.example.com/reviews/company' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "123e4567-e89b-12d3-a456-426614174000",
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z",
"page_size": 0,
"continuation_token": "string"
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/reviews/company");
var json = """
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z",
"page_size": 0,
"continuation_token": "string"
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/reviews/company", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"id": "123e4567-e89b-12d3-a456-426614174000",
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z",
"page_size": 0,
"continuation_token": "string"
}),
});
const data = await response.json();
console.log(data);GET /reviews/count
Summary: Gets the total number of reviews, optionally filtered by review date range.
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from_date | query | string | No | Optional lower bound for review_date (inclusive). |
to_date | query | string | No | Optional upper bound for review_date (inclusive). |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
from_date | string | null | No | 2025-01-01T00:00:00Z | Optional lower bound for review_date (inclusive). |
to_date | string | null | No | 2025-01-01T00:00:00Z | Optional upper bound for review_date (inclusive). |
json
{
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z"
}Responses:
200 OK OK
json
{
"total_count": 0
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
total_count | integer | Total number of reviews matching filters. | - |
400 Bad Request Bad Request
json
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"errors": {}
}Example usage
curl
curl --location --request GET 'https://api.example.com/reviews/count?from_date=2025-01-01T00%3A00%3A00Z&to_date=2025-01-01T00%3A00%3A00Z' \
--header 'Content-Type: application/json' \
--data-raw '{
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z"
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/reviews/count?from_date=2025-01-01T00%3A00%3A00Z&to_date=2025-01-01T00%3A00%3A00Z");
var json = """
{
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z"
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/reviews/count?from_date=2025-01-01T00%3A00%3A00Z&to_date=2025-01-01T00%3A00%3A00Z", {
method: "GET",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z"
}),
});
const data = await response.json();
console.log(data);GET /reviews/count-by-day
Summary: Gets review counts by day with source breakdown (google/tripadvisor)
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
days | query | integer | No | Number of days to include ending today (default 7, max 30). |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
days | integer | null | No | 0 | Number of days to include ending today (default 7, max 30). |
json
{
"days": 0
}Responses:
200 OK OK
json
{
"days": 0,
"data": [
{
"date": "string",
"total": 0,
"google": 0,
"tripadvisor": 0
}
]
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
days | integer | Number of days included in the response window. | - |
data | array<object> | Daily review counts with source breakdown. | - |
data[].date | string | UTC date in yyyy-MM-dd format. | - |
data[].total | integer | Total reviews for this date. | - |
data[].google | integer | Google reviews for this date. | - |
data[].tripadvisor | integer | Tripadvisor reviews for this date. | - |
400 Bad Request Bad Request
json
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"errors": {}
}Example usage
curl
curl --location --request GET 'https://api.example.com/reviews/count-by-day?days=0' \
--header 'Content-Type: application/json' \
--data-raw '{
"days": 0
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/reviews/count-by-day?days=0");
var json = """
{
"days": 0
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/reviews/count-by-day?days=0", {
method: "GET",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"days": 0
}),
});
const data = await response.json();
console.log(data);GET /reviews/counts-by-month
Summary: Gets review counts by month with source breakdown (google/tripadvisor)
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from_year | query | integer | No | Optional year to start from (defaults to 12 months ago). |
from_month | query | integer | No | Optional month (1-12) to start from (defaults to 12 months ago). |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
from_year | integer | null | No | 0 | Optional year to start from (defaults to 12 months ago). |
from_month | integer | null | No | 0 | Optional month (1-12) to start from (defaults to 12 months ago). |
json
{
"from_year": 0,
"from_month": 0
}Responses:
200 OK OK
json
{
"from_year": 0,
"from_month": 0,
"data": [
{
"month": "string",
"total": 0,
"google": 0,
"tripadvisor": 0
}
]
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
from_year | integer | Starting year included in the response window. | - |
from_month | integer | Starting month included in the response window. | - |
data | array<object> | Monthly review counts with source breakdown. | - |
data[].month | string | UTC month in yyyy-MM format. | - |
data[].total | integer | Total reviews for this month. | - |
data[].google | integer | Google reviews for this month. | - |
data[].tripadvisor | integer | Tripadvisor reviews for this month. | - |
400 Bad Request Bad Request
json
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"errors": {}
}Example usage
curl
curl --location --request GET 'https://api.example.com/reviews/counts-by-month?from_year=0&from_month=0' \
--header 'Content-Type: application/json' \
--data-raw '{
"from_year": 0,
"from_month": 0
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/reviews/counts-by-month?from_year=0&from_month=0");
var json = """
{
"from_year": 0,
"from_month": 0
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/reviews/counts-by-month?from_year=0&from_month=0", {
method: "GET",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"from_year": 0,
"from_month": 0
}),
});
const data = await response.json();
console.log(data);POST /reviews/profile
Summary: Fetches all reviews which are assossiated with the profile id
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
id | string | Yes | 123e4567-e89b-12d3-a456-426614174000 | The unique identifier of the profile. |
from_date | string | null | Yes | 2025-01-01T00:00:00Z | The start date for the review search. |
to_date | string | null | Yes | 2025-01-01T00:00:00Z | The end date for the review search. |
page_size | integer | null | Yes | 0 | The number of results to return per page. |
continuation_token | string | null | No | string | The token to retrieve the next page of results. |
json
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z",
"page_size": 0,
"continuation_token": "string"
}Responses:
200 OK OK
json
{
"results": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"profile_reference": "string",
"profile_source": "string",
"ds_job_id": "string",
"ds_job_status": "string",
"ds_job_start_time": "2025-01-01T00:00:00Z",
"last_fetched_at": "2025-01-01T00:00:00Z",
"next_fetch_at": "2025-01-01T00:00:00Z",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
}
],
"continuation_token": "string",
"total_results": 0
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
results | array<object> | List of results for the current page | - |
results[].id | string | - | - |
results[].profile_uuid | string | - | - |
results[].profile_reference | string | - | - |
results[].profile_source | string | - | - |
results[].ds_job_id | string | - | - |
results[].ds_job_status | string | - | - |
results[].ds_job_start_time | string | null | - | - |
results[].last_fetched_at | string | null | - | - |
results[].next_fetch_at | string | null | - | - |
results[].created_at | string | - | - |
results[].updated_at | string | - | - |
continuation_token | string | null | Token for fetching the next page of results | - |
total_results | integer | Total number of results available | - |
400 Bad Request Bad Request
json
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"errors": {}
}404 Not Found Not Found
Example usage
curl
curl --location --request POST 'https://api.example.com/reviews/profile' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "123e4567-e89b-12d3-a456-426614174000",
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z",
"page_size": 0,
"continuation_token": "string"
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/reviews/profile");
var json = """
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z",
"page_size": 0,
"continuation_token": "string"
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/reviews/profile", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"id": "123e4567-e89b-12d3-a456-426614174000",
"from_date": "2025-01-01T00:00:00Z",
"to_date": "2025-01-01T00:00:00Z",
"page_size": 0,
"continuation_token": "string"
}),
});
const data = await response.json();
console.log(data);Schedules
POST /schedules
Summary: Gets a list of the schedules
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
profile_uuid | string | null | Yes | 123e4567-e89b-12d3-a456-426614174000 | The unique identifier of the profile. |
page_size | integer | null | Yes | 0 | The number of results to return per page. |
search_term | string | null | Yes | string | The term to search for in the review text. |
continuation_token | string | null | No | string | The token to retrieve the next page of results. |
json
{
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"page_size": 0,
"search_term": "string",
"continuation_token": "string"
}Responses:
200 OK OK
json
{
"results": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"profile_reference": "string",
"profile_source": "string",
"ds_job_id": "string",
"ds_job_status": "string",
"ds_job_start_time": "2025-01-01T00:00:00Z",
"last_fetched_at": "2025-01-01T00:00:00Z",
"next_fetch_at": "2025-01-01T00:00:00Z",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
}
],
"continuation_token": "string",
"total_results": 0
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
results | array<object> | List of results for the current page | - |
results[].id | string | - | - |
results[].profile_uuid | string | - | - |
results[].profile_reference | string | - | - |
results[].profile_source | string | - | - |
results[].ds_job_id | string | - | - |
results[].ds_job_status | string | - | - |
results[].ds_job_start_time | string | null | - | - |
results[].last_fetched_at | string | null | - | - |
results[].next_fetch_at | string | null | - | - |
results[].created_at | string | - | - |
results[].updated_at | string | - | - |
continuation_token | string | null | Token for fetching the next page of results | - |
total_results | integer | Total number of results available | - |
404 Not Found Not Found
json
"string"Example usage
curl
curl --location --request POST 'https://api.example.com/schedules' \
--header 'Content-Type: application/json' \
--data-raw '{
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"page_size": 0,
"search_term": "string",
"continuation_token": "string"
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/schedules");
var json = """
{
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"page_size": 0,
"search_term": "string",
"continuation_token": "string"
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/schedules", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"page_size": 0,
"search_term": "string",
"continuation_token": "string"
}),
});
const data = await response.json();
console.log(data);POST /schedules/{ProfileUuid}/requeue-fetch-responses
Summary: Retries fetch responses when the existing Datashake job has been requested for more than 24 hours
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
ProfileUuid | path | string | Yes | The profile UUID used to find the schedule. |
override_job | query | boolean | No | Optional override for the ds job status used to evaluate if message is sent. |
schedule_time | query | string | No | Optional override for the schedule time used to evaluate when to schedule the message. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
profileUuid | string | No | 123e4567-e89b-12d3-a456-426614174000 | The profile UUID used to find the schedule. |
overrideJob | boolean | null | No | true | Optional override for the ds job status used to evaluate if message is sent. |
scheduleTime | string | null | No | 2025-01-01T00:00:00Z | Optional override for the schedule time used to evaluate when to schedule the message. |
json
{
"profileUuid": "123e4567-e89b-12d3-a456-426614174000",
"overrideJob": true,
"scheduleTime": "2025-01-01T00:00:00Z"
}Responses:
200 OK OK
json
{
"message": "string",
"profile_uuid": "123e4567-e89b-12d3-a456-426614174000",
"schedule_id": 0,
"message_sent": true
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
message | string | - | - |
profile_uuid | string | - | - |
schedule_id | integer | - | - |
message_sent | boolean | - | - |
400 Bad Request Bad Request
json
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"errors": {}
}404 Not Found Not Found
json
"string"Example usage
curl
curl --location --request POST 'https://api.example.com/schedules/123e4567-e89b-12d3-a456-426614174000/requeue-fetch-responses?override_job=true&schedule_time=2025-01-01T00%3A00%3A00Z' \
--header 'Content-Type: application/json' \
--data-raw '{
"profileUuid": "123e4567-e89b-12d3-a456-426614174000",
"overrideJob": true,
"scheduleTime": "2025-01-01T00:00:00Z"
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/schedules/123e4567-e89b-12d3-a456-426614174000/requeue-fetch-responses?override_job=true&schedule_time=2025-01-01T00%3A00%3A00Z");
var json = """
{
"profileUuid": "123e4567-e89b-12d3-a456-426614174000",
"overrideJob": true,
"scheduleTime": "2025-01-01T00:00:00Z"
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/schedules/123e4567-e89b-12d3-a456-426614174000/requeue-fetch-responses?override_job=true&schedule_time=2025-01-01T00%3A00%3A00Z", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"profileUuid": "123e4567-e89b-12d3-a456-426614174000",
"overrideJob": true,
"scheduleTime": "2025-01-01T00:00:00Z"
}),
});
const data = await response.json();
console.log(data);