TryzenAPI
Webhooks

Change an org webhook (name, URL, event type, workspaces, headers, on/off)

PATCH
/v1/orgs/{orgId}/webhooks/{webhookId}

Access: org admin (manageOrgWebhooks), or an org-wide API key in x-api-key with manage on integrations.

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

Authorization

apiKey
headerx-api-key<token>

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

Path Parameters

orgId*string
Match^[0-9a-f]{24}$
webhookId*string
Match^[0-9a-f]{24}$

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"
workspaceIds?array<>
Itemsitems <= 100
headers?array<>
Itemsitems <= 10
active?boolean

Response Body

Default Response

application/json
  1. response
id*string
Match^[0-9a-f]{24}$
name*string
url*string
event*WebhookEvent
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"
headers*array<>
active*boolean
secretHint*string
secretRotatedAt*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time
previousSecretExpiresAt*|null
createdAt*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time
updatedAt*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time
workspaceIds*array<>
Example Request
curl -X PATCH 'https://api.tryzen.co/v1/orgs/string/webhooks/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "name": "string",  "url": "string",  "event": "connection_request_sent",  "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",  "workspaceIds": [    "string"  ]}