메인 콘텐츠로 건너뛰기
POST
curl
Didit의 Conversation Webhooks API는 HTTPS endpoint를 하나의 대화에서 발생하는 이벤트에 구독시킵니다. 구독 대상 이벤트는 message.received, message.status.updated, contact.consent.updated이며, events를 생략하면 세 이벤트를 모두 구독합니다. 모든 전송은 응답에 포함된 secret을 사용해 X-Signature-V2로 서명됩니다. 이 값은 한 번만 표시됩니다. 예시의 YOUR_PUBLIC_HOST는 직접 운영하는 공개 HTTPS 호스트로 바꾸십시오. HTTPS가 아니거나 loopback, 사설 또는 내부 주소를 가리키는 url은 샌드박스에서도 invalid_url 오류로 거부됩니다. 범위가 지정된 API 키에는 메시지에 대한 쓰기 권한과 세션에 대한 읽기 권한이 있어야 하며, 워크플로 제한과 승인된 세션만 대상으로 하는 제한도 적용됩니다. 이러한 제한을 벗어난 대화이거나 세션이 삭제된 대화이면 404로 응답합니다.
전송을 중단하려면 구독을 제거하십시오. 대화 ID는 대화 목록 조회에서 찾을 수 있습니다.

인증

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.

헤더

Idempotency-Key
string

Optional retry-safety key you choose for one operation, up to 255 characters (a UUID works). A request repeated with the same key, endpoint, query and body is answered with the first response, same status and same body, and runs and bills nothing a second time. The same key with another endpoint, query or body returns 409 idempotency_key_reused, and while the first request is still running, 409 idempotency_key_in_progress with Retry-After. A failed request (any 4xx or 5xx) is not stored, so you can send it again with the same key. Keys belong to your application, whether you call with an API key or an access token. See Retries and idempotency.

Required string length: 1 - 255

경로 매개변수

conversation_id
string<uuid>
필수

The conversation whose events the subscription carries.

예시:

"6f0c2a8e-3b1d-4c5e-9a7f-2d8b1e4c6a90"

본문

application/json
url
string<uri>
필수

A public HTTPS URL of your own that receives this conversation's events. Replace the placeholder in the examples with it: a URL that is not HTTPS, or that points to a loopback, private or internal address, answers 400 invalid_url.

Maximum string length: 2000
예시:

"https://YOUR_PUBLIC_HOST/didit/conversations/6f0c2a8e-3b1d-4c5e-9a7f-2d8b1e4c6a90"

events
enum<string>[]

The events to deliver; left out, all three.

Minimum array length: 1
사용 가능한 옵션:
message.received,
message.status.updated,
contact.consent.updated

응답

The subscription, with its signing secret.

webhook_id
string<uuid>
필수

The subscription; remove it with the delete call.

예시:

"b3e1d7a2-5c4f-4e8b-9d16-0a7c3f2e8b51"

secret
string
필수

The signing secret for this subscription's deliveries, shown only in this answer.

events
enum<string>[]
필수

The events this subscription delivers.

사용 가능한 옵션:
message.received,
message.status.updated,
contact.consent.updated
마지막 수정일 2026년 11월 24일