Skip to content

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:

NameInTypeRequiredDescription
No parameters to pass.

Request Body (application/json):

NameTypeRequiredExampleDescription
profile_uuidstring | nullYes123e4567-e89b-12d3-a456-426614174000Optional profile UUID to filter results.
page_sizeinteger | nullNo50Number of profiles to return. Defaults to 50, max 250.
continuation_tokenstring | nullNostringPagination 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

PropertyTypeDescriptionEnum
resultsarray<object>List of results for the current page-
results[].idstring--
results[].profile_uuidstring--
results[].profile_referencestring--
results[].profile_sourcestring--
results[].ds_job_idstring--
results[].ds_job_statusstring--
results[].ds_job_start_timestring | null--
results[].last_fetched_atstring | null--
results[].next_fetch_atstring | null--
results[].created_atstring--
results[].updated_atstring--
continuation_tokenstring | nullToken for fetching the next page of results-
total_resultsintegerTotal 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:

NameInTypeRequiredDescription
ProfileUuidpathstringYesThe Profile UUID that is to be used to fetch the profile details.

Request Body (application/json):

NameTypeRequiredExampleDescription
profile_uuidstringYes123e4567-e89b-12d3-a456-426614174000The 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

PropertyTypeDescriptionEnum
profile_idstringThe unique identifier of the profile.-
refstringThe reference that is used by the profile to fetch reviews.-
sourcestringThe 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:

NameInTypeRequiredDescription
No parameters to pass.

Request Body (application/json):

NameTypeRequiredExampleDescription
bodyobjectYes-No request body fields specified.
json
{}

Responses:

200 OK OK

json
{
  "message": "string",
  "total_deduped_profiles": 0
}

Response Parameters

PropertyTypeDescriptionEnum
messagestring--
total_deduped_profilesinteger--

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:

NameInTypeRequiredDescription
QueueNamepathstringYesThe name of the queue from which to delete the scheduled message.
SequenceNumberpathintegerYesThe sequence number of the scheduled message to delete.

Request Body (application/json):

NameTypeRequiredExampleDescription
queueNamestringYesstringThe name of the queue from which to delete the scheduled message.
sequenceNumberintegerYes0The sequence number of the scheduled message to delete.
json
{
  "queueName": "string",
  "sequenceNumber": 0
}

Responses:

200 OK OK

json
{
  "message": "string"
}

Response Parameters

PropertyTypeDescriptionEnum
messagestringThe 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:

NameInTypeRequiredDescription
QueueNamepathstringYesThe 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

PropertyTypeDescriptionEnum
messagesarray<object>The first 100 messages scheduled on the queue.-
messages[].bodyobject--
messages[].messageIdstring | null--
messages[].partitionKeystring | null--
messages[].transactionPartitionKeystring | null--
messages[].sessionIdstring | null--
messages[].replyToSessionIdstring | null--
messages[].timeToLivestring--
messages[].correlationIdstring | null--
messages[].subjectstring | null--
messages[].tostring | null--
messages[].contentTypestring | null--
messages[].replyTostring | null--
messages[].scheduledEnqueueTimestring--
messages[].applicationPropertiesobject | null--
messages[].lockTokenstring | null--
messages[].deliveryCountinteger--
messages[].lockedUntilstring--
messages[].sequenceNumberinteger--
messages[].deadLetterSourcestring | null--
messages[].enqueuedSequenceNumberinteger--
messages[].enqueuedTimestring--
messages[].expiresAtstring--
messages[].deadLetterReasonstring | null--
messages[].deadLetterErrorDescriptionstring | null--
messages[].stateinteger--

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:

NameInTypeRequiredDescription
QueueNamepathstringYesThe name of the queue to fetch scheduled messages from.

Responses:

200 OK OK

json
{
  "message": "string"
}

Response Parameters

PropertyTypeDescriptionEnum
messagestringStatus 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:

NameInTypeRequiredDescription
No parameters to pass.

Request Body (application/json):

NameTypeRequiredExampleDescription
bodyobjectYes-No request body fields specified.
json
{}

Responses:

200 OK OK

json
{
  "message": "string"
}

Response Parameters

PropertyTypeDescriptionEnum
messagestring--

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:

NameInTypeRequiredDescription
ReviewUuidpathstringYesThe unique identifier of the review.

Request Body (application/json):

