Company webhooks

A company webhook is a URL where Pact.im sends real-time events for that company

A company webhook is an HTTPS endpoint you register for a company. When something happens — a new message, a conversation update, an auth change — Pact.im sends a POST to that URL with the event payload.

Each company can have several webhooks (up to five). New webhooks start inactive; you turn them on after the URL is ready. Payload shapes and delivery rules are described under Events.

With the Company Webhooks API you can:

Webhook object

Example

json
{
  "webhook": {
    "id": 1,
    "url": "https://example.com/webhook",
    "active": true
  }
}

Description

ParameterTypeDescription
idIntegerID
urlStringWebhook URL
activeBooleanWhether webhook is active or not

Search…

Start typing to search