Webhooks
Receive events from Papier.
Webhooks
Papier can post events for renders, version promotions, and approvals.
Events
- render.completed
- version.promoted
- approval.requested
Verification
Verify webhook requests using the HMAC signature header x-papier-signature with your webhook secret.
import crypto from 'crypto'
function verify(body: string, sig: string, secret: string) {
const h = crypto.createHmac('sha256', secret).update(body).digest('hex')
return h === sig
}