modified chats api to use ids rather than uuids