Batch Ingest Up to 500 Events Into Didit Without Duplicates
Batch up to 500 events per request to the Didit event batch endpoint. Your own event id is the idempotency key: a same-id, same-content replay returns the stored event with an idempotent replay flag instead of a second record.

Contents
In this guide
Jump to the part you need.
Batch ingestion fits teams that already know which events they want scored and need to backfill or replay them without creating double records. Send up to 500 events per request to POST /v3/events/batch/ with x-api-key, and each event_id is the idempotency key. The caveat: event monitoring is off by default, so every write answers 403 event_monitoring_disabled until you enable it. The pricing feed publishes no event-ingestion unit price.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Item | Detail |
|---|---|
| Endpoint | POST /v3/events/batch/ on https://verification.didit.me |
| Auth | x-api-key header, server lane, same keys as sessions and entities |
| Events per request | Up to 500 |
| Idempotency key | event_id, your own identifier, unique per application |
| Replay result | "idempotent_replay": true with the originally stored event, not a second record |
| Most common blocker | 403 {"code": "event_monitoring_disabled"} until event monitoring is enabled in the console |
| Throughput ceiling | ingest-write scope: 600 requests per minute per API key |
| Timestamp window | occurred_at up to 7 days in the past, 5 minutes in the future |
| Size limits | payload up to 16 KB, custom_values up to 100 scalar keys, action_type up to 128 characters |
| Published price | No event-ingestion unit price in the feed. Transaction Monitoring is $0.001 per transaction beyond the plan allowance |
Start free in the sandbox at business.didit.me, no sales call. The matching product page is Transaction Monitoring and every number is on didit.me/pricing. Developers wiring Didit into an AI assistant can use the Didit MCP server.
What you end up with
The documented outcome is one stored record per event when the same id and the same content are replayed: a retry returns the record that already exists instead of writing a second one. You also get one timeline per subject. A same-id, same-content retry returns the originally stored event with idempotent_replay true, rather than creating another event. The recommended method is the server lane: build the envelope from data you already have, generate event_id on your side from a stable natural key, and send the envelopes in batches of up to 500 to POST /v3/events/batch/.
Didit documents events as idempotent by design, evaluated by the same rule engine that scores your transactions. Rules stay transaction-only unless their scope includes events, so nothing starts firing on logins just because an event arrived. The full envelope and category list are in the event ingestion reference.

