Zum Hauptinhalt springen
GET
curl
Die Messaging Consent API von Didit gibt die Einwilligung eines Empfängers für jeden Kanal zurück, zu dem Ihre Anwendung einen Eintrag hat, samt Herkunft des Eintrags und Zeitpunkt der letzten Änderung. Ein Kanal ohne Eintrag wird nicht aufgeführt. to ist einer von drei Empfängertypen, und jeder hat eigene Kanäle: Prozentkodieren Sie to im Pfad: Das + einer Nummer wird zu %2B. Ein to, das keiner der drei Typen entspricht, liefert {"channels": [], "reassigned": false}. reassigned ist immer false: Diese Version erkennt nicht, wenn eine Nummer den Inhaber wechselt, und für sie wird kein Versand übersprungen. Ein API-Schlüssel mit entsprechendem Geltungsbereich benötigt Lesezugriff auf Nachrichten.
Um ein Opt-in oder ein Opt-out zu erfassen, aktualisieren Sie die Einwilligung.

Autorisierungen

x-api-key
string
header
erforderlich

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.

Pfadparameter

to
string
erforderlich

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

Beispiel:

"+34600000012"

Antwort

The recipient's consent per channel.

channels
object[]
erforderlich

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

reassigned
boolean
erforderlich

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

Zuletzt geändert am 24. November 2026