WebmeticDocs
Get startedDetectEnrichPersonalizeIntegrateManagePartnersDevelopers
PlaygroundWebhooks

Create Webhook

POST
/webhooks

Register a URL that receives events (subscribe).

  • url: https only, no credentials in the URL, a public host. A URL change is a new endpoint.
  • events: one or more of company.identified, company.returned, company.intensive_visit, segment.entered.
  • websites: websites of your account; all of them when omitted.
  • segment_id: required for segment.entered; the segment's website must be among the websites.
  • headers: up to 3 custom request headers, never returned.

The answer carries secret once: keep it to verify the Webmetic-Signature header. Up to 50 endpoints per account via the API (10 via the dashboard).

Authorization

APIKeyHeader
headerAuthorization<token>

Request Body

application/json
  1. body

Register a URL. The response carries the signing secret once.

url*Url

https URL that receives the events (POST)

events*array<string>

Event types to receive: company.identified, company.returned, company.intensive_visit, segment.entered

Items1 <= items
websites?array<string>|

Websites of your account to receive events for; all of them when omitted

description?Description

Shown in the dashboard, for example 'Clay table Leads'

Lengthlength <= 200
Default""
segment_id?|

Segment id for segment.entered (the segment's website must be among the websites)

headers?array<>

Up to 3 custom request headers

Itemsitems <= 3
source?Source

Which tool receives the events: clay, n8n, make, zapier, custom

Default"custom"
created_via?Created Via

Internal: 'dashboard' or 'api' (limits differ)

Default"api"

Response Body

The endpoint with its signing secret

application/json
  1. response

The endpoint with its signing secret. The secret is shown here only.

id*Id
url*Url
description?Description
Default""
events*array<string>
websites*array<string>
segment_id?string|null
segment_label?string|null
header_names?array<string>
source?Source
Default"custom"
status*Status
created_via?Created Via
Default"api"
created_at*Created At
Formatdate-time
updated_at*Updated At
Formatdate-time
last_success_at?|null
last_failure_at?|null
failing_since?|null
disabled_at?|null
disabled_reason?string|null
secret_rotated_at?|null
secret*Secret

HMAC secret for the Webmetic-Signature header; shown once

Example Request
curl -X POST 'https://hub.webmetic.de/webhooks' \  -H 'Content-Type: application/json' \  -d '{  "url": "https://website.example/webhook",  "events": [    "company.identified"  ]}'
Example Response
{  "id": "string",  "url": "string",  "description": "",  "events": [    "string"  ],  "websites": [    "string"  ],  "segment_id": "string",  "segment_label": "string",  "header_names": [    "string"  ],  "source": "custom",  "status": "string",  "created_via": "api",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "last_success_at": "2019-08-24T14:15:22Z",  "last_failure_at": "2019-08-24T14:15:22Z",  "failing_since": "2019-08-24T14:15:22Z",  "disabled_at": "2019-08-24T14:15:22Z",  "disabled_reason": "string",  "secret_rotated_at": "2019-08-24T14:15:22Z",  "secret": "string"}