> ## Documentation Index
> Fetch the complete documentation index at: https://docs.traza.com.au/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Conversations

> Retrieves all conversations for the authenticated user



## OpenAPI

````yaml GET /conversations/get-conversations
openapi: 3.1.0
info:
  title: Tatu API
  description: API documentation for Tatu's booking and artist management system
  version: 1.0.0
servers:
  - url: http://localhost:3000/api
    description: Development server
security: []
paths:
  /conversations/get-conversations:
    get:
      summary: Get Conversations
      description: Retrieves all conversations for the authenticated user
      parameters:
        - name: view
          in: query
          required: true
          schema:
            type: string
            enum:
              - artist
              - client
          description: The view perspective (artist or client)
      responses:
        '200':
          description: Conversations retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetConversationsResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    GetConversationsResponse:
      type: object
      properties:
        conversations:
          type: array
          items:
            $ref: '#/components/schemas/ConversationDisplay'
    Error:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    ConversationDisplay:
      type: object
      properties:
        id:
          type: string
          description: Conversation ID
        artistId:
          type: string
          description: Artist user ID
        clientId:
          type: string
          description: Client user ID
        otherUserName:
          type: string
          description: Display name of the other user in the conversation
        otherUserPhotoURL:
          type: string
          description: Photo URL of the other user
        otherUserUsername:
          type: string
          description: Username of the other user (if they are an artist)
        lastMessage:
          type: object
          description: The last message in the conversation
        unreadCounts:
          type: object
          description: Unread message counts for each participant

````