Webhooks let Yativo push event data to your server the moment something happens, instead of you polling the API. When an event fires, Yativo sends an HTTP POST to your configured endpoint with a signed JSON payload.Documentation Index
Fetch the complete documentation index at: https://docs.yativo.com/llms.txt
Use this file to discover all available pages before exploring further.
Create a Webhook
POST/webhooks/create
A human-readable name for this webhook endpoint (e.g. “Production Deposits”).
The HTTPS or HTTP URL Yativo will POST events to.
A secret string you generate. Yativo uses it to sign every delivery so your server can verify the payload is genuine.
Optional allowlist of source IP addresses. When set, Yativo will only deliver events from these IPs. Leave empty to allow all.
cURL
Response
List Webhooks
GET/webhooks
cURL
Update a Webhook
POST/webhooks/edit
Pass webhook_id plus any fields you want to change. Omitted fields keep their current value.
The
_id of the webhook to update.Updated name.
Updated delivery URL.
Rotated secret.
Updated IP allowlist.
Set to
"active" or "inactive" to pause/resume delivery.cURL
Delete a Webhook
POST/webhooks/delete
The
_id of the webhook to delete.cURL
View Event Logs
GET/webhook/get-event-logs
Returns a log of events processed through the webhook system.
cURL
Signature Verification
Every webhook delivery includes anX-Webhook-Signature header. This is an HMAC-SHA256 signature of the raw request body, computed using your webhook_secret.
Always verify the signature before processing events. This confirms the request genuinely came from Yativo and was not tampered with.
- TypeScript / Node.js
- Python
- PHP
Webhook Payload Structure
All webhook payloads share the same envelope:Best Practices
Respond with 2xx quickly
Respond with 2xx quickly
Your endpoint should return a
200 status within a few seconds. Do your heavy processing in the background. If Yativo does not receive a 2xx response, it will retry the event with exponential backoff.Handle duplicates idempotently
Handle duplicates idempotently
Webhooks can be delivered more than once (e.g., after retries). Use the
id field to deduplicate events in your database before processing.Use HTTPS
Use HTTPS
Always use HTTPS endpoints in production so payloads cannot be intercepted in transit. The API accepts HTTP URLs but they should only be used for local development and testing.
Monitor the event log
Monitor the event log
Check
GET /webhook/get-event-logs regularly to spot delivery failures before they become business problems.
