Skip to main content
POST
Create Opt-Out Subscription

Authorizations

api_key
string
header
required

Your Lusha API key. You can find this in your Lusha dashboard under API settings. Include this key in the api_key header for all requests.

Body

application/json

Request body for creating an opt-out webhook subscription

entityType
enum<string>
required

Entity type for opt-out subscriptions. Currently only contact is supported.

Available options:
contact
Example:

"contact"

url
string<uri>
required

Your webhook endpoint URL (HTTPS required in production)

Maximum string length: 2048
Example:

"https://example.com/webhook"

name
string

Descriptive name for this subscription

Maximum string length: 100
Example:

"Account opt-out webhook"

Response

Opt-out subscription created successfully

Response body returned when an opt-out subscription is created successfully

id
string
required
Example:

"6a0ca910b402df368d2aff07"

entityType
enum<string>
required
Available options:
contact
Example:

"contact"

entityId
string
required
Example:

"431705"

signalTypes
string[]
required
Example:
url
string<uri>
required
Example:

"https://example.com/webhook"

isActive
boolean
required
Example:

true

createdAt
string<date-time>
required
Example:

"2026-05-19T18:16:48.360Z"

updatedAt
string<date-time>
required
Example:

"2026-05-19T18:16:48.360Z"

name
string
Example:

"Account opt-out webhook"