Developer docs
Understanding the Difference between Viewers, Creators, and Admins in Your Workspace
Last updated
Was this helpful?
Understanding the Difference between Viewers, Creators, and Admins in Your Workspace
Last updated
Was this helpful?
https://app.supademo.com
/api/integration/zapier/connect
Method: POST
Description: This API endpoint connects a Zapier integration to a workspace, allowing triggers to be set for the integration. The endpoint validates the user’s API key and checks the workspace’s subscription plan before processing the request. If the integration already exists, it updates the trigger configuration; otherwise, it creates a new integration.
Type: Bearer Token
Header: Authorization: Bearer <API_KEY>
This API key must belong to a valid workspace with the required plan to use the Zapier integration. It can be found at
Query Parameters:
trigger
(string, required): The name of the trigger for which the data is being requested. The available trigger names are:
new-lead
: Fetches data for new lead entries.
demo-view
: Fetches data for demo view events.
Headers:
Authorization
(string, required): A bearer token containing the workspace API key.
Body:
url
(string, required): The URL that should be associated with the trigger. This is typically the Zapier webhook URL.
POST /api/integration/zapier/connect?trigger=NewLead
Authorization Header:
Success (New Integration Created)
Status: 201 Created
Description: The Zapier integration was successfully created and connected to the workspace.
Response Body:
Error Responses:
Unauthorized
Status: 401 Unauthorized
Description: The provided API key is invalid, the workspace does not have permission, or the plan does not allow this action.
Response Body:
Bad Request (Missing url
)
Status: 400 Bad Request
Description: The request body is missing the required url
field.
Response Body:
Bad Request (Missing trigger
)
Status: 400 Bad Request
Description: The request query parameters are missing the trigger
field.
Response Body:
Internal Server Error
Status: 500 Internal Server Error
Description: An error occurred while processing the integration.
Response Body:
/api/integration/zapier/connect
Method: DELETE
Description: This API endpoint removes a specific trigger from a Zapier integration for a given workspace. It takes the integrationId
and triggerName
as parameters and deletes the corresponding trigger from the Zapier integration configuration.
Type: Bearer Token
Header: Authorization: Bearer <API_KEY>
Query Parameters:
trigger
(string, required): The name of the trigger that should be removed from the integration's configuration.
Body:
integrationId
(string, required): The ID of the existing Zapier integration from which the trigger should be removed.
DELETE /api/integration/zapier/connect?trigger=NewLead
Success (Trigger Unsubscribed)
Status: 200 OK
Description: The specified trigger was successfully removed from the Zapier integration's configuration.
Response Body:
Error Responses:
Bad Request (Missing trigger
)
Status: 400 Bad Request
Description: The request query parameters are missing the trigger
field.
Response Body:
Bad Request (Missing integrationId
)
Status: 400 Bad Request
Description: The request body is missing the required integrationId
field.
Response Body:
/api/integration/zapier/connect
Method: GET
Description: This API endpoint fetches data related to specific Zapier triggers. The response contains sample data depending on the provided trigger name.
Type: None (Authorization not required for this method)
Query Parameters:
trigger
(string, required): The name of the trigger for which the data is being requested. The available trigger names are:
new-lead
: Fetches data for new lead entries.
demo-view
: Fetches data for demo view events.
GET /api/integration/zapier/connect?trigger=new-lead
Success (New Lead Trigger)
Status: 200 OK
Description: Returns a list of leads in response to the new-lead
trigger.
Response Body:
Success (Demo View Trigger)
Status: 200 OK
Description: Returns a list of demo view events in response to the demo-view
trigger.
Response Body:
Bad Request (Missing trigger
)
Status: 400 Bad Request
Description: The trigger
query parameter is missing from the request.
Response Body:
/api/integration/zapier/me
Method: GET
Description: This endpoint is used to verify the API key and fetch basic information about the associated workspace. It returns the name of the workspace if the provided API key is valid.
Type: Bearer Token
Header: Authorization: Bearer <API_KEY>
The API key must belong to a valid workspace in order to retrieve the workspace information.
Headers:
Authorization
(string, required): A bearer token containing the user's API key.
GET /api/integration/zapier/me
Authorization Header:
Success (Authorized)
Status: 200 OK
Description: The API key is valid, and the workspace information is returned.
Response Body:
Error Responses:
Unauthorized (Missing or Invalid API Key)
Status: 401 Unauthorized
Description: The provided API key is either missing or invalid.
Response Body:
This API key must belong to a valid workspace with the required plan to use the Zapier integration. It can be found at