The dry run endpoint processes your events exactly as the live ingestion pipeline would — validating, matching customers, and evaluating meters — but does not store any data. Use it to verify your event schema, check customer matching, and preview meter values before going live. Endpoint: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.
POST /events/dry-run
Request
Same schema as live ingestion: 1–1,000 events per request, max 256 KB payload.| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Event type identifier — must match a configured meter’s eventName |
ref | string | Yes | Unique idempotency key for this event |
customerAlias | string | Yes | Identifier used to match the event to a customer |
timestamp | string | Yes | ISO 8601 UTC timestamp of when the event occurred |
data | object | No | Arbitrary key-value payload used by meter filters and aggregations |
Response
Returns one result object per submitted event.| Field | Type | Description |
|---|---|---|
event | object | The submitted event as it would be ingested |
matchedCustomer | string | null | The customer ID the event matched, or null if no match found |
meterWithValues | array | Meters this event would be counted against |
meterWithValues[].value | number | null | Contribution to the meter’s aggregated value |
meterWithValues[].instanceValue | any | For instance-based meters: the instance identifier |
If
matchedCustomer is null, the event would create an anonymous customer in live ingestion. Check your customerAlias value.Examples
Common dry run results
| Scenario | What you’ll see |
|---|---|
| Event matches a customer | matchedCustomer is populated with the customer ID |
| No customer match | matchedCustomer is null — live ingestion would create an anonymous customer |
| Event matches a meter | meterWithValues contains the meter with a non-null value |
| Event name not in any meter | meterWithValues is empty |
| Invalid event schema | Event appears in the invalidEvents array with an error message |