I am getting this error:
{'message': 'The request could not be understood by the server due to malformed syntax.', 'code': 'bad.request', 'status': 400, 'contextId': 'e1afaf83-0d02-4ff6-94ff-d56fc94e6154', 'details': [], 'errors': []}
while trying to access this endpoint:
POST /api/v2/analytics/users/aggregates/query
I don't know what's wrong with your request exactly, but the HTTP payload you're sending is malformed in some way. My guess is that your code is sending request_body as a stringified python object or maybe form data and isn't serializing it to JSON first. The specific error for that correlation ID is "Error code [bad.request] type [JsonParseException] message [Unrecognized token 'interval': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')]"