Configuring Webhooks

Live events from the TonicPow API

TonicPow will send events related to your application to the webhook URL you specify when creating an application.

Method: POST
Expected Status: 200

Clicks

Click webhook will be triggered after a click that was batched has been processed and a txid was broadcasted to the Bitcoin network.


{
  "type": "click",
  "data": {
    "amount": number,        // amount in satoshis
    "campaign_id": number,   // associated campaign id
    "campaign_slug": string, // campaign URL slug
    "tncpw_session": string, // visitor session
    "tx_id": string,         // payout tx_id
  }
}

Conversions

Conversion webhook will be triggered after a conversion that was batched has been processed and a txid was broadcasted to the Bitcoin network.


{
  "type": "conversion",
  "data": {
    "amount": number,        // amount in satoshis
    "campaign_id": number,   // associated campaign id
    "campaign_slug": string, // campaign URL slug
    "tncpw_session": string, // visitor session
    "tx_id": string,         // payout tx_id
    "goal_id": number,       // associated goal id
  }
}

Next: Firing Conversions

Subscribe to our newsletter

The latest news, articles, and resources, sent to your inbox weekly.

© 2021 TonicPow, Inc. All rights reserved.