Redirect URLs
After survey completion, participants are redirected to your supplied URL with signed parameters.
Parameters
| Name | Description |
|---|---|
status | Click key state (see Redirect Statuses). |
revenue | Partner revenue amount. |
reward | Participant reward amount. |
tid | Transaction ID (may be blank). |
click_id | Click identifier. |
sech | SHA-256 signature verifying these values. |
How to Sign and Validate
Concatenate the following values in this exact order, separated by commas:
status,revenue,reward,tid,click_id(Iftidis blank, use an empty string — still keep the comma.)Compute the SHA-256 HMAC of that string using your API secret.
Add the resulting lowercase hex digest as the
sechparameter in the redirect URL. (TapResearch performs this step when redirecting the participant back to you.)When you receive the redirect, recompute the signature using the same values in the same order and compare it to the provided
sech. A mismatch indicates the redirect parameters were tampered with or the wrong secret was used.