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

# Bir bülten mesajındaki medyayı indir

> Bir bülten mesajını sunucu kimliğiyle doğrudan WhatsApp üzerinden getirir,
medyasını sunucunun statics dizinine indirir ve kaydedilen
dosyanın meta verilerini ve herkese açık URL adresini döndürür. Desteklenen medya türleri resimler,
videolar, video notları, sesler, belgeler ve çıkartmalardır.




## OpenAPI

````yaml /tr/openapi.yml get /newsletter/messages/{server_id}/download
openapi: 3.0.0
info:
  title: WhatsApp Çoklu Cihaz API’si
  version: 9.7.0
  description: >
    Bu API, API üzerinden WhatsApp mesajları göndermek için kullanılır.


    Web panosu ayrı bir projedir (gowa-ui); sunucu bu projenin

    en son sürüm dosyasını indirir ve `/` yolunda sunar (veya

    APP_UI_ENABLED=false olduğunda bir JSON başlığı döndürür).


    Cihaz kapsamı:

    - Cihaz kapsamındaki tüm REST çağrılarında `X-Device-Id` gönderin.

    - WebSocket: `/ws?device_id=<id>` adresine bağlanın.

    - WebSocket kimlik doğrulaması (temel kimlik doğrulaması etkinken):
    tarayıcılar WebSocket bağlantılarında
      Authorization üst bilgisi ayarlayamaz; bu nedenle sorgu dizesinde ayrıca
      `&authorization=<base64(user:pass)>` geçirin. Kimlik bilgisi URL’de göründüğünden
      üretim ortamında TLS kullanın.
servers:
  - url: http://localhost:3000
security:
  - basicAuth: []
tags:
  - name: app
    description: WhatsApp sunucusuna ilk bağlantı
  - name: device
    description: Çoklu cihaz desteği için cihaz yönetimi
  - name: user
    description: Bilgi alma
  - name: send
    description: Mesaj gönderme (Metin/Görsel/Dosya/Video).
  - name: message
    description: Mesaj işlemleri (geri alma/tepki verme/güncelleme).
  - name: call
    description: Arama yönetimi (gelen aramaları reddetme)
  - name: chat
    description: Sohbetler ve mesajlaşma
  - name: group
    description: Grup ayarları
  - name: newsletter
    description: Bülten ayarları
  - name: chatwoot
    description: Müşteri desteği için Chatwoot entegrasyonu
paths:
  /newsletter/messages/{server_id}/download:
    get:
      tags:
        - newsletter
      summary: Bir bülten mesajındaki medyayı indir
      description: >
        Bir bülten mesajını sunucu kimliğiyle doğrudan WhatsApp üzerinden
        getirir,

        medyasını sunucunun statics dizinine indirir ve kaydedilen

        dosyanın meta verilerini ve herkese açık URL adresini döndürür.
        Desteklenen medya türleri resimler,

        videolar, video notları, sesler, belgeler ve çıkartmalardır.
      operationId: downloadNewsletterMessageMedia
      parameters:
        - $ref: '#/components/parameters/DeviceIdHeader'
        - name: server_id
          in: path
          required: true
          description: >-
            GET /newsletter/messages tarafından döndürülen bülten mesajı sunucu
            kimliği
          schema:
            type: integer
            minimum: 1
          example: 8872
        - name: newsletter_id
          in: query
          required: true
          description: Mesajı içeren bültenin JID değeri
          schema:
            type: string
          example: 120363024512399999@newsletter
      responses:
        '200':
          description: Medya başarıyla indirildi
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewsletterMediaDownloadResponse'
        '400':
          description: Geçersiz İstek
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBadRequest'
        '500':
          description: Mesaj araması veya medya indirme başarısız oldu
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInternalServer'
components:
  parameters:
    DeviceIdHeader:
      name: X-Device-Id
      in: header
      required: false
      description: >
        Çoklu cihaz desteği için cihaz tanımlayıcısı. Birden fazla cihaz
        kayıtlıysa zorunludur.

        Yalnızca bir cihaz kayıtlıysa varsayılan olarak kullanılır.

        `device_id` sorgu parametresi olarak da belirtilebilir.
      schema:
        type: string
        example: my-device-id
  schemas:
    NewsletterMediaDownloadResponse:
      type: object
      properties:
        status:
          type: integer
          example: 200
        code:
          type: string
          example: SUCCESS
        message:
          type: string
          example: Media downloaded successfully
        results:
          type: object
          properties:
            server_id:
              type: integer
              example: 8872
            message_id:
              type: string
              example: ACBD7F85529AAD63FAF376F622351D14
            status:
              type: string
              example: >-
                Media downloaded successfully to
                statics/media/120363024512399999/2026-08-28/image.jpg
            media_type:
              type: string
              enum:
                - image
                - video
                - video_note
                - audio
                - document
                - sticker
              example: image
            mime_type:
              type: string
              example: image/jpeg
            filename:
              type: string
              example: image.jpg
            file_path:
              type: string
              description: İndirilen medyanın kaydedildiği yerel sunucu yolu
              example: statics/media/120363024512399999/2026-08-28/image.jpg
            file_url:
              type: string
              description: Kaydedilen medya dosyasının herkese açık URL adresi
              example: >-
                http://localhost:3000/statics/media/120363024512399999/2026-08-28/image.jpg
            file_size:
              type: integer
              format: int64
              example: 524288
    ErrorBadRequest:
      type: object
      properties:
        code:
          type: string
          example: 400
          description: HTTP Durum Kodu
        message:
          type: string
          example: field cannot be blank
          description: Ayrıntılı hata mesajı
        results:
          type: object
          example: null
          description: ek veriler
    ErrorInternalServer:
      type: object
      properties:
        code:
          type: string
          example: INTERNAL_SERVER_ERROR
          description: SYSTEM_CODE_ERROR
        message:
          type: string
          example: you are not loggin
          description: Ayrıntılı hata mesajı
        results:
          type: object
          example: null
          description: ek veriler
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

- [Mesaj alma](https://gowa-docs.mintlify.site/tr/examples/receiving-messages.md)
- [Mesajdan medya indir](https://gowa-docs.mintlify.site/tr/api-reference/message/mesajdan-medya-indir.md)
- [WhatsApp kanalları](https://gowa-docs.mintlify.site/tr/examples/newsletters.md)
- [En son bülten (kanal) mesajlarını getir](https://gowa-docs.mintlify.site/tr/api-reference/newsletter/en-son-bülten-kanal-mesajlarını-getir.md)
- [Katılımcıları üyeliğe indir](https://gowa-docs.mintlify.site/tr/api-reference/group/katılımcıları-üyeliğe-indir.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.