TryzenAPI
Webhooks

Create a webhook; the response is the only time its signing secret is shown

POST
/v1/webhooks

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

Batch: through an API key, campaignIds holds at most 100 items.

One event type per webhook; campaignIds empty = every campaign. Deliveries are POSTs signed with HMAC-SHA256 in x-notreach-signature: t=<unix seconds>,v1=<hex> over <t>.<raw body>; reject a t older than 5 minutes. Targets must be public http(s) URLs (422 blocked_target).

Authorization

apiKey
headerx-api-key<token>

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

Request Body

application/json
  1. body
name*string
Length1 <= length <= 100
url*string
Length1 <= length <= 2048
event*WebhookEventInput
Value in"connection_request_sent""connection_request_accepted""message_sent""message_reply_received""inmail_sent""inmail_reply_received""every_message_reply_received""follow_sent""liked_post""viewed_profile""campaign_completed""lead_tag_updated""lead_autotagged_positive""lead_autotagged_negative""lead_autotagged_generic""voice_note_received""lead_finished_without_reply""connection_request_withdrawn_or_declined""action_failed""sender_status_changed""action_canceled""connection_request_withdrawn""connection_checked"
campaignIds?array<>
Itemsitems <= 100
headers?array<>
Itemsitems <= 10
Default[]
active?boolean
Defaulttrue

Response Body

Default Response

application/json
  1. response
webhook*
secret*string
Example Request
curl -X POST 'https://api.tryzen.co/v1/webhooks' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "url": "string",  "event": "connection_request_sent"}'
Example Response
{  "webhook": {    "id": "string",    "name": "string",    "url": "string",    "event": "connection_request_sent",    "campaignIds": [      "string"    ],    "headers": [      {        "name": "string",        "value": "string"      }    ],    "active": true,    "secretHint": "string",    "secretRotatedAt": "2019-08-24T14:15:22Z",    "previousSecretExpiresAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "secret": "string"}