メインコンテンツへスキップ
GET
curl
Didit’s Messaging Consent APIは、アプリケーションが記録を持つすべてのチャネルについて、受信者の同意を、その記録の取得元と変更日時とともに返します。 記録がないチャネルは一覧に含まれません。 toは3種類の受信者のいずれかで、種類ごとに利用できるチャネルが異なります。 パス内のtoはパーセントエンコードしてください。番号の+は%2Bになります。 3種類のいずれにも当てはまらない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.

最終更新日 2026年11月24日