TryzenAPI
Integrations

Connect Slack, or change its name and events

PUT
/v1/integrations/slack

Access: an API key (or an org-wide key naming the workspace) with manage on integrations.

webhookUrl is a Slack Incoming Webhook (https://hooks.slack.com/services/…), required the first time and never shown again (only its last 4 characters). The events are notification types; each one posts when it notifies in the app.

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Request Body

application/json
  1. body
name*string
Length1 <= length <= 80
events*array<>
Items1 <= items <= 12
webhookUrl?string

Required the first time; leave it out to keep the stored one.

Match^https:\/\/hooks\.slack\.com\/services\/[A-Za-z0-9_/-]+$
Lengthlength <= 500

Response Body

Default Response

application/json
  1. response
hubspot*
slack*
attio*
breakcold*
Example Request
curl -X PUT 'https://api.tryzen.co/v1/integrations/slack' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "events": [    "replies_received"  ]}'
Example Response
{  "hubspot": {    "type": "hubspot",    "available": true,    "connected": true,    "account": {      "id": "string",      "name": "string"    },    "settings": {      "syncOn": [        "replied"      ],      "autoFindEmail": false,      "conversationNotes": true,      "activities": [        "added_to_campaign",        "added_to_list",        "message_received",        "inmail_received"      ]    },    "connectedAt": "2019-08-24T14:15:22Z",    "lastSync": {      "at": "2019-08-24T14:15:22Z",      "ok": true,      "error": "string"    },    "appEventsEnabled": true,    "listImport": true  },  "slack": {    "type": "slack",    "connected": true,    "settings": {      "name": "string",      "events": [        "replies_received"      ]    },    "urlHint": "string",    "connectedAt": "2019-08-24T14:15:22Z",    "lastSync": {      "at": "2019-08-24T14:15:22Z",      "ok": true,      "error": "string"    }  },  "attio": {    "type": "attio",    "available": true,    "connected": true,    "account": {      "id": "string",      "name": "string"    },    "settings": {      "syncOn": [        "replied"      ]    },    "connectedAt": "2019-08-24T14:15:22Z",    "lastSync": {      "at": "2019-08-24T14:15:22Z",      "ok": true,      "error": "string"    }  },  "breakcold": {    "type": "breakcold",    "connected": true,    "account": {      "id": "string",      "name": "string"    },    "keyHint": "string",    "settings": {      "syncOn": [        "replied"      ]    },    "connectedAt": "2019-08-24T14:15:22Z",    "lastSync": {      "at": "2019-08-24T14:15:22Z",      "ok": true,      "error": "string"    }  }}