• EN
  • Webhooks API

    All paths below are relative to the Pulse origin and include /api/v1. Use https://app.pulsechat.ru for cloud Pulse or your own deployment origin. Webhook delivery credentials are separate from API bearer tokens.

    Incoming delivery

    MethodPathAuthentication
    POST/api/v1/incoming-webhooks/{secret}Secret in URL
    POST/api/v1/incoming-webhooks/{secret}/{provider}Secret in URL

    The generic request uses Content-Type: application/json and a body such as {"text":"Build passed"}. Only text is accepted. Success returns HTTP 200, text/plain, ok. The generic limit is 64 KiB. Provider requests have a 256 KiB limit and return 204 for ignored events.

    ProviderRecognized payload or headerPublished changesDeduplication header
    gitlabobject_kind, object_attributes, project.web_urlIssue open, reopen, update, close and merge request open, reopen, update, close, mergeWebhook-Id, falling back to Idempotency-Key
    bitbucketX-Event-Key, repository.full_name, pullrequestpullrequest:created, pullrequest:updated, pullrequest:fulfilled, pullrequest:rejectedX-Request-UUID
    bitbucket-data-centerX-Event-Key or eventKey, pullRequest.toRef.repository, base_url querypr:opened, pr:modified, pr:merged, pr:declinedX-Request-Id
    jirawebhookEvent, issue.key, issue.self, issue.fields.summaryjira:issue_created, jira:issue_updatedX-Atlassian-Webhook-Identifier
    jira-data-centerSame Jira fields with a Data Center issue API URLSame Jira eventsX-Atlassian-Webhook-Identifier

    GitLab supports HTTPS project links. Jira Cloud requires an atlassian.net HTTPS issue URL. Data Center link parsing supports HTTP or HTTPS instance URLs, ports and context paths. These addresses produce message links. Pulse does not fetch them through the adapter.

    Provider duplicate IDs are scoped to webhook and source instance. Without an identifier header, a repeated provider delivery can post again. Confidential GitLab issues and Jira security-level issues are skipped. Provider signatures are not checked by these adapters.

    Management uses the signed-in workspace UI. Creation, listing and revocation under /api/v1/workspaces/{workspaceId}/integrations/incoming-webhooks require integration management permission. The secret URL is returned once at creation. Incoming webhooks covers setup and errors.

    Outgoing envelope

    Pulse sends POST requests with Content-Type: application/json.

    FieldMeaning
    typeEvent name such as message.created
    event_idStable UUID for deduplication, preserved on replay
    workspace_idSource workspace UUID
    occurred_atUTC event timestamp
    dataEvent-specific object

    The message lifecycle emits message.created, message.updated and message.deleted. Message data uses id, channel_id, user_id, parent_id, type, encryption_mode, created_at and updated_at. Plaintext message payloads can include content, content_format and blocks. E2EE and server-managed encrypted messages omit body fields. Accept additional fields so compatible additions do not break your receiver.

    Event selection accepts explicit names and *. A filter does not create events that the server does not emit. Empty channel filters match all channels. A non-empty filter requires a matching channel ID.

    Outgoing headers and signature

    HeaderMeaning
    X-Pulse-Event-IdSame UUID as event_id
    X-Pulse-TimestampUnix timestamp in seconds for this delivery attempt
    X-Pulse-Signaturesha256= followed by lowercase HMAC-SHA256 hex

    The current outgoing-webhook management API returns has_signing_secret without the raw secret. Secure provisioning by the server operator is required before a receiver can verify these signatures. App event subscription creation has a separate secret-returning management response.

    The signing input is the timestamp string, one period and the exact raw request body. Use the signing secret as its literal UTF-8 string, including when it looks like hexadecimal.

    import hashlib
    import hmac
    import time
    
    def valid_delivery(secret, timestamp, signature, raw_body):
        try:
            age = abs(time.time() - int(timestamp))
        except (TypeError, ValueError):
            return False
        if age > 300:
            return False
        signed = timestamp.encode() + b"." + raw_body
        expected = "sha256=" + hmac.new(
            secret.encode(), signed, hashlib.sha256
        ).hexdigest()
        return hmac.compare_digest(expected, signature)

    The five-minute receiver window above is a recommended policy. Keep your clock synchronized. Verify before parsing, durably enqueue before acknowledging, and deduplicate by subscription and event ID.

    Verification, retries and replay

    URL verification sends unsigned {"type":"url_verification","challenge":"VALUE"}. Return 2xx JSON {"challenge":"VALUE"}. Event delivery accepts every 2xx as success. Network failures and non-2xx responses retry according to server settings. Default delays are 30 seconds, 2 minutes, 10 minutes, 30 minutes, 2 hours and 6 hours, with a default 5-second HTTP timeout.

    A dead-letter replay creates a new delivery with replay_of_id and lineage_root_id, preserving the event ID and payload. The current receiver URL and secret are used. Build for duplicate and out-of-order deliveries.

    Outgoing management and delivery inspection are session-authenticated UI APIs under workspace integrations or the support administration area. They are not app-token endpoints. See Outgoing webhooks.