RiskPilot API
RiskPilot customer API

Webhook delivery

Where the outgoing webhooks go, their secret, a test, and the delivery log.


Your webhook URL and last deliveries

GET
/api/v1/customer/delivery

Your webhook URL and last deliveries › Responses

OK

keyMasked
​string · required

The live key's prefix.

webhook
​string · required

The webhook URL (empty: none).

lastDeliveryAt
​string | null · date-time
lastTestAt
​string | null · date-time

Set the webhook URL (https, public host; empty to remove)

PATCH
/api/v1/customer/delivery

Set the webhook URL (https, public host; empty to remove) › Request Body

webhook
​string · required

Set the webhook URL (https, public host; empty to remove) › Responses

OK

webhook
​string · required

Webhook deliveries and their attempts

GET
/api/v1/customer/delivery/log

Webhook deliveries and their attempts › Responses

OK

delivered
​integer · required
pending
​integer · required
failed
​integer · required
​object[] · required

The 50 newest deliveries.


Rotate the live API key (shown once; the old one stops at once)

POST
/api/v1/customer/delivery/rotate-key

Rotate the live API key (shown once; the old one stops at once) › Responses

OK

key
​string · required

Rotate the webhook signing secret (the old one stops at once)

POST
/api/v1/customer/delivery/rotate-secret

Rotate the webhook signing secret (the old one stops at once) › Responses

OK

secret
​string · required

Show the webhook signing secret

POST
/api/v1/customer/delivery/secret

Show the webhook signing secret › Responses

OK

secret
​string · required

whsec_…


Send a signed `test` event now

POST
/api/v1/customer/delivery/test

Send a signed `test` event now › Responses

OK

ok
​boolean · required
kind
​string
status
​integer | null
error
​string | null