> ## 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.

# Jelajahi atau cari direktori saluran publik

> Meniru layar "Cari saluran" pada aplikasi resmi. Tanpa
`search_text`, operasi ini menjelajahi `view` dan memerlukan setidaknya satu kode
negara; dengan `search_text`, operasi ini mencari saluran berdasarkan nama (kode negara
tidak didukung dalam pencarian). Gunakan `cursor` untuk paginasi selama
`has_more` bernilai true. Menggunakan kueri WhatsApp yang tidak terdokumentasi yang ditangkap dari
WhatsApp Web, yang dapat berubah tanpa pemberitahuan.




## OpenAPI

````yaml /id/openapi.yml get /newsletter/directory
openapi: 3.0.0
info:
  title: WhatsApp API MultiDevice
  version: 9.7.0
  description: >
    API ini digunakan untuk mengirim pesan WhatsApp melalui API.


    Dashboard web merupakan proyek terpisah (gowa-ui); server mengunduh aset
    rilis

    terbarunya dan menyajikannya di `/` (atau mengembalikan banner JSON saat

    APP_UI_ENABLED=false).


    Cakupan perangkat:

    - Kirim `X-Device-Id` pada semua panggilan REST yang memiliki cakupan
    perangkat.

    - WebSocket: hubungkan ke `/ws?device_id=<id>`.

    - Autentikasi WebSocket (saat autentikasi dasar diaktifkan): browser tidak
    dapat menyetel
      header Authorization pada koneksi WebSocket, sehingga sertakan juga
      `&authorization=<base64(user:pass)>` dalam query string. Gunakan TLS di
      produksi karena kredensial terlihat di URL.
servers:
  - url: http://localhost:3000
security:
  - basicAuth: []
tags:
  - name: app
    description: Koneksi awal ke server WhatsApp
  - name: device
    description: Pengelolaan perangkat untuk dukungan multi-perangkat
  - name: user
    description: Mengambil informasi
  - name: send
    description: Kirim pesan (teks/gambar/berkas/video).
  - name: message
    description: Manipulasi pesan (cabut/beri reaksi/perbarui).
  - name: call
    description: Pengelolaan panggilan (tolak panggilan masuk)
  - name: chat
    description: Percakapan chat dan perpesanan
  - name: group
    description: Pengaturan grup
  - name: newsletter
    description: Pengaturan newsletter
  - name: chatwoot
    description: Integrasi Chatwoot untuk dukungan pelanggan