NameTypeRequiredExampleDescription
reviewUuidstringYes123e4567-e89b-12d3-a456-426614174000The 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

PropertyTypeDescriptionEnum
created_atstring | null--
review_uuidstring--
review_sourcestring--
review_titlestring--
review_textstring--
review_ratingnumber--
language_codestring--
review_urlstring--
source_urlstring--
review_management_responsestring | null--
management_responsenull | object--
review_datestring--
reviewerobject--
reviewer.profile_sourcestring--
reviewer.profile_idstring--
reviewer.profile_urlstring--
reviewer.profile_namestring--
reviewer.profile_picturestring--
meta_dataobject--
meta_data.additional_ratingsobject--
meta_data.additional_ratings.atmospherenumber--
meta_data.additional_ratings.checkin_boardingnumber--
meta_data.additional_ratings.cleanlinessnumber--
meta_data.additional_ratings.foodnumber--
meta_data.additional_ratings.legroomnumber--
meta_data.additional_ratings.locationnumber--
meta_data.additional_ratings.seat_comfortnumber--
meta_data.additional_ratings.servicenumber--
meta_data.additional_ratings.valuenumber--
meta_data.review_feedback_ratingsobject--
meta_data.review_feedback_ratings.likesinteger--
meta_data.review_feedback_ratings.downvotesinteger--
meta_data.review_imagesarray<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:

NameInTypeRequiredDescription
No parameters to pass.

Request Body (application/json):

NameTypeRequiredExampleDescription
profile_uuidstring | nullNo123e4567-e89b-12d3-a456-426614174000The unique identifier of a profile to filter by.
profile_uuidsarray<string> | nullNo123e4567-e89b-12d3-a456-426614174000Optional profile identifiers to filter by.
from_datestring | nullNo2025-01-01T00:00:00ZThe start date for the review search.
to_datestring | nullNo2025-01-01T00:00:00ZThe end date for the review search.
page_sizeinteger | nullNo0The number of results to return per page.
review_sourcearray<string> | nullNostringOptional review source filters (tripadvisor/google).
review_ratingsarray<integer> | nullNo0Optional 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_bystring | nullNostringOptional field to order results by. Valid values are review_date or review_rating.
order_directionstring | nullNostringOptional sort direction. Valid values are asc or desc.
exclude_empty_review_textboolean | nullNotrueWhen true, removes reviews where review text is null/empty.
has_imagesboolean | nullNotrueWhen true, only include reviews that have at least one image.
search_termstring | nullNostringThe term to search for in the review text.
continuation_tokenstring | nullNostringThe 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

PropertyTypeDescriptionEnum
resultsarray<object>List of results for the current page-
results[].idstring--
results[].profile_uuidstring--
results[].profile_referencestring--
results[].profile_sourcestring--
results[].ds_job_idstring--
results[].ds_job_statusstring--
results[].ds_job_start_timestring | null--
results[].last_fetched_atstring | null--
results[].next_fetch_atstring | null--
results[].created_atstring--
results[].updated_atstring--
continuation_tokenstring | nullToken for fetching the next page of results-
total_resultsintegerTotal 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:

NameInTypeRequiredDescription
No parameters to pass.

Request Body (application/json):

NameTypeRequiredExampleDescription
idstringYes123e4567-e89b-12d3-a456-426614174000The unique identifier of the company.
from_datestring | nullYes2025-01-01T00:00:00ZThe start date for the review search.
to_datestring | nullYes2025-01-01T00:00:00ZThe end date for the review search.
page_sizeinteger | nullYes0The number of results to return per page.
continuation_tokenstring | nullNostringThe 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

PropertyTypeDescriptionEnum
resultsarray<object>List of results for the current page-
results[].idstring--
results[].profile_uuidstring--
results[].profile_referencestring--
results[].profile_sourcestring--
results[].ds_job_idstring--
results[].ds_job_statusstring--
results[].ds_job_start_timestring | null--
results[].last_fetched_atstring | null--
results[].next_fetch_atstring | null--
results[].created_atstring--
results[].updated_atstring--
continuation_tokenstring | nullToken for fetching the next page of results-
total_resultsintegerTotal 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:

NameInTypeRequiredDescription
from_datequerystringNoOptional lower bound for review_date (inclusive).
to_datequerystringNoOptional upper bound for review_date (inclusive).

Request Body (application/json):

