# Getting started
# Prerequisites
- Approved Application: Ensure your application is approved on AppSumo.
- Redirect URL: Have a Redirect URL that can handle requests from AppSumo.
- Allow Requests: Ensure your server accepts requests from
appsumo.com.
# Adding and Testing a Webhook URL
To add your webhook URL, visit the AppSumo Partner Portal (opens new window) and select your product. AppSumo will send a test request to verify the URL, which must respond successfully to be saved.
Before saving, the URL will receive a test POST request containing a "test" field in the body. This request is for verification only, and the accompanying data is not valid.
Your URL must respond with a 2xx status and a JSON body that contains "success": true (See Sending a successful response).
Ensure all test requests return a successful response to confirm that your webhook is functioning correctly.
The test request is signed like every other webhook. Your handler must verify X-Appsumo-Signature and refuse a request whose X-Appsumo-Timestamp is more than 5 minutes from your server's clock (See Webhook Security).

Example:
{
"license_key": "00000000-aaaa-1111-bbbb-abcdef012345",
"event": "purchase",
"license_status": "active",
"event_timestamp": 1318781876406,
"created_at": 1318781876400,
"tier": 1,
"test": true,
"extra": {
"reason": "Purchased by customer"
}
}