📓
Collector API documentation
  • Introduction
  • Endpoints
    • About
    • Leads
      • Add New
      • Update
      • Get Last
      • Get Lead
      • Get List
      • Get Notes
      • Get Extra Data
      • Get Follow-ups
      • Get Order
      • Get Types
      • Get Statuses
    • Webhook
Powered by GitBook
On this page
  • Attach a webhook
  • Detach a webhook
  1. Endpoints

Webhook

Attach a webhook

POST /webhook

Attaching a webhook

Headers

x-api-key* string

API key for authorization

Request

Name
Type
Description

url*

string

URL of webhook

events*

array of string

Events [lead_create, lead_update]

Response

{
  "hookId": 123
}
{
  "error": "Missing data"
}

Detach a webhook

DELETE /webhook/{hookID}

Detaching a webhook

Headers

x-api-key* string

API key for authorization

Response

Empty

{
  "error": "Webhook ID is undefined"
}
PreviousGet Statuses

Last updated 1 year ago