Base URL
The base URL we are using for the current version of our Zapier endpoints ishttps://api.expertise.ai/v0/users this will be referred to as {{BASE_URL}}.
Authentication
This is the endpoint that Zapier calls when a user is attempting to log into Chatsimple. It lives at{{BASE_URL}}/zapier.
Request:
Response:
A successful call will authorize the user:return {'status': 'success', 'user_id': user_id, 'chatbot_id': chatbot_id}, 200
user_id and chatbot_id are returned to make a connection label in Zapier.
Subscribe
This is the endpoint Zapier calls to subscribe to a webhook. It lives at{{BASE_URL}}/zapier/subscribe.
Request:
html_snippet can be parsed for the user_id and chatbot_id.
api_key is the api_key given by Chartsimple.
bundle.targetUrl is the hook URL given by Zapier.
Response:
A successful call will subscribe the user:
leads is the object that holds all the leads of a user.
Unsubscribe
This is the endpoint Zapier calls to unsubscribe to a webhook. It lives at{{BASE_URL}}/zapier/unsubscribe.
Request:
html_snippet can be parsed for the user_id and chatbot_id.
api_key is the api_key given by Chatsimple.
Response:
A successful call will unsubscribe the user:Get Leads
This is the endpoint Zapier calls to when the webhook is triggered. It lives at{{BASE_URL}}/zapier/get_leads.
Request:
html_snippet can be parsed for the user_id and chatbot_id.
api_key is the api_key given by Chartsimple.
Response:
A successful call will return the most recent lead:leads is the object the most recent lead of a user.