Skip to main content
GET
curl
Didit’s Messaging Consent API returns a recipient’s consent for every channel your application has a record on, with where each record came from and when it changed. A channel with no record is not listed. to is one of three recipient types, and each has its own channels: Percent-encode to in the path: a number’s + becomes %2B. A to that is none of the three answers {"channels": [], "reassigned": false}. reassigned is always false: this release does not detect that a number changed owner, and no send is skipped for it. A scoped API key needs read access to messages.
To record an opt-in or an opt-out, update the consent.

Authorizations

x-api-key
string
header
required

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.

Path Parameters

to
string
required

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

Example:

"+34600000012"

Response

The recipient's consent per channel.

channels
object[]
required

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

reassigned
boolean
required

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

Last modified on November 24, 2026