Skip to main content
POST
Create webhook endpoint
Required scopes: webhooks.manage

Authorizations

Authorization
string
header
required

Use Authorization: Bearer rk_live_....

Headers

Idempotency-Key
string
required

A unique value for each new request, such as a UUID. Send the same value to retry a request safely. The same key and payload replay the first response with Idempotency-Replayed: true.

Required string length: 1 - 160

Body

application/json
url
string<uri>
required

A public HTTPS URL. RoofKit refuses private, local and plain HTTP addresses.

Maximum string length: 2048
events
enum<string>[]
required
Minimum array length: 1

An event that a webhook endpoint can receive.

Available options:
lead.created,
lead.reconverted,
lead.updated,
call.completed,
call.missed,
sms.received,
schedule,
report.viewed,
report.approved,
report.accepted,
report.deposit_paid,
report.delivered,
report.question_asked,
report_request.ready,
report_request.needs_attention,
report.updated
name
string

The name that Settings shows. Without it, RoofKit names the endpoint "API webhook".

Maximum string length: 100

Response

Webhook endpoint created. Store the signing secret now.

webhook_endpoint
object
required
signing_secret
string | null
required

The HMAC secret that signs X-RoofKit-Signature. Sent once. A replay of the same Idempotency-Key answers null.