Retrieves all conversations for the authenticated user
cURL
curl --request GET \ --url http://localhost:3000/api/conversations/get-conversations
{ "conversations": [ { "id": "<string>", "artistId": "<string>", "clientId": "<string>", "otherUserName": "<string>", "otherUserPhotoURL": "<string>", "otherUserUsername": "<string>", "lastMessage": {}, "unreadCounts": {} } ] }
The view perspective (artist or client)
artist
client
Conversations retrieved successfully
Show child attributes
Conversation ID
Artist user ID
Client user ID
Display name of the other user in the conversation
Photo URL of the other user
Username of the other user (if they are an artist)
The last message in the conversation
Unread message counts for each participant