Webhook Payload Format
Payload structure and how to handle forwarded webhook requests.
Your endpoint will receive a POST request with a Content-Type of application/json.
The authorization header will contain the secret you provided to UpvoteEngine.
The JSON body follows this structure:
All types to use
Handling Requests
Your endpoint should:
- Verify the
authorizationheader to ensure the request is legitimate. - Parse the JSON body.
- Respond with a
200 OKstatus code within 5 seconds to acknowledge receipt. Any other status code or responding too late will trigger a retry. - For test webhooks (
source: "test"), you should respond with a204 No Contentstatus code.
