Sort is not working

Hi Im trying to sort values DESC, however everythin i tried for all fileds is not working. API is still returning oldest data. My code:

url = “https://api.hubapi.com/conversations/v3/conversations/threads
headers = {
‘accept’: “application/json”,
‘authorization’: f’Bearer {api_key}’
}
params = {‘threadStatus’: ‘OPEN’, “limit”:“500”, “sorts”: [
{
“propertyName”: “createdAt”,
“direction”: “DESCENDING”
}
]}

response = requests.request(“GET”, url, headers=headers, params = params)

Hey, @JDeak When I look at the documentation for using the sort param for this endpoint, it indicates that the endpoint only allows for sorting by `id` (default) or `latestMessageTimestamp`, and results are returned in ascending order only.
“sort

String

Set the sort order of the response. Valid options include id , which is the default, and latestMessageTimestamp , which requires the latestMessageTimestampAfter field to also be set. Results are always returned in ascending order.”

In this case, sorting by `createdAt` in descending order isn’t supported.

Best,

Jaycee

Hi Jaycee. even if i try sort with -id, its not working. ist only working, as asc…