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:

import hmac
import json

token = request.headers.get('Digest').split(=",1)[1]
new_digest = hmac.new(key=b'yourkeyhere', msg=request.data).hexdigest()
comparison = hmac.compare_digest(token, new_digest)

# NOTE: Never use new_digest == token as your comparision.

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

Request Body

OP Codes

0: VERIFICATION STARTED
1: VERIFICATION PASSED
2: VERIFICATION FAILED
3: VERIFICATION IGNORED
4: ACCOUNT INCORRECT

Member Object

{"id": "66166172835385344", "username": "Auxim", "discriminator": "0001"}

Guild Object

{"id": "372024042980638721", "name": "Auxim Solutions"}

Verification Methods

"steam": Steam Verification
"reddit": Reddit Verification
"twitter": Twitter Verification
"overwatch": Overwatch Verification
"captcha": "Google Captcha Verification"
"xbox": "Xbox Live Verification"
"youtube": "YouTube Verification"
"bypass": "A moderator allowed the user to skip verification

Timeout Actions

"kick": "Member will be kicked from the server by AltDentifier"
"ban": "Member will be banned from the server by AltDentifier"
"role": "Member will be given the timeout role by AltDentifier"
"nothing": "AltDentifier will take no action"

Last updated