Skip to main content
PATCH
/
v1
/
webhooks
/
{webhookId}
Update webhook subscription
curl --request PATCH \
  --url https://openapi.genesy.ai/v1/webhooks/{webhookId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "url": "<string>",
  "secret": "<string>",
  "events": [
    "CONNECTION_REQUEST_SENT"
  ],
  "campaignIds": [
    123
  ],
  "customFields": [
    "<string>"
  ],
  "enabled": true
}
'
{
  "status": "success",
  "message": "<string>",
  "data": {
    "id": 123,
    "name": "<string>",
    "url": "<string>",
    "events": [
      "<string>"
    ],
    "campaignIds": [
      123
    ],
    "customFields": [
      "<string>"
    ],
    "enabled": true,
    "createdAt": "2023-12-25",
    "updatedAt": "2023-12-25",
    "hasSecret": true
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

webhookId
string
required

Webhook ID

Body

application/json
name
string

Descriptive name for the webhook

Required string length: 1 - 255
url
string<uri>

Webhook URL

secret
string | null

Webhook secret (null to remove)

Required string length: 8 - 256
events
enum<string>[]

Array of event types

Minimum array length: 1
Available options:
CONNECTION_REQUEST_SENT,
CONNECTION_REQUEST_ACCEPTED,
LINKEDIN_MESSAGE_SENT,
EMAIL_SENT,
INMAIL_SENT,
MESSAGE_REPLIED,
POST_LIKED,
PROFILE_VISITED
campaignIds
number[]

Array of campaign IDs to filter

customFields
string[]

Additional fields to include

enabled
boolean

Enable or disable webhook

Response

Webhook updated successfully

status
enum<string>
required
Available options:
success
message
string
required
data
object
required