Webhooks
AltDentifier is able to send webhooks to a server controlled by you for sharing verification status!
Authorization
AltDentifier will send a HMAC hexdigest using your server's signature as key and the stringified payload as it's body. Make sure to not share your signature. If you happen to do so accidentally, make sure to regenerate the signature.
Python Example:
Note: Webhooks will be sent using a proxy. Do not rely on IP Addresses for verification.
Webhook
POST
https://yourserver.com/webhook
An example of the webhook AltDentifier will generate
Headers
Content-Type
string
application/json
Digest
string
MD5=(digest string)
Signature
string
keyId="hmac-key-1",algorithm="hmac-md5","signature"=Base64(HMAC-MD5(signing string)) See https://tools.ietf.org/id/draft-cavage-http-signatures-07.html for more information
Request Body
member
object
Member object of the user being verified.
incorrect_account
string
Member object of the account the user attempted to verify with. Only sent with OP 4
reason
string
Reason for verification failing. Only sent with OP 2.
method
string
Verification method used. Only sent with OP 1 and 2.
timeout_role
string
Timeout role. Only sent with OP 3 if action is "timeout"
action
string
Timeout action taken. Only sent with OP 3.
OP
integer
The OP code for this webhook. See above for more info
guild
object
Guild in which verification is taking place
OP Codes
Member Object
Guild Object
Verification Methods
Timeout Actions
Last updated