الانتقال إلى المحتوى الرئيسي
GET
curl
تُرجع واجهة برمجة تطبيقات الموافقة على الرسائل في Didit موافقة المستلم لكل قناة يوجد لدى تطبيقك سجل لها، مع بيان مصدر كل سجل ووقت آخر تغيير له. لا تُدرج القناة التي ليس لها سجل. تقبل to أحد ثلاثة أنواع من المستلمين، ولكل نوع قنواته الخاصة: شفّر to بترميز النسبة المئوية في المسار: تتحول علامة + في الرقم إلى %2B. إذا لم تكن قيمة to واحدة من الأنواع الثلاثة، فإن الاستجابة هي {"channels": [], "reassigned": false}. قيمة reassigned دائمًا false: لا يكتشف هذا الإصدار ما إذا تغيّر مالك الرقم، ولا يُتخطّى أي إرسال بسبب ذلك. يحتاج مفتاح API محدود النطاق إلى صلاحية قراءة للرسائل.
لتسجيل الموافقة على الاشتراك أو إلغائها، حدّث الموافقة.

التفويضات

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.

آخر تعديل في ٢٤ نوفمبر ٢٠٢٦