File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,25 @@ response = activitysmith.notifications.send(
4444 {
4545 " title" : " New subscription 💸" ,
4646 " message" : " Customer upgraded to Pro plan" ,
47- " channels" : [" devs" , " ops" ], # Optional
47+ " redirection" : " https://crm.example.com/customers/cus_9f3a1d" , # Optional
48+ " actions" : [ # Optional (max 4)
49+ {
50+ " title" : " Open CRM Profile" ,
51+ " type" : " open_url" ,
52+ " url" : " https://crm.example.com/customers/cus_9f3a1d" ,
53+ },
54+ {
55+ " title" : " Start Onboarding Workflow" ,
56+ " type" : " webhook" ,
57+ " url" : " https://hooks.example.com/activitysmith/onboarding/start" ,
58+ " method" : " POST" ,
59+ " body" : {
60+ " customer_id" : " cus_9f3a1d" ,
61+ " plan" : " pro" ,
62+ },
63+ },
64+ ],
65+ " channels" : [" sales" , " customer-success" ], # Optional
4866 }
4967)
5068
You can’t perform that action at this time.
0 commit comments