API endpoint for channel unread count

Hello, I use flutter sdk but there no function for channel unread count like this docs , so I want use your API, can you provide the endpoint name that should be used?

@AmityAsk You can use the following API endpoint to retrieve the channel unread count: Channel Unread Count Endpoint.

If you have any other questions or need further assistance, feel free to ask!

1 Like

Hi @amitysupport thanks for the reply.
And now I want to Mark Channel as Read via API, can you provide the endpoint name again for that feature? Thanks

Hello, you can access all the APIs related to unread count here: Amity API. Please note that it’s not feasible to implement this using both the API and SDK simultaneously.

1 Like

I always get a response

  "status": "error",
  "message": "Not found",
  "code": 500000,
  "data": {}

from API Mark all messages in channel as read

Hello @AmityAsk , Let me pass this to our team for checking, and I’ll get back to you.

Hello, could you please try the below sample:

curl --location --request PUT 'https://api.us.amity.co/api/v1/markers/channels/6667e5966e40f87c2f5b7ef0/mark-read' \
--header 'accept: application/json, text/plain, */*' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6Ikxxxx'