Skip to main content
POST
/
v1
/
webhooks
curl --request POST \
  --url https://openapi.genesy.ai/v1/webhooks \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "url": "https://your-domain.com/webhooks/genesy",
  "events": [
    "MESSAGE_REPLIED",
    "EMAIL_SENT"
  ],
  "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

Body

application/json
name
string
required

Descriptive name for the webhook

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

Webhook URL (must be valid and not a private IP)

events
enum<string>[]
required

Array of event types to subscribe to

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
secret
string

Optional secret for webhook authentication (8-256 characters)

Required string length: 8 - 256
campaignIds
number[]

Optional array of campaign IDs to filter events (empty = all campaigns)

customFields
string[]

Optional array of additional contact/company fields to include in webhook payloads

enabled
boolean
default:true

Whether the webhook is enabled

Response

Webhook created successfully

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