Vai al contenuto principale
GET
curl
L’API Messaging Consent di Didit restituisce il consenso di un destinatario per ogni canale per il quale la tua applicazione ha un record, con l’indicazione della fonte da cui proviene ciascun record e della data della sua ultima modifica. Un canale senza record non viene elencato. to è uno dei tre tipi di destinatario, e ciascuno ha i propri canali: Codifica in percentuale to nel percorso: il + di un numero diventa %2B. Un to che non corrisponde a nessuno dei tre tipi restituisce {"channels": [], "reassigned": false}. reassigned è sempre false: questa versione non rileva se un numero ha cambiato titolare e nessun invio viene saltato per questo motivo. Una chiave API con ambito limitato richiede l’accesso in lettura ai messaggi.
Per registrare un opt-in o un opt-out, aggiorna il consenso.

Autorizzazioni

x-api-key
string
header
obbligatorio

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.

Parametri del percorso

to
string
obbligatorio

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

Esempio:

"+34600000012"

Risposta

The recipient's consent per channel.

channels
object[]
obbligatorio

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

reassigned
boolean
obbligatorio

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

Ultima modifica il 24 novembre 2026