"properties": {"type": {"equals": "chat"}}
url = "https://api.helicone.ai/v1/request/query" payload = {"filter": {"properties": {"type": {"equals": "chat"}}}} payload = { "filter": { "feedback": { "created_at": { "gt": '2024-04-01T00:00:00', #start_time_dt.isoformat() }}, "properties": {"type": {"equals": "chat"}} }, "limit": 10, "offset": 0, "sort": {"created_at": "desc"}, "isCached": False } headers = { "authorization": os.getenv("HELICONE_API_KEY"), "Content-Type": "application/json" } response = requests.request("POST", url, json=payload, headers=headers)
{ "left": { "feedback": { "created_at": { "gt": '2024-04-01T00:00:00', #start_time_dt.isoformat() } }, }, "right": { "properties": {"type": {"equals": "chat"}} }, "operator": "and" }
{ left: { left: { properties: { billing_key: { equals: "test" } }, }, right: { properties: { type: { equals: "chat" } }, }, operator: "or", }, right: { feedback: { created_at: { gt: "2024-04-01T00:00:00", }, }, }, operator: "and", }
{ left: { left: { properties: { billing_key: { equals: "test" } }, }, right: { properties: { type: { equals: "chat" } }, }, operator: "or", }, right: { request: { created_at: { gt: "2024-04-01T00:00:00", }, }, }, operator: "and", },
"Request created at > 4/01" AND (type == "chat" OR billing_key == "test")