API Versioning
Our API uses versioning to ensure backward compatibility while introducing new features and improvements. Understanding our versioning approach helps you build resilient integrations.Current Version
The dKit API is currently at version v1. All endpoints use the version prefix in the URL path:https://api.dkit.xyz/v1/quotehttps://api.dkit.xyz/v1/trackhttps://api.dkit.xyz/v1/tokenshttps://api.dkit.xyz/v1/providers
Version Headers
API responses include version information in custom headers:| Header | Description | Example |
|---|---|---|
x-api-version | Current API version | v1 |
x-api-versions | Available API versions | v1 |
Deprecation Policy
We follow a structured deprecation process to give developers ample time to migrate to newer API versions when they become available.Deprecation Notifications
When an API version is scheduled for deprecation, we will:- Announce the deprecation at least 6 months in advance
- Include deprecation headers in API responses
- Provide migration guides and documentation
- Send notifications to registered developers
Planned Deprecation Headers
When deprecation is active, API responses will include:| Header | Description |
|---|---|
Warning | HTTP standard deprecation notice (code 299) |
x-api-deprecated | Boolean indicating deprecation status |
x-api-sunset-date | ISO 8601 date when version will be removed |
Sunset Timeline
Our standard deprecation timeline ensures you have sufficient time to migrate:1
Announcement Phase
Duration: 6 months before deprecation
New version released, documentation updated, migration guides published
2
Deprecation Phase
Duration: 6-12 months
API marked as deprecated, warning headers included in responses
3
Sunset Phase
Duration: 30 days before removal
Final notices sent, increased warning visibility
4
Removal
API version removed, requests return 410 Gone status
Handling Deprecation
Best Practices
- Monitor Headers
- Error Handling
- Version Tracking
Migration Strategy
- Early Detection: Monitor deprecation headers in your production environment
- Gradual Migration: Test new versions in staging before production deployment
- Feature Flags: Use feature flags to switch between API versions
- Monitoring: Track API version usage and deprecation warnings in your logs
Version Compatibility
Breaking Changes
Breaking changes are only introduced in major version updates (e.g., v1 → v2):- Removed endpoints
- Changed required parameters
- Modified response structures
- Authentication changes
Non-Breaking Changes
These changes can occur within the same version:- New optional parameters
- Additional response fields
- New endpoints
- Performance improvements
- Bug fixes
Example Response
A deprecated API response will look like:Notifications
Stay informed about API changes:- GitHub: Follow our GitHub repository for updates
- Support: Contact [email protected] for migration assistance
- Status Page: Check dkit.instatus.com for announcements
Important: Always implement proper error handling to ensure your
integration remains robust.