What is a Webhook?
A webhook is a mechanism that allows one application to send real-time data to another. This is achieved via an HTTP POST request containing a JSON payload sent to a specified URL. In the case of Thnks, the webhook is used to trigger the sending of a Thnks, making the process efficient and automated.Setting Up the Thnks Webhook
Webhook Details
-
Endpoint URL:
https://api.thnks.com/api/v1/gift_requests -
HTTP Method:
POST -
Headers:
-
Content-Type:application/json -
Authorization:<Your API Key>
-
- Data Format (JSON):
Required Fields
The following fields are required in the JSON payload for the webhook:
Note: Avoid using
< and > characters around variables. Simply enclose values in double quotes, except for gift_id.
Finding gift_id
To find the gift_id for a specific Thnks item:
- Log into the Thnks application.
- Locate the Thnks item you want to send.
-
Navigate to the Thnks Details page. The URL will include the
gift_id. Example: https://app.thnks.com/#/send-thnks/thnks/5659 Here,5659is thegift_id.