Versioning
The version is in the URL
Section titled “The version is in the URL”Operations are under /v1/ on https://api.voidfs.com. There is no version header and no version parameter. Three older paths (/native/account, /v3/control and /v3/transfer) are not under /v1/ yet; they are removed when their operations move.
The version covers the URLs and the JSON on them. Formats that are signed and then stored or passed on, such as catalog and link records, carry their own version inside them (voidfs-…-v1) and keep it under /v1 and under any later version.
Until sign-up opens: v1 can break
Section titled “Until sign-up opens: v1 can break”voidFS isn’t open yet. Until public sign-up opens, v1 may change in ways that break a client: a path, a field or an error code can be renamed or removed. voidFS changes its own web app and CLI in the same release, and this site is rebuilt from the service’s code with every release, so the reference always describes what the service serves.
v1 is also not complete: the requests a device signs are still moving into it. See Getting started.
After sign-up opens: additive only
Section titled “After sign-up opens: additive only”From the day public sign-up opens, v1 changes only by addition.
Compatible, may happen in v1 |
Breaking, needs /v2 |
|---|---|
| A new operation | Removing or renaming a path |
| A new field | Removing or renaming a field |
| Removing or renaming an error code |
So that additions never break it, a client should:
- ignore reply fields it does not know;
- branch on a problem’s
error, and fall back to itscategoryfor a code it does not know (see Errors); - treat a
nextCursoras opaque (see Paging).
When a client is too old
Section titled “When a client is too old”The service can require a minimum version of the CLI. A request from an older one answers 400 with the error code client-outdated; the fix is to update the client, not to retry.
What v1 does not cover
Section titled “What v1 does not cover”/auth. Its paths, bodies and replies are Better Auth’s contract and follow the library. The service decides only which of them it serves./openapi.json. The document describes the version; itsinfo.versionis1.0.0./webhooks/polar. The address Polar sends billing events to.