Helicone Community Page

Updated 3 weeks ago

Troubleshooting api requests with helicone

Sorry for one more question. Suggested by the dashboard, I tried to get the requests from API but I got an error like this:

{"error":"No API key found","trace":"isAuthenticated.error"}

Would it be caused by the EU data region, or any other reasons? I am sure that my API is valid as I am still using it.



import requests

url = "https://api.helicone.ai/v1/request/query-clickhouse"

payload = {
"filter": "all",
"isCached": False,
"limit": 10,
"offset": 0,
"sort": {"created_at": "desc"},
"isScored": False,
"isPartOfExperiment": False
}
headers = {
"authorization": HELICONE_API_KEY,
"Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)
Add a reply
Sign up and join the conversation on Discord