API documentation
Octo Browser compatibility
CloakCTL API v2 is deliberately partially compatible with the Octo Browser Automation API: the core routes and the response envelope are similar, but identifiers, some shapes and the local API differ. This page is the honest map: what ports unchanged, what needs adjusting, and what does not exist yet.
What is compatible
| Capability | Status | Note |
|---|---|---|
X-Octo-Api-Token header | Works | Checked first, so an existing script needs no change here |
Authorization: Bearer | Works | Second priority |
X-CloakCTL-Api-Token | Works | Our own header, third priority |
{success, msg, code, data} envelope | Works | Success and error share one shape |
total_count and page on lists | Works | Top level, as in Octo |
| Profiles: list, read, create, update, delete | Works | Same field names title, description, tags, proxy, fingerprint |
| Trash bin and restore | Works | GET /profiles/trash_bin, POST /profiles/trash_bin/restore |
| Force stop | Works | Single and batch |
| Tags: list, create, rename, delete | Works | Tag shape {uuid, name, color} |
| Proxies: list, create, update, delete | Works with a limitation | Only http and socks5 (alias socks); https and ssh are not implemented in v1 — a core limitation, see the not-implemented list |
| Fingerprint catalogues (4 routes) | Works | Platforms, screens, models, renderers |
| Extensions: list | Works | Read-only |
| Subscription | Works with differences | The data shape differs — see below |
X-Ratelimit-*, Retry-After headers | Works | Same names, values depend on the CloakCTL plan |
Local start: start, stop, force_stop, active | Works with differences | Requires the token header |
Local proxies/check | Works with differences | Flat response, no data wrapper |
ws_endpoint for CDP | Works | Same field name as Octo |
debug_port in responses | Works | String, as in Octo |
POST /api/update, GET /api/update, GET /api/username | Works with differences | Flat responses, our own message texts |
Differences to plan for
| Item | Octo Browser | CloakCTL v2 |
|---|---|---|
| Profile identifier | 32-character hex | prof_xxxxxxxx |
| Tag identifier | 32-character hex | Catalog row id string, for example "42" |
| Proxy identifier | 32-character hex | prx_xxxxxxxx |
DELETE /profiles: skip_trash_bin | Defaults to true — deletes immediately | Defaults to false — the profile goes to the trash bin and can be restored for 72 hours; the outcome is listed in deleted/trashed/failed |
| Cloud proxy types | http, https, socks5, ssh (+ VPN) | http and socks5 (alias socks); https, ssh and VPN return 400 |
| Profile fields | fingerprint without renderer/noise, no storage_mode | fingerprint.renderer is returned, fingerprint.noise is always null, storage_mode is an extension (legacy/sealed_v1) |
GET /profiles?tag= filter | Visibility by token tags/folders | Filters by tag name; in v1 a token sees every account profile |
GET /openapi.json | No separate public surface | Present: no authentication, only /api/v2/automation/* paths |
GET /subscription | plan, balance, profiles, team_members, api_tokens, rate_limits{rpm,rph} | plan, expires_at, limits{rpm,rph,tokens}, usage{tokens_used,rpm_remaining,rph_remaining,window_reset} |
| Local API authentication | No header needed, a session logs in | Token header required; auth/login and auth/logout always return 400 auth.managed_by_api_token |
| Local API default port | 58888 | 48900: port 58888 is occupied by Octo's local API, so our listener would never come up on a machine running Octo. CLOAKCTL_LOCAL_API_PORT (1024..65534) and client settings apply; a busy port is never retried automatically |
| Local API token scopes | Checked inside the client per session | Checked per route: profiles_read, profiles_edit, profile_passwords, proxies_read; without the scope 403 no_permission |
Local proxies/check | Result inside {"data": {…}} | Flat object {ip, country, timezone, latency_ms, …} |
| Local proxy check types | http, https, socks5, ssh (+ VPN config) | http, https, socks5 (alias socks); ssh is not checked locally |
Local force_stop | Hard stop without synchronisation | Accelerated close that does not bypass sealing or publishing; the response waits up to 15 s for the actual close, otherwise 409 profiles.still_closing. There is no unsynced-data guarantee here either |
| Local request body limit | Not documented by Octo | 64 KiB; larger returns 413 bad_request |
only_local in local start | Sent by the Octo client | Accepted and ignored: Octo's documentation does not define its semantics |
Local numeric debug_port | Accepted (1024–65534) | Not supported: a positive number returns 400 debug_port.not_supported |
Local POST /api/update with no new version | 409 client.update_failed | 409 client.update_failed, same meaning |
Local GET /api/update, update_required | A separate critical-update notion | true means a newer build is available; the flag carries no "critical" meaning |
Local /api/version | Absent | Present: {"version": "…"} |
GET /profiles visibility | visible_tags/folders restrict visibility | In v1 a token sees every account profile; there is no folder filter |
Profile status | 0/1/2 | 0/1/2, computed from the live lease |
| Dates | ISO 8601 without a zone | created_at/last_opened_at are Unix seconds; trash deleted_at/purge_after are ISO 8601 UTC (Z) |
| VPN proxies | Supported (type: vpn) | Not supported in v1 |
What v1 does not have
The following exists in Octo but not in CloakCTL v2. It is not "coming soon" and not a promise: the list records the current state.
| Capability | What it means for a script |
|---|---|
Folders (/folders) | Profile grouping exists in the UI only, not through the API |
Teams, sub-accounts, invites (/teams/*) | One account, one token set; no people management through the API |
Proxy providers (/proxy_providers/*) | Proxies are entered manually; no traffic purchase through the API |
import_cookies | Cloud-side cookie import is not supported |
start_pages, profile bookmarks | Start pages are configured in the client |
| Profile import, export, transfer | No /profiles/import, /profiles/export or /profiles/transfer |
One-time profiles (one_time) | No POST /api/profiles/one_time/start |
| Batch profile password set/clear via the cloud API | Profile passwords are local-API only |
| Cloud-side extension upload and deletion | List only; management happens in the client |
| Fixed debugging port | Not supported: only debug_port: true/false |
| Per-token profile visibility by tag/folder | In v1 a token sees every account profile |
Profile tasks (tasks) | Not manageable through the API |
| Cookie export | No full cookie export through the API, as in Octo |
Mobile CDP on port 9222 | This separate surface is not implemented |
| VPN proxies | Not implemented; the cloud API accepts only http and socks5, so Octo's https/ssh proxies do not pass in v1 either — a core limitation |
| Cloud-side proxy check | Proxies are checked locally only: POST /api/proxies/check |
Porting a script from Octo
- Change the base URL. Cloud:
https://api.cloakctl.com/api/v2/automation. Local:http://127.0.0.1:48900/api. - Keep the
X-Octo-Api-Tokenheader — it is supported first. Or move toAuthorization: Bearer. - Do not imitate identifiers. Take
uuidfrom responses and store it as a string. If the code validated 32-character hex, adjust the format check. - Re-check subscription parsing. Limit fields live in
data.limitsanddata.usage, not indata.rate_limits. - Add the token header to local calls and account for
auth/login/auth/logoutbeing disabled. - Handle the
proxies/checkresponse: it is flat, not{"data": {…}}. - Re-check
force_stopsemantics: if the script relied on losing unsynced data, the behaviour changed — the local forced stop is accelerated but keeps data guarantees. - Remove calls to missing features from the not-implemented list or replace them with manual UI steps.
Verification status
This page describes v1 and is generated from spec/endpoints.json, synchronised with the implemented server contract cloakctl-orchestrator/API_V2.md and with the local API implementation in client/cloakctl/api_automation.py (2026-11-26). End-to-end verification on the live contour (token creation, GET /subscription, profile CRUD, trash and restore, tags, proxies, openapi.json, local start over CDP, 429 and token revocation) is performed during deployment and recorded in the changelog.
If a real response differs from the tables above, the server and spec/endpoints.json are the source of truth; report the discrepancy to support with the exact request and response.