I see there is no Make module that triggers when a Kit.com subscriber unsubscribes.
I checked their v3 API but also there I can’t find what I am looking for. Have someone encountered this issue and solved it? Or can someone point me in the right direction?
How thoroughly did you check their API?
Cause its literary the second webhook listed here.
Yes Stoyan I found that a few minutes after posting, but as I newbie in Make I don’t know how to transform the CURL in a KIT API call module.
I have this CURL:
curl -X POST https://api.convertkit.com/v3/automations/hooks\
-H 'Content-Type: application/json'\
-d '{ "api_secret": "<your_secret_api_key>",\
"target_url": "http://example.com/incoming",\
"event": { "name": "subscriber.subscriber_unsubscribe" } }'
The questions are:
- how to put that in the module “Kit - make an API call” ?
- I do not need to add in there the api secret because Make is already authenticated, correct?
- what target_url do I have to put?
I tried putting the parameter name and subscriber.subscriber_unsubscribe into query string area, but it did not work.
The URL should be /v3automations/hooks
Then the -d part of the curl request goes in the body. I suppose without the API key since that was already used to create the connection and should be getting sent already by default.
Then you add a custom webhook at the start of the scenario and copy the address from it to paste it in the target_url variable of the HTTP call.
4 Likes
Thanks, I made some steps forward but still when I test the module I get an error:
My Kit module is this:
Also, I don’t get how this will work.
I mean how this scenario will listen to new unsubscribers? This webhook is not referenced anywhere else, only in this scenario.
You have a \ before “event”, try removing it.
Also this will register the webhook at the API address. So every time the event occurs, the API will send a post request to that address.