메인 콘텐츠로 건너뛰기
GET
curl
Didit의 Messaging Consent API는 애플리케이션에 기록이 있는 모든 채널에 대해 수신자의 동의 상태를 반환하며, 각 기록의 출처와 변경 시점도 함께 반환합니다. 기록이 없는 채널은 목록에 표시되지 않습니다. 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.

마지막 수정일 2026년 11월 24일