API Reference / Webhooks
Webhook events
Use webhook subscriptions to receive asynchronous updates for customers, rate quotes, applications, and manual test deliveries.
Delivery format is stable: each POST includes a signed event envelope and webhook headers so your endpoint can verify authenticity and process idempotently.
Quick integration checklist
- Create an endpoint URL that accepts authenticated HTTPS POST requests.
- Capture the raw request body before parsing JSON.
- Verify the signature using timestamp + delivery id + raw payload.
- Use delivery id as your idempotency key for dedupe.
- Return 2xx only after processing is persisted successfully.
Event envelope
Every webhook body is JSON with a top-level envelope:
Event catalog
data mirrors the object family returned by related public API resources.
POST customer.createdTriggered when a customer profile is created through the Developer API.
POST customer.updatedTriggered when a customer profile is updated through the Developer API.
POST rate_quote.completedTriggered after a Developer API quote request completes and offers are available.
POST application.createdTriggered when an application is created from selected quote offers.
POST application.updatedTriggered when an application-level status or notes are updated.
POST application.lender_updatedTriggered when a lender-level submission decision/notes are updated.
POST webhook.testTriggered when a manual test delivery is sent from endpoint management.
Delivery headers
| Header | Example | Meaning |
|---|---|---|
content-type | application/json | Webhook payload format. |
x-karliro-webhook-signature | v1=<hex_hmac_sha256> | HMAC signature for timestamp.deliveryId.payload using your endpoint secret. |
x-karliro-webhook-timestamp | <unix_seconds> | Unix timestamp used in signature generation. |
x-karliro-webhook-delivery-id | <uuid> | Unique idempotency key for one delivery attempt. |
x-karliro-webhook-event | <event_type> | Event name (for example, application.created). |
Signature verification basics
- Read the raw request body as a string before JSON parsing so signature input stays exact.
- Build signed content as
${timestamp}.${deliveryId}.${rawPayload}. - Compute HMAC SHA-256 with your endpoint secret, compare to `x-karliro-webhook-signature`.
- Reject stale timestamps (recommended tolerance: 5 minutes).
- Store `x-karliro-webhook-delivery-id` to enforce idempotent processing.
- Return a 2xx response only after durable processing succeeds.
Retries and delivery outcomes
- Karliro marks delivery as successful when your endpoint returns HTTP 2xx.
- Non-2xx responses and network failures are retried with backoff.
- Delivery attempts are capped at 5 total attempts; failed deliveries remain visible in endpoint history.
Operational recommendations
- Log delivery id, event type, status code, and processing latency for each request.
- Alert on repeated failed deliveries so endpoint outages are visible quickly.
- Rotate webhook secrets periodically and after any suspected exposure.
- Keep verification and dedupe logic in middleware so all event handlers share the same safety checks.
Configure endpoints in webhook management routes, then return here for event semantics and verification guidance. Need route-level payload contracts too? Browse API reference routes.