Versioning and deprecation
How the API changes without breaking your code, and how you hear about it.
2 min read Updated
The API's version is in every path: /v1. Within a version the API only grows, so code that works today keeps working; anything
that could break it waits for the next version, announced well ahead.
What can change within a version
Changes that keep your code working, which can come at any time:
- New operations.
- New optional fields in a request, and new query parameters.
- New fields in an answer.
- New values in a field of fixed values, like a new
status. - New event types and new error codes.
So ignore fields you don't know, and treat a value, event type or code you don't know as something new rather than an error (see Answers grow).
What waits for a new version
Anything that could break working code goes into /v2: removing or renaming a field, changing its type or its meaning, a new required
field in a request, or a changed default. When /v2 is announced, /v1 keeps working for at least
12 months, so you can move when it suits you.
Deprecation
An operation or a field can be deprecated within /v1 when something better replaces it. It keeps working until the next version,
and from the day it's deprecated:
- its successful answers carry three headers saying so, and when it ends;
- the changelog and its reference page say what replaces it;
- the accounts whose tokens used it in the last 90 days get an email.
Deprecation: true
Sunset: Sat, 18 Nov 2028 00:00:00 GMT
Link: <https://rabbitflare.com/docs/api/changelog>; rel="deprecation"
Check for Deprecation in your client and log it: you hear about it the first time your code calls something on its way out.
Staying informed
Every change to the API is in the changelog, newest first, and each operation's reference page says when it appeared.
Deprecated today:
| Operation | Request |
|---|---|
| Get a site's Cloudflare protection | GET / |
| Turn a site's Cloudflare protection on or off | PUT / |
| List requests Cloudflare stopped on a site | GET / |
Still have a question?
Our team answers support tickets about the API, and other developers answer in the community.