Documentation Index
Fetch the complete documentation index at: https://guide.withvayu.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Vayu event ingestion supports idempotency via theref field on each event. If you send the same event twice with the same ref, Vayu processes it only once — the second submission is a no-op and returns the original result.
This is critical for reliable integrations: if a network timeout leaves you uncertain whether a request was received, you can safely retry without double-counting usage.
How to use ref
Include a unique ref value on every event. Use a stable identifier from your own system — a database row ID, a transaction ID, or a UUID you generate and store before sending.
Rules
refmust be unique per event name within your accountrefvalues are stored permanently — arefused for a deleted event cannot be reused- If you omit
ref, no idempotency protection applies to that event - The idempotency window is permanent (not time-bounded)
Duplicate detection in the response
Duplicateref values are returned in the invalidEvents array:
Best practice: generate ref before sending
Always generate and persist your ref before the API call. If the call fails before a response arrives, retry with the same ref safely.
