Versioning
How the Quin Local API, Quin Camoufox releases and the SDKs are versioned, and how clients detect the API version they talk to.
Trang này chưa có bản tiếng Việt. Nội dung tiếng Anh được hiển thị bên dưới.
Three version numbers matter when you integrate with Quin Camoufox: the API version, the Quin Camoufox version and the SDK version.
| Version | Current value | Where you see it |
|---|---|---|
| Local API | 1 | The path prefix /api/v1, api_version in GET /status and in the discovery file, info.version of the OpenAPI document |
| Quin Camoufox | 0.7.5 (reported without the dashes and dots of the suffix, e.g. 0.7.0rc5) | quin_version in GET /status and the discovery file; Settings → Local API → Versions |
Python SDK quin-camoufox | 0.7.0rc4 (published with 0.7.0-rc.4; unchanged in 0.7.0-rc.5, whose Local API is the same) | quin --version, quin_camoufox.__version__ |
JavaScript SDK @quin/camoufox-local | 0.7.0 | VERSION export, package.json |
API version 1
Version 1 is the first version of the Local API and ships with Quin Camoufox 0.7. All endpoints live
under /api/v1:
http://127.0.0.1:50380/api/v1/statusCheck the version at start-up:
curl -s http://127.0.0.1:50380/api/v1/status -H "Authorization: Bearer $QUIN_API_TOKEN" \
| jq '{api_version, quin_version}'{"api_version": "1", "quin_version": "0.7.0rc3"}The discovery file written while the API runs carries the same api_version and quin_version
values, so a client can check compatibility before sending a token.
How the SDKs check it
QuinClient.from_local_config() (Python) and QuinClient.fromLocalConfig() (JavaScript) read
api_version from the discovery file. A value other than "1" raises QuinError with the code
unsupported_api_version before any request is made. When you pass a base URL directly (or set
QUIN_API_URL), call status() and compare api_version yourself.
Writing tolerant clients
- Ignore unknown fields. Responses are JSON objects and may gain fields; the JavaScript SDK's types explicitly allow extra fields, and the Python SDK returns plain dictionaries.
- Branch on
error.code, not on messages. Messages are written for people and can change. - Use the action list from
GET /status.automation.actionslists the action names the running Quin accepts. - Pin the OpenAPI document to a release. The published document is named after the Quin release it
was generated from (
quin-local-api-v1.json, from 0.7.0-rc.3; unchanged in rc.4); fetch/api/v1/openapi.jsonfrom your own Quin to see exactly what it serves. See OpenAPI reference.
Release candidates
Quin Camoufox 0.7.5 is a release candidate. This documentation describes API version 1 as served by 0.7.0-rc.3 and later (the API did not change in rc.4).
Differences between the 0.7.0-rc.3 SDKs and the server, fixed in the 0.7.0-rc.4 SDKs (download them with that release):
| Area | Behaviour of the 0.7.0-rc.3 SDKs | Workaround with those SDKs |
|---|---|---|
| Discovery | The SDKs and example scripts look for %LOCALAPPDATA%\QuinProfileManager\local-api.json; Quin writes it to its data folder (…\QuinProfileManager\data\local-api.json by default) | Set QUIN_API_URL=http://127.0.0.1:50380 or pass the path shown in Settings → Local API → Discovery file |
profiles.create(os=…) | The server field is platform; os is refused (422) | Leave os out; send platform over plain HTTP |
wait_for_load(state) / waitForLoad(state) | The SDK sends state; the action expects wait_until (invalid_params) | session.action("wait_for_load", wait_until="load") / session.action("wait_for_load", { params: { wait_until: "load" } }) |
Chờ chủ sở hữu duyệtState the compatibility policy for API version 1 after 0.7.0 final (which changes are additive, how long a deprecated field stays, when /api/v2 would be introduced).
Upgrading Quin
Updating Quin Camoufox keeps your Local API settings and tokens (they are stored in Quin's data folder,
which the installer does not touch). The API restarts with the app; scripts should reconnect. Event ids
start again from 1 after Quin restarts, so reconnect an event stream without Last-Event-ID after
a restart (an old, higher id would hide new events until the counter passes it).