Liking cljdoc? Tell your friends :D

Webhooks

Set the signing secret on the client. Then pass the unchanged payload and request headers to verify-signature or unwrap.

(def webhook-client (openai/client {:webhook-secret "whsec_..."}))
(webhooks/verify-signature webhook-client raw-body headers)
(webhooks/unwrap webhook-client raw-body headers)

Webhook payloads can include the safety_alert.created and safety_org_alert.created event types. unwrap converts these events using the same generic SDK object mapping as other webhook events.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close