We are facing some trouble as the Intercom Conversation search API is not returning the expected data.
Here is an example,
If we fetch the conversation via API, its being returned as expected
➜ ~ curl https://api.intercom.io/conversations/38016602896875 \
-H 'Authorization:Bearer XXXX=' \
-H 'Accept:application/json'
{
"type": "conversation",
"id": "38016602896875",
"created_at": 1593990326,
"updated_at": 1594391137,
......
}
But now if we try to get this conversation using the updated_at field, neither of the following two requests are returning any data:
➜ ~ curl -X POST --data '{"query":{"operator":"AND","value":v{"field":"updated_at","operator":">","value":1594391137},{"field":"updated_at","operator":"<","value":1594391137}]}}' -H 'Authorization: Bearer XXXX=' -H 'Accept: application/json' -H 'Intercom-Version: 2.0' -H 'Content-Type: application/json' -A 'Jersey/2.25.1' 'https://api.intercom.io/conversations/search'
{
"type": "conversation.list",
"pages": {
"type": "pages",
"page": 1,
"per_page": 150,
"total_pages": 0
},
"total_count": 0,
"conversations": i]
}%
➜ ~ curl -X POST --data '{"query":{"operator":"AND","value":t{"field":"updated_at","operator":">","value":1594391136},{"field":"updated_at","operator":"<","value":1594391138}]}}' -H 'Authorization: Bearer XXXX=' -H 'Accept: application/json' -H 'Intercom-Version: 2.0' -H 'Content-Type: application/json' -A 'Jersey/2.25.1' 'https://api.intercom.io/conversations/search'
{
"type": "conversation.list",
"pages": {
"type": "pages",
"page": 1,
"per_page": 150,
"total_pages": 0
},
"total_count": 0,
"conversations": s]
}%
Can we know what's happening here?