Prerequisites
- A Didit application with Transaction Monitoring available, and event monitoring switched on. Event ingestion is opt-in.
- An API key with access to the transaction and event lane. Keys can be IP-restricted and scoped, and a scoped key without access returns 403. Key handling is described in API authentication.
- A stable identifier for each event, generated before the first attempt and reused on every retry.
- Accurate
occurred_atvalues from your own clock, inside the 7 days past and 5 minutes future window. - A decision on what a person reviews. Rules can change an event's status to
IN_REVIEW. Your team then decides how to handle that result.
The steps
- Enable event monitoring.
In the Business Console open Transactions, then Settings, then Event monitoring, and enable it. Until you do,
POST /v3/events/,POST /v3/events/batch/,POST /v3/events/sdk-token/and the/v1/events/device lane all answer 403 with{"code": "event_monitoring_disabled"}. Nothing is stored, enriched or evaluated while it is off. Reads are unaffected, so listing and detail calls keep working. - Fix your
event_idscheme before you send anything.event_idis required, it is the idempotency key, and it must be unique per application. Derive it from a natural key you already keep, such as a login attempt id, an order id, a round id or a chargeback id, and never regenerate it on a retry. Two attempts at the same real event must carry the same id and the same content, because the documented guarantee covers the same-id, same-content case: you getidempotent_replaytrue and the event that is already stored. A new identifier for each retry prevents idempotent matching and can create a separate event. - Send one event and read the response.
The documented single-event call is the envelope reference for every category:
curl -X POST https://verification.didit.me/v3/events/ \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "event_id": "login-2026-08-31-000001", "event_category": "auth", "action_type": "login", "occurred_at": "2026-08-31T20:40:31.123Z", "time_zone": "UTC", "subject": { "entity_type": "individual", "vendor_data": "user_391" }, "session": { "session_id": "web-session-abc", "sequence": 142 }, "device_context": { "fingerprint": "didit-fp-v2:a8c1", "network_context": { "ip_address": "203.0.113.42" } }, "payload": { "method": "password" } }'event_category,action_type,occurred_atandsubject.vendor_dataare all required. Some actions also require specific payload keys, and validation rejects the request rather than storing evidence nobody can join. - Send the batch, up to 500 envelopes per request.
Same host, same
x-api-key, same envelope for every element, 500 events maximum per request. The events reference is the authority on the exact body shape for the batch lane, so take the request body from that page rather than guessing it. What matters for duplicates is that every element carries its own stableevent_id, built the same way as the single event above.Sizing: 500 events per request against the 600 requests per minute of the
ingest-writescope gives a ceiling of 300,000 events per minute per API key. A 12,000-event backfill is 12,000 divided by 500, so 24 requests. Events and transactions shareingest-write, which keeps a heavy ingestion job from spending the budget of your other writes. Details are in rate limiting. - Verify with reads.
GET /v3/events/lists and filters,GET /v3/events/{event_uuid}/returns one event with its rule evidence, andGET /v3/events/subjects/{vendor_data}/returns one subject's timeline.GET /v3/events/enrichment-metrics/shows IP-enrichment cache health if you are chasing missing network fields. A retried batch that comes back withidempotent_replaytrue should not change any of these reads. - Confirm your rules actually see events.
A rule fires on transactions only unless
scope.record_typesincludesevent. In the console this is the Applies to selector on a rule's Trigger step, where choosing Events reveals a category checklist. In the API:{ "title": "Failed login burst", "scope": { "record_types": ["event"], "event_categories": ["security"] }, "aggregation": [ { "metric": "count", "operator": "gte", "value": 3, "window": "30m", "filters": { "subject_vendor_data": "__current__", "event.action_type": "login_failed" } } ], "actions": [ { "type": "add_score", "value": 40 }, { "type": "change_status", "value": "IN_REVIEW" } ] }The rule vocabulary, aggregation types and event field paths are in event rules.

