Change, enable or disable an inbound rule (the webhook follows)
Access: an API key (or an org-wide key naming the workspace) with manage on integrations.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
connectionId*string^[0-9a-f]{24}$ruleId*string^[0-9a-f]{24}$application/json- body
name?string1 <= length <= 120enabled?booleanwhen?action?|Default Response
application/json- response
rule*hook*curl -X PATCH 'https://api.tryzen.co/v1/email-tool-connections/string/inbound-rules/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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" }}Add an inbound rule (registers our webhook on the tool with your key) POST
**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.
Delete an inbound rule (the last one removes our webhook from the tool) DELETE
**Access:** an API key (or an org-wide key naming the workspace) with manage on `integrations`.