Recent searches


No recent searches

Ability to retrieve count of unread responses



Posted Jul 29, 2022

Is there any way in the API to retrieve the number of unread posts for a given user?  We want to be able to signal to the user that they have responses (outside of the typical e-mail notification), but we are not seeing an easy way to do that within the existing API methods.


0

5

5 comments

image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Andrew, 

Could you give me a bit more information on what you're looking for here? Are you wanting to base the amount of "unread" posts off of agent responses without an answer from the customer? 
 
Thanks!

0


Yes, that is what I would expect "unread" to be - agent responses without an answer from the customer (and the number would be specific to that customer).

0


image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Andrew,

We don't have an endpoint that you could call to get this number easily. That being said, you could write a script to call the list comments endpoint and count the amount of public agent comments since the last customer response. Either way, I'll log this as feedback and pass it along to the Product team to see if this is something they'd like to add in the future. 
 
Thanks!

1


Is there an easy way within the comment response to determine if it is a customer versus agent comment?  I am assuming it would have to be something based off the author_id

0


image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Andrew,
 
You're correct, the easiest way would be to base it off the author_id. 
 
Thanks!

1


Please sign in to leave a comment.

Didn't find what you're looking for?

New post