Expected output
A first write returns the stored event record:
{
"event_uuid": "0f2b...",
"event_id": "login-2026-08-31-000001",
"status": "ACCEPTED",
"score": 0,
"rules_evaluated_count": 6,
"rules_matched_count": 0,
"correlation_pending": false,
"retention_class": "standard",
"expires_at": "2026-09-30T20:40:31.123Z",
"idempotent_replay": false,
"rule_matches": []
}
event_uuid is Didit's identifier and event_id is yours, returned so you can join the record back to your own database. status and score come from the active rules, rules_evaluated_count and rules_matched_count tell you whether anything looked at the event, and rule_matches carries the evidence. On a retry of the same id with the same content, the same record comes back with idempotent_replay set to true and no second event is created.
Failure cases and recovery
Fix the 403 event_monitoring_disabled error
This is the one you will hit first. The body is {"code": "event_monitoring_disabled"} and it comes from the write lanes only, because event ingestion is opt-in. The request is not wrong and retrying it changes nothing. Open Transactions, then Settings, then Event monitoring in the Business Console and enable it. Then resend with the same event_id values, which is safe: nothing was stored while the switch was off, so nothing can collide.
| Status | Body or code | What to do | Retry |
|---|---|---|---|
| 403 | event_monitoring_disabled | Enable event monitoring in the console | Yes, after enabling |
| 403 | You do not have permission to perform this action. | No x-api-key header was sent | Yes, after adding the key |
| 403 | This API key can't be used from this IP address. | Call from an address on the key's IP list | Yes, from an allowed IP |
| 403 | This API key has no access to this endpoint. | Use a key with access to the event lane | Yes, with another key |
| 403 | application_deleted | The application and its keys are gone | No |
| 401 | Key wrong, malformed, revoked or expired | Check DIDIT_API_KEY or create a new key | Yes, after fixing |
| 400 | Field validation errors | Fix what the body names: missing required fields, occurred_at outside the window, payload over 16 KB, more than 100 custom keys | Yes, after fixing |
| 429 | Rate limit or quota | Wait for Retry-After | Yes, after waiting |
| 500, 502, 503 | Unexpected or dependency failure | Read code if present, then retry. A 5xx body may not be JSON | Yes, with backoff |
On a 429 read X-RateLimit-Scope and Retry-After, treat the header value as the floor, and layer exponential backoff with jitter on top, roughly 5s, 10s, 20s, 40s, stopping after about five attempts and alerting your team. Sustained 429s usually mean a loop, not a spike. The response also carries reference, limit, remaining, reset and window_seconds; use Retry-After for the delay. Note that rate-limit headers are only emitted on 429 responses, not on successful ones. The full error contract is in API errors.
One contrast is worth memorising, because it changes how you write retry code. A duplicate transaction_id on the transaction lane returns 400, or 409 when two identical requests race, and neither response returns the existing transaction, so you look it up instead. Events do not behave that way: a same-id, same-content resend returns the stored event instead of a conflict. The transaction semantics are in the integration guide, and txn_id should always be generated on your side for the same reason event_id should.
Inputs and outputs
| Field | Direction | Required | Notes |
|---|---|---|---|
event_id | Input | Yes | Your identifier, unique per application, the idempotency key |
event_category | Input | Yes | One of ten: auth, session, gameplay, bonus, affiliate, payment, dispute, security, responsible_gambling, custom |
action_type | Input | Yes | Open string, up to 128 characters |
occurred_at | Input | Yes | Up to 7 days past, 5 minutes future |
subject.vendor_data | Input | Yes | Your user id, resolved to the same user a transaction resolves to |
session, device_context, transaction_context, payload, custom_values | Input | No | Payload up to 16 KB, up to 100 scalar custom keys |
event_uuid | Output | Always | Didit's id for the stored event |
status, score | Output | Always | Result after rule evaluation |
idempotent_replay | Output | Always | False on first write, true when you resent an id and content that already exist |
rule_matches, correlation_pending | Output | Always | Rule evidence and whether correlation is still in flight |
Paid steps and review boundaries
Enabling event monitoring is a console setting and the pricing feed publishes no event-ingestion unit price, so batch volume is not a line item you can quote from the feed today. The neighbouring published price is Transaction Monitoring at $0.001 per transaction beyond the plan's monthly allowance, with 1,000 included on Free, 10,000 on Growth and 100,000 on Scale. Plans are $0 a month on Free with $10 of monthly credit, $99 on Growth with $115 of credit and 4% off Didit prices, and $299 on Scale with $350 of credit and 10% off. Read the current figures on didit.me/pricing before you commit a budget.
The boundary that costs real money is human review. Didit stores the event, evaluates the rules and returns the score and the matched evidence. Deciding what an alert means stays with your team, and that review time is your own staffing cost rather than a credit line on the Didit price feed. Rule authoring is also yours: a rule that fires on a 30 minute failed-login burst will put subjects in front of an analyst, and the sequence and velocity definitions are the ones in the event rules reference.

