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

# Send Group Media

> Send a media message (image, video, audio, document) to a WhatsApp group.

Creates a Message record, sets chat_type="group", and enqueues
the message for async delivery via the RQ worker.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/groups/send/media
openapi: 3.1.0
info:
  title: wazzapi Public API
  description: >-
    Public API surface for external API-key clients. Only stable /api/v1
    endpoints are included.


    ## Webhook deliveries

    This reference also includes the webhook requests Wazzapi sends to your
    endpoint for incoming messages, message status updates, and device status
    changes. See the `Incoming webhooks` section in the sidebar for headers,
    payload fields, and concrete examples.
  version: 1.0.0
servers: []
security: []
tags:
  - name: Incoming webhooks
    description: >-
      POST deliveries that Wazzapi sends to your webhook endpoint after you
      subscribe to supported events. Verify the signature against the raw body
      and return a 2xx response quickly.
paths:
  /api/v1/groups/send/media:
    post:
      tags:
        - groups
      summary: Send Group Media
      description: >-
        Send a media message (image, video, audio, document) to a WhatsApp
        group.


        Creates a Message record, sets chat_type="group", and enqueues

        the message for async delivery via the RQ worker.
      operationId: send_group_media_api_v1_groups_send_media_post
      parameters:
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendGroupMediaRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendGroupResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SendGroupMediaRequest:
      properties:
        session_name:
          type: string
          minLength: 1
          title: Session Name
          description: WhatsApp session name
        group_jid:
          type: string
          minLength: 1
          title: Group Jid
          description: Group JID (e.g., 123456789@g.us)
        media_url:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
          title: Media Url
          description: URL of the media file
        media_base64:
          anyOf:
            - type: string
            - type: 'null'
          title: Media Base64
          description: >-
            Base64-encoded media content or data URI. Takes precedence over
            media_url.
        media_type:
          type: string
          pattern: ^(image|video|audio|document)$
          title: Media Type
          description: Media type
        caption:
          anyOf:
            - type: string
            - type: 'null'
          title: Caption
          description: Optional caption
        filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Filename
          description: Optional filename override (for documents)
        mimetype:
          anyOf:
            - type: string
            - type: 'null'
          title: Mimetype
          description: MIME type hint for inline media
      type: object
      required:
        - session_name
        - group_jid
        - media_type
      title: SendGroupMediaRequest
      description: Request to send a media message to a group.
    SendGroupResponse:
      properties:
        success:
          type: boolean
          title: Success
        message_id:
          type: string
          title: Message Id
        status:
          type: string
          title: Status
        run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Run Id
      type: object
      required:
        - success
        - message_id
        - status
      title: SendGroupResponse
      description: Response from sending a group message.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````