Custom Activity

Custom activity (Custom Task) is configured in the Loyalty program, we need to get the unique identifier that is given during the configuration.

Once any user performs the configured custom activity, we need to send "POST" request from server.

OAuthScope: Thrive.Referral.CREATE

HTTP Request

POST  https://thrive.zoho.com/thrive-publicapi/v1/${widget-code}/activities

ParameterKeyDescription
Unique Identifier*unique_identifierA lead/customer email address
Customer ID*zt_customer_idCustomer Unique ID associated with your system, which will not be changed.
Email ID*emailA lead/customer email address
Digest*thrive_digestHMAC generated from the combination of emailid, customerid and project key. Refer here

Success Response

  • For success 200.
  • If any mandatory params are missing then 404.

Request Example

Copiedcurl -i -X POST \
-H "Authorization:Zoho-oauthtoken ***" \
-H "Content-Type:application/json" \
-d \
'{"unique_identifier":"signup_for_webinar",
"zt_customer_id":"dir_1651130310493",
"email":"peter.prescot@zylkar.com",
"thrive_digest":"fa04d2467feb9bbf9be79fece58d6ebc5ab0183939008f85d722a7334be3c3e"}' 
'https://thrive.zoho.com/thrive-publicapi/v1/dc784dccb06e501a6853189cf941c4673ba5cd999da4dafb90c3f5d7/activities'