Add an inbound rule (registers our webhook on the tool with your key)
Access: an API key (or an org-wide key naming the workspace) with manage on integrations.
When the tool sends one of when.kinds (for one of when.vendorCampaignIds, empty = any campaign), the person is added to the Tryzen campaign or list. The person needs a LinkedIn profile URL on the tool's lead (a linkedin_url variable, or Smartlead's LinkedIn field); without one the event is skipped. Smartlead rules name at least one campaign. If the tool refuses our webhook the rule is still saved and hook.status is failing with the tool's words.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
connectionId*string^[0-9a-f]{24}$application/json- body
name*string1 <= length <= 120enabled?booleantruewhen*action*|Default Response
application/json- response
rule*hook*curl -X POST 'https://api.tryzen.co/v1/email-tool-connections/string/inbound-rules' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "when": { "kinds": [ "reply" ] }, "action": { "kind": "add_to_campaign", "campaignId": "string" }}'{ "rule": { "id": "string", "connectionId": "string", "provider": "instantly", "name": "string", "enabled": true, "when": { "kinds": [ "reply" ], "vendorCampaignIds": [ "string" ] }, "action": { "kind": "add_to_campaign", "campaignId": "string", "senderId": "string" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "hook": { "status": "off", "registrations": 0, "lastError": "string", "updatedAt": "2019-08-24T14:15:22Z" }}A connection's inbound rules and the state of our webhook on the tool GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `integrations`.
Change, enable or disable an inbound rule (the webhook follows) PATCH
**Access:** an API key (or an org-wide key naming the workspace) with manage on `integrations`.