This endpoint serves the purpose of fetching worker’s active chats based on unique worker ID.
cURL
curl --request GET \ --url https://api.roostedhr.com/api/1_12/workers/{id}/chats \ --header 'X-API-KEY: <api-key>'
{ "total_chats": 123, "chats": [ { "id": "<string>", "auto_add_workers": 0, "event_id": "<string>", "chat_admin": 0, "silenced": 0, "on_chat": 0, "date_created": "<string>", "name": "<string>", "most_recent_message_id": "<string>", "locked": 0, "last_message_timestamp": "<string>", "message": "<string>", "name_first": "<string>", "selected_picture_location": "<string>", "chats_order": "<string>", "unread_count": 1 } ] }
Worker ID
Fetches all chats if true
Offset for pagination
Title search query for chats
OK
Show child attributes