Automating the Sending of Thnks via a POST Request
https://api.thnks.com/api/v1/gift_requests
POST
Content-Type
: application/json
Authorization
: <Your API Key>
Field | Description |
---|---|
gift_id | The identifier for the Thnks item the customer wants to send. |
recipients | An array containing recipient details. Each recipient object must include: |
- email | The email address of the recipient. |
- first_name (optional) | The first name of the recipient. |
- last_name (optional) | The last name of the recipient. |
- message | A personalized message to accompany the Thnks. |
- gift_redeem_type | Specifies the delivery method, always set to "email" . |
<
and >
characters around variables. Simply enclose values in double quotes, except for gift_id
.
gift_id
gift_id
for a specific Thnks item:
gift_id
.
Example: https://app.thnks.com/#/send-thnks/thnks/5659
Here, 5659
is the gift_id
.