curl --location --request "https://api.travtus.com/messages/'" \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer <token>' \
--data-raw '{
"group_id": "group-id-1",
"channel": "review",
"review": {
"source": "google",
"review_id": "review-1",
"title": "Very good apartment and service!",
"comment": "Lovely apartment, great rent and service, would recommend!",
"rating": 5,
"created_datetime": "2023-01-01T00:00:00"
}
}'
{
"request_id": "<string>"
}This endpoint ingests a Google review.
curl --location --request "https://api.travtus.com/messages/'" \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer <token>' \
--data-raw '{
"group_id": "group-id-1",
"channel": "review",
"review": {
"source": "google",
"review_id": "review-1",
"title": "Very good apartment and service!",
"comment": "Lovely apartment, great rent and service, would recommend!",
"rating": 5,
"created_datetime": "2023-01-01T00:00:00"
}
}'
{
"request_id": "<string>"
}group_id parameter or a group external reference through the group_external_ref attribute.
Do not provide both, as this will result in the request failing.
If no group id or group external reference is provided, the operation will fail.
Currently the endpoint will only process review messages, any other types of messages will not be processed.
All datetime fields included in the body parameters need to be specified as ISO8601-formatted date strings.
Datetime fields should follow a “YYYY-MM-DDThh:mm:ss” format.
review.Show child attributes
google.{
"error": {
"type": "missing_authorization",
"message": "Your request does not include an 'Authorization' header with a bearer token for your account."
}
}
{
"error": {
"type": "expired_token",
"message": "The bearer token you have provided in the 'Authorization' header has expired. Please obtain a new one."
}
}
{
"error": {
"type": "invalid_authorization",
"message": "The bearer token you have provided in the 'Authorization' header is invalid."
}
}
{
"error": {
"type": "no_group",
"message": "You must either provide a group id or group external reference in the request body."
}
}
{
"error": {
"type": "both_group_identifiers_provided",
"message": "You have provided both a group id and group external reference for the create/update units operation. Please only provide one of the two."
}
}
{
"error": {
"type": "no_access_to_group",
"message": "You do not have access to the group you have provided."
}
}
{
"error": {
"type": "group_not_found",
"message": "We could not find a group with the ID you have provided."
}
}
curl --location --request "https://api.travtus.com/messages/'" \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer <token>' \
--data-raw '{
"group_id": "group-id-1",
"channel": "review",
"review": {
"source": "google",
"review_id": "review-1",
"title": "Very good apartment and service!",
"comment": "Lovely apartment, great rent and service, would recommend!",
"rating": 5,
"created_datetime": "2023-01-01T00:00:00"
}
}'