Create an org webhook; the response is the only time its signing secret is shown
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.
One event type from every workspace of the org (workspaceIds empty, including workspaces made later) or from the ones listed. Each delivery is the same signed payload as a workspace webhook's; its workspaceId names the workspace. Targets must be public http(s) URLs (422 blocked_target); a workspace that isn't a live one of the org is 422 unknown_workspace.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
orgId*string^[0-9a-f]{24}$application/json- body
name*string1 <= length <= 100url*string1 <= length <= 2048event*WebhookEventInput"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<>items <= 100headers?array<>items <= 10[]active?booleantrueDefault Response
application/json- response
webhook*secret*stringcurl -X POST 'https://api.tryzen.co/v1/orgs/string/webhooks' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "url": "string", "event": "connection_request_sent"}'{ "webhook": { "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" ] }, "secret": "string"}The org's webhooks (every workspace's events), newest first GET
**Access:** org admin (`manageOrgWebhooks`), or an org-wide API key in `x-api-key` with view on `integrations`.
Org webhooks' deliveries across the org's workspaces, newest first (`webhookId` for one webhook, `status=dead_letter` for dead letters) GET
**Access:** org admin (`manageOrgWebhooks`), or an org-wide API key in `x-api-key` with view on `integrations`.