API documentation
Changelog
History of the public CloakCTL API. The version in the path (/api/v2/) changes only on an incompatible shape change; compatible additions ship without a version bump and are recorded here.
2026-11-26 — first public API v2 release
First release of the cloud automation API and the local API, together with this documentation.
Cloud API https://api.cloakctl.com/api/v2/automation
- Subscription:
GET /subscription— plan, licence expiry, RPM/RPH/token limits and usage. - Profiles: list with search and filters, create, read, update, batch delete up to 100, trash bin, restore, single and batch force stop.
- Tags: account catalog, create, rename and colour, delete.
- Proxies: account catalog with credentials, create, update, delete. v1 accepts only
httpandsocks5(aliassocks);httpsandsshare not implemented — a core limitation, see the limitations. - Fingerprints: platforms, screens, device models, renderers.
- Extensions: account catalog list.
GET /openapi.json: machine description of v2 routes only, available without authentication.- Response format is an Octo-like envelope
{success, msg, code, data}plustotal_count/pageon lists. - Rate-limit headers
X-Ratelimit-*,Retry-Afteron 429, higher cost for validation errors and conflicts. DELETE /profiles:skip_trash_bindefaults tofalse— the profile goes to the trash bin for 72 hours; the response is always 200 and reports the outcome indeleted/trashed/failed.- Cloud proxies: only
httpandsocks5(plus thesocksalias);https,sshand VPN are not supported. - Licence refusals are distinguished:
account_required,license_missing,license_not_startedin addition to the design list.
Authentication and tokens
cc_…token with one-time secret display, rotation and revocation.- Three headers:
X-Octo-Api-Token,Authorization: Bearer,X-CloakCTL-Api-Token— in that priority order. - Scopes: profile read/create/edit/delete, profile passwords, proxies, tags, templates, audit log.
- Default plan limits:
start— 1 token, 30 RPM, 600 RPH;solo(legacy) — 1, 60, 1200;team(working) — 3, 120, 3000;scale(advanced) — 5, 240, 6000. An unknown plan getssolo.
Local API http://127.0.0.1:48900/api
- Active sessions of this client, launch with
ws_endpoint, graceful and forced stop. - Profile passwords: set and clear.
- Proxy checks from the operator machine.
- Client version, update trigger, account login.
- Interactive login and logout are disabled: the local API runs under a token.
- The default port is
48900, not58888: port58888is occupied by Octo Browser's local API. The port changes in the settings and viaCLOAKCTL_LOCAL_API_PORT(1024..65534); a busy port is never retried automatically — the listener simply does not start and the panel keeps working. GET /api/update:update_required: truemeans "a newer build is available"; there is no separate critical-update notion.force_stop: accelerated close that waits up to 15 s for the actual stop, otherwise 409profiles.still_closing; sealing and publishing are never bypassed and there is no unsynced-data guarantee.- Token scopes are checked per route:
profiles_read,profiles_edit,profile_passwords,proxies_read; without the scope — 403no_permission. - The token is verified on the server with a cache (60 s positive, 5 s negative); without connectivity — 503
api.unavailable.
Documentation
- Static site
https://docs.cloakctl.com/in two languages (Russian primary, English translation). - Machine descriptions:
spec/endpoints.jsonandspec/limits.json; the build checks route coverage against the contract, limit consistency and internal link integrity. - Request and response examples in the reference are assembled from the machine description, so they cannot drift from it.
Known limitations of this release
- No folders, teams and sub-accounts, proxy providers, cookie import, start pages, profile import/export/transfer, one-time profiles.
- No fixed debugging port: a free port with
ws_endpointonly. - No per-token profile visibility by tag or folder: a token sees every account profile.
- Limits are kept in process memory: restarting the orchestrator resets the current window.
- A cloud force stop does not close the browser on the operator machine.
Verification status
- The documentation is built from the accepted contract; end-to-end verification on the live contour is performed during deployment and recorded separately.
- Checking
spec/limits.jsonagainst the liveGET /subscriptionis available aspython docs/api/verify_examples.py --check-limitsafter deployment.
How to track changes
- This page is the human-readable history; new entries are added on top.
GET /openapi.jsonis the machine description of the live routes.version.jsonon the documentation site carries the build date and id, base URLs and plan limits.- Incompatible shape changes come with a new version prefix in the path; compatible additions (new fields, new routes) ship in the current version.
Planned (not a promise)
A second wave, if implemented, will appear here as its own entry: folders, teams and sub-accounts, proxy providers, cookie import, start pages, profile import/export/transfer, one-time profiles, a fixed debugging port. Until that entry exists the API does not have these features — please do not build integrations on them.