POST /public/v1/webhooks
Register an outbound webhook. Valley POSTs a JSON payload to webhookUrl whenever one of the triggerTypes fires. scope PERSONAL (default) fires only for the caller's own events; WORKSPACE fires for every member and requires ADMIN/OWNER.
POST
/public/v1/webhooks API key in header x-api-key
Body
required application/json
workspaceId string Required for a user API key. A workspace API key is locked to its own workspace.
webhookUrl string · min length: 1 required Absolute http(s) endpoint Valley will POST event payloads to.
triggerTypes array of string · min items: 1· unique items required Events that fire this webhook. PROSPECT_RESPONSE and SEND_FIRST_PROSPECT_RESPONSE are mutually exclusive; if both are sent only PROSPECT_RESPONSE is kept.
values
PROSPECT_RESPONSESEND_FIRST_PROSPECT_RESPONSECONNECTION_ACCEPTEDSEND_INTERESTED_RESPONSESSEND_MIGHT_BE_INTERESTED_RESPONSESSEND_NOT_INTERESTED_RESPONSES
scope string · default: PERSONAL· enum values
PERSONALWORKSPACE
label string · min length: 1· max length: 255 payloadFields object | null Optional payload opt-ins (extra fields to include in the delivered JSON). null clears them.