Changelog and compatibility
The API contract lives in one file, openapi.yaml: the reference is built from it, and the server is tested against it. The current contract version is 0.2.15, stated in the info.version field.
Compatibility rules
Section titled “Compatibility rules”Version in the path. All paths start with /v1. As long as the path starts with /v1, the contract only changes by addition:
- new fields in responses and webhook bodies;
- new enum values: statuses, reasons (
reason), change kinds (kind), metrics; - new error codes in the
codefield; - new webhook types;
- new operations and optional request parameters.
What counts as incompatible. Removing or renaming a field, changing its type or meaning, making something required that was optional in a request, removing an enum value, changing a response’s HTTP status. Such a change ships only in a new path version, /v2. After that the old version keeps working until all clients have moved to the new one.
What your code needs so that additions don’t break it:
- Skip unknown fields. Don’t turn on a strict JSON parser mode that fails on extra fields.
- Handle unknown values. In a
switchonstatus,reason,kindand the webhook type, keep a default branch: log it and move on. - Answer a webhook of an unknown type with 2xx and do nothing. Otherwise we’ll keep retrying it for a day.
- Tell errors apart by
code, not by thedetailtext and not bytype: the text may change.
Contract version number. info.version grows with every change of the contract, even if only a description changed. It’s a handy way to check which version you read.
How we announce changes. Every new version lands on this page. We announce them a week in advance in our Telegram channel and by email newsletter. The test environment runs 1–2 versions ahead of production, so you can try a new version in test before it reaches live.
Versions
Section titled “Versions”Dates are when the contract version reached the main branch.
0.2.15, 01.12.2026
Section titled “0.2.15, 01.12.2026”- New test environment address:
https://test-api.zirva.xyz. The oldhttps://test-api.dnk.azstill works for now, but switch to the new one. Fields and behaviour are unchanged.
0.2.14, 30.11.2026
Section titled “0.2.14, 30.11.2026”- New product name, Zirva: the contract title is now
Zirva API, and descriptions mention Zirva. Fields, addresses and behaviour are unchanged.
0.2.13, 23.11.2026
Section titled “0.2.13, 23.11.2026”- Webhook address requirements:
https://, a public host, all IP addresses of the name checked on every attempt, IPv6 only from2000::/3, a certificate for the address name, no redirects followed. webhook-timestampis the moment of the particular attempt: each retry is signed anew, so it passes the “no older than 5 minutes” check.timestampin the body is the same in all retries.- The exact retry schedule: 5 seconds, 1, 5 and 30 minutes, 1, 2, 4 and 8 hours, and a last attempt 24 hours after the first. At your request, our operator sends an undelivered message again, with the same
webhook-idand body.
0.2.12, 19.11.2026
Section titled “0.2.12, 19.11.2026”- Webhook response: answer 2xx within 10 seconds; we give the whole attempt 15 seconds.
- An accepted webhook may occasionally come again: drop duplicates by
webhook-id.
0.2.11, 16.11.2026
Section titled “0.2.11, 16.11.2026”scenario.completedgets a new required fieldcompletion_cap: a completion beyond the “first N” cap, without a discount or badges (R8).versioninscenario.completedis the completion’s version at the moment it appeared, the same in all retries;timestampis the moment of recording.- Described from which moment webhooks are sent: about what was recorded after the address was set or re-enabled.
0.2.10, 13.11.2026
Section titled “0.2.10, 13.11.2026”- Users:
POST /v1/userscan be retried,PATCHfollows JSON Merge Patch,DELETEstops using the user, and their discounts stay as they were (U5). - The status of a new user without events is 200 with the available scenarios in
not_started. - Checkout: a timeout of no more than 30 seconds, two
releasecalls after a failedreserve, a 3-second write window, 503 withRetry-Afterwhen the user is busy. - The
reserved→expiredtransition: the reservation ended and the reward’s validity had already passed (R4).
0.2.6, 08.11.2026
Section titled “0.2.6, 08.11.2026”GET /v1/events/{event_id}shows changes of completions, rewards and badges at the event that caused them, and for a rollback, the progress right after it (E9).- A new change kind
reward_withheld: there will be no discount for the completion (no_budgetorcompletion_cap). - An operator can annul a reward (R9); the cancellation reason is in the new
cancel_reasonfield.
0.2.5, 05.11.2026
Section titled “0.2.5, 05.11.2026”- Activation of a new scenario version (W6):
completed_atcan be the activation moment, and a past event’s row isn’t rewritten.
0.2.4, 05.11.2026
Section titled “0.2.4, 05.11.2026”- Languages: the client enables languages from
az,ruanden; the response language is chosen byAccept-Language(RFC 9110) and named inContent-Language. changesof anignoredevent can hold progress of versions in shadow.- Described
currentandtargetof progress, including for a level ladder; theapplies_toformat.
0.2.3, 02.11.2026
Section titled “0.2.3, 02.11.2026”- Clarifications:
unknown_typeis judged by this mode’s vocabulary as of the event; currency is checked only if the type describescurrency; the meaning ofprocessed_at; a deleted user’s events are no longer recalculated.
0.2.2, 01.11.2026
Section titled “0.2.2, 01.11.2026”- A new reason
refunded: the event is excluded by a rollback and counts again after a rollback reversal (V2, V7).
0.2.1, 01.11.2026
Section titled “0.2.1, 01.11.2026”- Every operation with a body can answer 413 and 415.
- The 201 answer to
POST /v1/usershas noLocationheader. - An applied rollback is
processedwith emptyscenarios; one waiting for the original event isignoredwith reasonawaiting_original. - The widget token is signed with the whole secret string;
kidis the secret id. as_ofof a user without events is the response time; theETagfollows the status.- A badge’s
earned_atis the completion moment, not the processing time. reservationis filled only while the reward isreserved.
0.2.0, 24.10.2026
Section titled “0.2.0, 24.10.2026”- The control group is set per scenario; the
groupfield is the result over the active scenarios (U2, C2). - Scenarios with an object:
object_ref,applies_to_ref(O1). - A completion has an id and a version; an available reward can return to
pending(F3). - Linking rollbacks to original events and rollback reversals (V1–V7), the daily limit, versions in shadow.
- New reasons
missing_fieldandvalue_used, thedistinct_valuesmetric;order_idcan be an integer. - Removed: the
budget_exhaustedflag. An exhausted budget now only hides the scenario (R6).
0.1.0, 22.10.2026
Section titled “0.1.0, 22.10.2026”- The first version of the contract: events, users, status, rewards, badges, widget, webhooks.