# Get group messages

Retrieve the message history for a specific WhatsApp group with pagination.

Endpoint: GET /payless4messaging-service/WhatsApp/api/v1/groups/{groupId}/messages
Version: 3.0.0
Security: apikeyAuth

## Security:

  - `apikeyAuth` (unknown)
    apiKey in header Authorization

## Path parameters:

  - `groupId` (string, required)
    The WhatsApp group JID.

## Query parameters:

  - `page` (integer)
    Zero-based page index.

  - `size` (integer)
    Number of records per page.

## Response 200:

  - `200` (unknown)
    Paginated list of messages for the specified WhatsApp group

## Response 200 fields (application/json):

  - `content` (array)

  - `content.id` (string)
    Example: d0e1f2a3-b4c5-6789-d0e1-f2a3b4c56789

  - `content.groupId` (string)
    ID of the group this message belongs to.
    Example: c0d1e2f3-a4b5-6789-c0d1-e2f3a4b56789

  - `content.senderName` (string | null)
    Example: John Doe

  - `content.senderNumber` (string)
    Example: +27821234567

  - `content.message` (string)
    Example: Meeting at 3pm today.

  - `content.contentType` (string)
    Enum: "TEXT", "IMAGE", "DOCUMENT", "VIDEO", "AUDIO", "VOICE", "LOCATION", "FILE", "BUTTON", "CAROUSEL", "DROPDOWN", "DATE", "MEDIA", "RATING"

  - `content.direction` (string)
    Enum: "OUTGOING", "INCOMING"

  - `content.mediaType` (string | null)
    Enum: "DOCUMENT", "IMAGE", "VIDEO", "AUDIO", "VOICE", "BUTTON", "FILE", "null"

  - `content.caption` (string | null)
    Example: null

  - `content.filename` (string | null)
    Example: null

  - `content.mimetype` (string | null)
    Example: null

  - `content.fileSize` (integer)
    Example: 0

  - `content.fileExtension` (string | null)
    Example: null

  - `content.channel` (string)
    Enum: "WHATSAPP", "WEB", "FACEBOOK"

  - `content.mediaUrl` (string | null)
    Example: null

  - `content.createdAt` (string | null)
    Example: 2026-01-15T10:30:00Z

  - `content.sent` (boolean)
    Example: true

  - `content.sentAt` (string | null)
    Example: 2026-01-15T10:30:01Z

  - `content.delivered` (boolean)
    Example: false

  - `content.deliveredAt` (string | null)
    Example: null

  - `content.read` (boolean)
    Example: false

  - `content.readAt` (string | null)
    Example: null

  - `content.messageId` (string | null)
    WhatsApp message ID.
    Example: 3EB0B430A7C9D1F2

  - `content.reactions` (array | null)
    Example: []

  - `content.reactions.reactorName` (string)
    Example: John Doe

  - `content.reactions.reactorNumber` (string)
    Example: +27821234567

  - `content.reactions.reactionEmoji` (string)
    Example: 👍

  - `content.previewTitle` (string | null)
    Example: null

  - `content.previewDescription` (string | null)
    Example: null

  - `content.previewUrl` (string | null)
    Example: null

  - `content.previewImageUrl` (string | null)
    Example: null

  - `totalElements` (integer)
    Example: 100

  - `totalPages` (integer)
    Example: 10

