मुख्य सामग्री पर जाएं
GET
curl
Didit की Messaging Consent API आपके एप्लिकेशन के पास जिस भी चैनल का रिकॉर्ड है, उस हर चैनल के लिए प्राप्तकर्ता की सहमति लौटाती है, साथ ही यह भी बताती है कि हर रिकॉर्ड कहाँ से आया और कब बदला गया। जिस चैनल का कोई रिकॉर्ड नहीं है, वह सूची में शामिल नहीं होता। to तीन प्रकार के प्राप्तकर्ताओं में से एक होता है, और हर एक के अपने चैनल होते हैं: पथ में to को प्रतिशत-एन्कोड करें: नंबर का + %2B बन जाता है। जो to इनमें से किसी भी प्रकार का नहीं है, वह {"channels": [], "reassigned": false} लौटाता है। reassigned हमेशा false होता है: यह रिलीज़ यह पता नहीं लगाती कि कोई नंबर अपना मालिक बदल चुका है, और इसके कारण कोई संदेश भेजना नहीं छोड़ा जाता। स्कोप्ड API कुंजी को संदेश पढ़ने की पहुँच की आवश्यकता होती है।
opt-in या opt-out दर्ज करने के लिए, सहमति अपडेट करें।

प्राधिकरण

x-api-key
string
header
आवश्यक

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.

पथ पैरामीटर

to
string
आवश्यक

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

उदाहरण:

"+34600000012"

प्रतिक्रिया

The recipient's consent per channel.

channels
object[]
आवश्यक

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

reassigned
boolean
आवश्यक

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

अंतिम संशोधन 24 नवंबर 2026