Worked cost example
Using only published unit prices, for a Growth plan month with 250,000 monitored transactions:
- Allowance: 10,000 monitored transactions a month included.
- Billable volume: 250,000 minus 10,000 equals 240,000 transactions beyond the allowance.
- Overage: 240,000 multiplied by $0.001 equals $240.00.
- Plan fee: $99.00 a month, which also brings $115 of credit and 4% off Didit prices.
- Gross plan fee plus overage is $339.00. After applying the $115 monthly credit, the remaining usage funding is $125.00, so the plan fee plus remaining usage funding is $224.00, assuming no other usage.
Now the event side of the same month. Event ingestion has no published per-event rate, so the batch itself adds no figure I can put in this arithmetic. What the batch changes is throughput and review load. A 12,000-event backfill at 500 per request is 24 requests, which is 24 of the 600 requests the ingest-write scope allows in a minute. Whatever your rules escalate to IN_REVIEW is analyst time, and that is a staffing cost rather than a Didit credit.
Sources
- Didit docs: Event Ingestion API, non-monetary monitoring, read November 26, 2026
- Didit docs: Event rules, velocity, ratio, sequence, correlation, read November 26, 2026
- Didit docs: Transaction Monitoring integration guide, idempotency and historical ingestion, read November 26, 2026
- Didit docs: Transaction Monitoring quickstart, read November 26, 2026
- Didit docs: API errors, status codes, bodies and fixes, read November 26, 2026
- Didit docs: API rate limiting, limits, headers and 429 backoff, read November 26, 2026
- Didit docs: API authentication, read November 26, 2026
- Didit pricing page and pricing as JSON, live price feed read November 26, 2026
Next step: open the sandbox at business.didit.me, enable event monitoring in your test application, and send one event with a stable event_id before you send the first batch of 500. No sales call is needed to start.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
How many events can I send in one Didit batch request?
POST /v3/events/batch/ accepts up to 500 events in one request, authenticated with the x-api-key header. Larger volumes are split across requests, and the ingest-write scope allows 600 requests per minute per API key. That is a ceiling of 300,000 events per minute before any 429 response.
What is the idempotency key for Didit events?
event_id is the idempotency key. It is required, it is your own identifier, and it must be unique per application. Generate it on your side from a stable natural key such as an order id or a login attempt id, and reuse exactly that value on every retry.
What happens if I resend the same event_id with the same content?
The response comes back with "idempotent_replay": true and the originally stored event, and no second record is created. That is the documented behaviour for a same-id, same-content replay. Keep the content identical on retries so you stay inside that guarantee.
Why do I get a 403 with code event_monitoring_disabled?
Event ingestion is opt-in, and until you enable it every write lane answers 403 with {"code": "event_monitoring_disabled"}: POST /v3/events/, POST /v3/events/batch/, POST /v3/events/sdk-token/ and the /v1/events/ device lane. Turn it on in Transactions, then Settings, then Event monitoring in the Business Console. Nothing is stored while it is off, so resending afterwards with the same ids is safe, and read calls are unaffected throughout.
Is event_id unique across applications or across my whole account?
The docs define event_id as unique per application, so treat the combination of application and event_id as the key. Two different Didit applications are not implied to share one id space. If you run events for several brands, keep the identifier scheme namespaced in your own data.
How should I handle a 429 from the batch endpoint?
Read the Retry-After header and treat it as the floor for your delay, then add exponential backoff with jitter, roughly 5s, 10s, 20s, 40s. Stop after about five attempts and alert your team, because a sustained 429 usually means a loop rather than a spike. Retrying is safe on events because the same event_id and content replay instead of duplicating.
Do events and transactions handle duplicate ids the same way?
No. A duplicate transaction_id returns 400, or 409 when two identical requests race, and neither response returns the existing transaction, so you look it up with the uuid or the transaction.created webhook. A duplicate event_id with identical content returns the stored event with idempotent_replay true. Write your retry code accordingly.
How far in the past can occurred_at be for a backfill?
occurred_at may be up to 7 days in the past and up to 5 minutes in the future. A backfill older than 7 days will fail validation rather than store, so plan the migration window around that limit. Send your own clock value, not the time the batch happened to flush.
Are events billed separately from transactions?
The live price feed does not publish an event-ingestion unit price, and the event docs present ingestion as part of Transaction Monitoring. The published unit price you can quote is Transaction Monitoring at $0.001 per transaction beyond the plan allowance of 1,000 on Free, 10,000 on Growth or 100,000 on Scale. Confirm current terms on the pricing page before you size a contract.
How do I check whether a batch was stored and what it scored?
Use GET /v3/events/ to list and filter, GET /v3/events/{event_uuid}/ for one event with its rule evidence, and GET /v3/events/subjects/{vendor_data}/ for a single subject's timeline. The write response already returns status, score, rules_evaluated_count and rule_matches. If events arrive but nothing scores, check the rule's scope.record_types includes event.
Does enabling event monitoring change my existing transaction rules?
No. A rule fires on transactions only unless scope.record_types includes event, so every rule written before events existed behaves exactly as it did. You opt a rule into events deliberately, either with the Applies to selector in the console or with record_types in the API.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