NameTypeRequiredExampleDescription
from_datestring | nullNo2025-01-01T00:00:00ZOptional lower bound for review_date (inclusive).
to_datestring | nullNo2025-01-01T00:00:00ZOptional 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

PropertyTypeDescriptionEnum
total_countintegerTotal 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:

NameInTypeRequiredDescription
daysqueryintegerNoNumber of days to include ending today (default 7, max 30).

Request Body (application/json):

NameTypeRequiredExampleDescription
daysinteger | nullNo0Number 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

PropertyTypeDescriptionEnum
daysintegerNumber of days included in the response window.-
dataarray<object>Daily review counts with source breakdown.-
data[].datestringUTC date in yyyy-MM-dd format.-
data[].totalintegerTotal reviews for this date.-
data[].googleintegerGoogle reviews for this date.-
data[].tripadvisorintegerTripadvisor 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:

NameInTypeRequiredDescription
from_yearqueryintegerNoOptional year to start from (defaults to 12 months ago).
from_monthqueryintegerNoOptional month (1-12) to start from (defaults to 12 months ago).

Request Body (application/json):

NameTypeRequiredExampleDescription
from_yearinteger | nullNo0Optional year to start from (defaults to 12 months ago).
from_monthinteger | nullNo0Optional 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

PropertyTypeDescriptionEnum
from_yearintegerStarting year included in the response window.-
from_monthintegerStarting month included in the response window.-
dataarray<object>Monthly review counts with source breakdown.-
data[].monthstringUTC month in yyyy-MM format.-
data[].totalintegerTotal reviews for this month.-
data[].googleintegerGoogle reviews for this month.-
data[].tripadvisorintegerTripadvisor 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:

NameInTypeRequiredDescription
No parameters to pass.

Request Body (application/json):

NameTypeRequiredExampleDescription
idstringYes123e4567-e89b-12d3-a456-426614174000The unique identifier of the profile.
from_datestring | nullYes2025-01-01T00:00:00ZThe start date for the review search.
to_datestring | nullYes2025-01-01T00:00:00ZThe end date for the review search.
page_sizeinteger | nullYes0The number of results to return per page.
continuation_tokenstring | nullNostringThe 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

PropertyTypeDescriptionEnum
resultsarray<object>List of results for the current page-
results[].idstring--
results[].profile_uuidstring--
results[].profile_referencestring--
results[].profile_sourcestring--
results[].ds_job_idstring--
results[].ds_job_statusstring--
results[].ds_job_start_timestring | null--
results[].last_fetched_atstring | null--
results[].next_fetch_atstring | null--
results[].created_atstring--
results[].updated_atstring--
continuation_tokenstring | nullToken for fetching the next page of results-
total_resultsintegerTotal 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:

NameInTypeRequiredDescription
No parameters to pass.

Request Body (application/json):

NameTypeRequiredExampleDescription
profile_uuidstring | nullYes123e4567-e89b-12d3-a456-426614174000The unique identifier of the profile.
page_sizeinteger | nullYes0The number of results to return per page.
search_termstring | nullYesstringThe term to search for in the review text.
continuation_tokenstring | nullNostringThe 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

PropertyTypeDescriptionEnum
resultsarray<object>List of results for the current page-
results[].idstring--
results[].profile_uuidstring--
results[].profile_referencestring--
results[].profile_sourcestring--
results[].ds_job_idstring--
results[].ds_job_statusstring--
results[].ds_job_start_timestring | null--
results[].last_fetched_atstring | null--
results[].next_fetch_atstring | null--
results[].created_atstring--
results[].updated_atstring--
continuation_tokenstring | nullToken for fetching the next page of results-
total_resultsintegerTotal 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:

NameInTypeRequiredDescription
ProfileUuidpathstringYesThe profile UUID used to find the schedule.
override_jobquerybooleanNoOptional override for the ds job status used to evaluate if message is sent.
schedule_timequerystringNoOptional override for the schedule time used to evaluate when to schedule the message.

Request Body (application/json):

NameTypeRequiredExampleDescription
profileUuidstringNo123e4567-e89b-12d3-a456-426614174000The profile UUID used to find the schedule.
overrideJobboolean | nullNotrueOptional override for the ds job status used to evaluate if message is sent.
scheduleTimestring | nullNo2025-01-01T00:00:00ZOptional 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

PropertyTypeDescriptionEnum
messagestring--
profile_uuidstring--
schedule_idinteger--
message_sentboolean--

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);