Langsung ke konten utama
GET
curl
Messaging Consent API Didit mengembalikan persetujuan penerima untuk setiap channel yang memiliki catatan di aplikasi Anda, beserta sumber setiap catatan dan waktu perubahannya. Channel yang tidak memiliki catatan tidak ditampilkan. to adalah salah satu dari tiga jenis penerima, dan masing-masing memiliki channel sendiri: Lakukan pengodean persen pada to di jalur: tanda + pada nomor menjadi %2B. Nilai to yang tidak termasuk salah satu dari ketiga jenis di atas akan mengembalikan {"channels": [], "reassigned": false}. reassigned selalu false: rilis ini tidak mendeteksi bahwa nomor telah berganti pemilik, dan tidak ada pengiriman yang dilewati karenanya. Kunci API dengan cakupan terbatas memerlukan akses baca ke pesan.
Untuk mencatat ikut serta atau berhenti berlangganan, perbarui persetujuan.

Otorisasi

x-api-key
string
header
wajib

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

Parameter Path

to
string
wajib

The recipient: an E.164 number (+ and up to 15 ASCII digits), an email address, or a WhatsApp business-scoped user id.

Contoh:

"+34600000012"

Respons

The recipient's consent per channel.

channels
object[]
wajib

The recipient's consent per channel, for the channels you have a record on.

reassigned
boolean
wajib

Always false: this release does not detect that a number changed owner, and no send is skipped for it.

Terakhir diubah pada 24 November 2026