paths:
  /newsletter/directory:
    get:
      tags:
        - newsletter
      summary: Jelajahi atau cari direktori saluran publik
      description: >
        Meniru layar "Cari saluran" pada aplikasi resmi. Tanpa

        `search_text`, operasi ini menjelajahi `view` dan memerlukan setidaknya
        satu kode

        negara; dengan `search_text`, operasi ini mencari saluran berdasarkan
        nama (kode negara

        tidak didukung dalam pencarian). Gunakan `cursor` untuk paginasi selama

        `has_more` bernilai true. Menggunakan kueri WhatsApp yang tidak
        terdokumentasi yang ditangkap dari

        WhatsApp Web, yang dapat berubah tanpa pemberitahuan.
      operationId: searchNewsletterDirectory
      parameters:
        - $ref: '#/components/parameters/DeviceIdHeader'
        - name: view
          in: query
          required: false
          schema:
            type: string
            enum:
              - RECOMMENDED
              - TRENDING
              - POPULAR
              - NEW
              - FEATURED
            default: RECOMMENDED
        - name: search_text
          in: query
          required: false
          schema:
            type: string
          example: news
        - name: country_codes
          in: query
          required: false
          description: >-
            Kode ISO 3166-1 alpha-2, diulang atau dipisahkan koma. Wajib saat
            menjelajahi tampilan.
          schema:
            type: array
            items:
              type: string
          example:
            - ID
        - name: categories
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
              enum:
                - BUSINESS
                - ENTERTAINMENT
                - LIFESTYLE
                - NEWS
                - ORGANIZATIONS
                - PEOPLE
                - SPORTS
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 50
        - name: cursor
          in: query
          required: false
          description: next_cursor dari halaman sebelumnya
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewsletterDirectoryResponse'
        '400':
          description: Permintaan Tidak Valid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBadRequest'
        '500':
          description: Kesalahan Internal Server
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInternalServer'
components:
  parameters:
    DeviceIdHeader:
      name: X-Device-Id
      in: header
      required: false
      description: >
        Pengenal perangkat untuk dukungan multi-device. Wajib jika beberapa
        perangkat terdaftar.

        Jika hanya satu perangkat terdaftar, perangkat tersebut digunakan
        sebagai default.

        Dapat juga diberikan sebagai parameter kueri `device_id`.
      schema:
        type: string
        example: my-device-id
  schemas:
    NewsletterDirectoryResponse:
      type: object
      properties:
        code:
          type: string
          example: SUCCESS
        message:
          type: string
          example: Success search newsletter directory
        results:
          type: object
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/Newsletter'
            next_cursor:
              type: string
              example: GTby6Oiy0/jOqwPYxYXQtvjOqwPC0uaVue3OqwMZ
            has_more:
              type: boolean
              example: true
    ErrorBadRequest:
      type: object
      properties:
        code:
          type: string
          example: 400
          description: Kode Status HTTP
        message:
          type: string
          example: field cannot be blank
          description: Pesan kesalahan terperinci
        results:
          type: object
          example: null
          description: data tambahan
    ErrorInternalServer:
      type: object
      properties:
        code:
          type: string
          example: INTERNAL_SERVER_ERROR
          description: SYSTEM_CODE_ERROR
        message:
          type: string
          example: you are not loggin
          description: Pesan kesalahan terperinci
        results:
          type: object
          example: null
          description: data tambahan
    Newsletter:
      type: object
      properties:
        id:
          type: string
          example: 120363144038483540@newsletter
        state:
          type: object
          properties:
            type:
              type: string
              example: active
        thread_metadata:
          type: object
          properties:
            creation_time:
              type: string
              example: '1688746895'
            invite:
              type: string
              example: 0029Va4K0PZ5a245NkngBA2M
            name:
              type: object
              properties:
                text:
                  type: string
                  example: WhatsApp
                id:
                  type: string
                  example: '1688746895480511'
                update_time:
                  type: string
                  example: '1688746895480511'
            description:
              type: object
              properties:
                text:
                  type: string
                  example: >-
                    WhatsApp's official channel. Follow for our latest feature
                    launches, updates, exclusive drops and more.
                id:
                  type: string
                  example: '1689653839450668'
                update_time:
                  type: string
                  example: '1689653839450668'
            subscribers_count:
              type: string
              example: '0'
            verification:
              type: string
              example: verified
            picture:
              type: object
              properties:
                url:
                  type: string
                  example: ''
                id:
                  type: string
                  example: '1707950960975554'
                type:
                  type: string
                  example: IMAGE
                direct_path:
                  type: string
                  example: >-
                    /v/t61.24694-24/416962407_970228831134395_8869146381947923973_n.jpg?ccb=11-4&oh=01_Q5AaIIvOIeu3l0HCZWILrmr-dGR_vXFqnhUeytw0-ojPc4hL&oe=670D95B1&_nc_sid=5e03e0&_nc_cat=110
            preview:
              type: object
              properties:
                url:
                  type: string
                  example: ''
                id:
                  type: string
                  example: '1707950960975554'
                type:
                  type: string
                  example: PREVIEW
                direct_path:
                  type: string
                  example: >-
                    /v/t61.24694-24/416962407_970228831134395_8869146381947923973_n.jpg?stp=dst-jpg_s192x192&ccb=11-4&oh=01_Q5AaIHO-DQklqm3q3awF7xwji_WAn9DkgZASQA0B2Ct0qbSa&oe=670D95B1&_nc_sid=5e03e0&_nc_cat=110
            settings:
              type: object
              properties:
                reaction_codes:
                  type: object
                  properties:
                    value:
                      type: string
                      example: ALL
        viewer_metadata:
          type: object
          nullable: true
          description: Null saat metadata khusus pemirsa tidak tersedia.
          properties:
            mute:
              type: string
              example: 'off'
            role:
              type: string
              example: subscriber
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

- [Saluran WhatsApp](https://gowa-docs.mintlify.site/id/examples/newsletters.md)
- [Integrasi Chatwoot](https://gowa-docs.mintlify.site/id/integrations/chatwoot.md)
- [Dapatkan metadata newsletter (saluran)](https://gowa-docs.mintlify.site/id/api-reference/newsletter/dapatkan-metadata-newsletter-saluran.md)
- [Sesi & Siklus Koneksi](https://gowa-docs.mintlify.site/id/concepts/sessions.md)
- [Penanganan Media](https://gowa-docs.mintlify.site/id/examples/media-handling.md)


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