Admoai follows a "minimize versions" philosophy inspired by SaaS industry leaders. We evolve continuously without forcing disruptive migrations on our customers.
To maintain our minimize-versions philosophy, we require all API integrators to follow the Tolerant Reader Pattern. This industry-standard practice ensures your integration remains resilient to non-breaking API evolution.
Requirement: Your code MUST ignore JSON fields it doesn't recognize.
Why: We add new fields frequently (e.g., metadata, analytics hints). Your integration shouldn't break when we ship improvements.Example: When we added metadata.duration for video ads, integrations following this rule continued working seamlessly.
Requirement: Treat enumerations as open sets, not closed lists.
Why: We may introduce new enum values (e.g., new delivery modes, event types, targeting options) without bumping the version.Example: If we add vast_wrapper delivery mode, your integration should handle it gracefully, not crash.
Requirement: Don't assume JSON objects have a fixed structure.
Why: We extend objects with new optional fields (e.g., adding metadata to Creative). Your schema validation shouldn't reject responses with extra data.Pro Tip: Use TypeScript's Pick<> or Partial<> utilities to select only the fields you need.
Requirement: Validate business logic constraints, not API contract completeness.
Why: We may add new required fields that don't affect your use case. Over-validation creates artificial breaking changes.Best Practice: Validate the minimum viable data needed for your feature, nothing more.
š“ Service terminated: API version no longer accepted
š“ Requests rejected: HTTP 410 Gone returned
š“ No support: Integration assistance unavailable
Breaking Change
Requests with sunset version headers return:
{"success":false,"errors":[{"code":10043,"message":"API version 2024-01-01 is no longer supported. Please upgrade to 2025-01-01 or later.","details":{"deprecated_version":"2024-01-01","active_versions":["2025-01-01","2025-11-01"],"migration_guide":"https://docs.admoai.com/migration-guide"}}]}
Q: What happens if I don't upgrade before sunset?#
Answer:Your API requests will fail with HTTP 410 Gone:
{"success":false,"errors":[{"code":10043,"message":"Version 2024-01-01 is no longer supported","details":{"sunset_date":"2026-01-01","migration_guide":"https://docs.admoai.com/..."}}]}
Prevention Strategy
We send multiple warnings 90, 60, 30, and 7 days before sunset. Don't ignore them!
Q: Do you support version ranges (e.g., >=2025-01-01)?#
Answer:No. We require exact version for predictability: