Helicone Community Page

Updated 3 months ago

Request/response bodies from API

Hi, team. I am having trouble accessing the response body from the API. I want to get the JSON history of the conversation trace.

https://docs.helicone.ai/rest/request/post-v1requestquery
Here's what I am seeing in the data coming back from the request:

'request_body': {'helicone_message': 'Request body no longer supported. To retrieve request body, please contact [email protected]'}, 'response_body': {'helicone_message': 'Response body no longer supported. To retrieve response body, please contact [email protected]'},

Here's the request code I am using for context:

import requests import os url = "https://api.helicone.ai/v1/request/query" payload = { "filter": "all", "isCached": False, "limit": 10, "offset": 0, "sort": {"created_at": "desc"}, "isScored": False, "isPartOfExperiment": False } headers = { "authorization": os.environ.get("HELICONE_API_KEY"), "Content-Type": "application/json" } response = requests.request("POST", url, json=payload, headers=headers) print(response.text)
D
C
7 comments
Request/response bodies from API
Hi , we now return signed_body_url field. This is a link to the request/response body s3 object. We had to make this switch due to the extremely large sizes of the bodies.
You will need to open that link in a browser and/or fetch the bodies from that url.
For any bodies older than 3 months, we no longer surface that data and it is not available in S3.

If you would like to retrieve that old data, that is a longer process we cannot complete urgently.
Thank you so much , trying with that now!
Working as expected, thanks again!
Great. Happy to hear that!
Add a reply
Sign up and join the conversation on Discord