Skip to content

Update a webhook

Request

Update one or more fields on an existing webhook. Only include the fields you want to change.

Security
bearerAuth
Path
uuidstringrequired

Resource UUID.

Bodyapplication/jsonrequired
namestring
eventstring
Enum:"contact_replied_email""contact_replied_linkedin_message""contact_exported""contact_enriched"
request_methodstring
Enum:"POST""GET""PUT""PATCH""DELETE"
target_urlstring, (uri)
filtersobject or null
statusstring
Enum:"on""off"
PUT
/integrations/api/webhooks/{uuid}
curl -i -X PUT \
  'https://leadgen.grinfi.io/integrations/api/webhooks/{uuid}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "event": "contact_replied_email",
    "request_method": "POST",
    "target_url": "http://example.com",
    "filters": {},
    "status": "on"
  }'

Responses

Webhook updated.

Bodyapplication/json
uuidstring
Example:"b27f3cfc-84a0-4fb8-956b-91d032f9c523"
team_idinteger
user_idinteger
namestring
Example:"New Reply Handler"
eventstring

Event that triggers the webhook. Supported events: contact_replied_email, contact_replied_linkedin_message, contact_exported, contact_enriched.

Enum:"contact_replied_email""contact_replied_linkedin_message""contact_exported""contact_enriched"
Example:"contact_replied_linkedin_message"
request_methodstring

HTTP method for the outgoing request.

Example:"POST"
target_urlstring, (uri)
Example:"https://hook.eu2.make.com/abc123"
filtersobject or null

Optional filter criteria to narrow which contacts trigger the webhook. Uses jsonLogic, elasticQuery, and filter_tree_format keys.

statusstring

Webhook status.

Enum:"on""off"
Example:"on"
created_atstring, (date-time)
updated_atstring, (date-time)
Response
{ "uuid": "b27f3cfc-84a0-4fb8-956b-91d032f9c523", "team_id": 0, "user_id": 0, "name": "New Reply Handler", "event": "contact_replied_linkedin_message", "request_method": "POST", "target_url": "https://hook.eu2.make.com/abc123", "filters": {}, "status": "on", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }