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

CapabilityStatusNote
X-Octo-Api-Token headerWorksChecked first, so an existing script needs no change here
Authorization: BearerWorksSecond priority
X-CloakCTL-Api-TokenWorksOur own header, third priority
{success, msg, code, data} envelopeWorksSuccess and error share one shape
total_count and page on listsWorksTop level, as in Octo
Profiles: list, read, create, update, deleteWorksSame field names title, description, tags, proxy, fingerprint
Trash bin and restoreWorksGET /profiles/trash_bin, POST /profiles/trash_bin/restore
Force stopWorksSingle and batch
Tags: list, create, rename, deleteWorksTag shape {uuid, name, color}
Proxies: list, create, update, deleteWorks with a limitationOnly 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)WorksPlatforms, screens, models, renderers
Extensions: listWorksRead-only
SubscriptionWorks with differencesThe data shape differs — see below
X-Ratelimit-*, Retry-After headersWorksSame names, values depend on the CloakCTL plan
Local start: start, stop, force_stop, activeWorks with differencesRequires the token header
Local proxies/checkWorks with differencesFlat response, no data wrapper
ws_endpoint for CDPWorksSame field name as Octo
debug_port in responsesWorksString, as in Octo
POST /api/update, GET /api/update, GET /api/usernameWorks with differencesFlat responses, our own message texts

Differences to plan for

ItemOcto BrowserCloakCTL v2
Profile identifier32-character hexprof_xxxxxxxx
Tag identifier32-character hexCatalog row id string, for example "42"
Proxy identifier32-character hexprx_xxxxxxxx
DELETE /profiles: skip_trash_binDefaults to true — deletes immediatelyDefaults 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 typeshttp, https, socks5, ssh (+ VPN)http and socks5 (alias socks); https, ssh and VPN return 400
Profile fieldsfingerprint without renderer/noise, no storage_modefingerprint.renderer is returned, fingerprint.noise is always null, storage_mode is an extension (legacy/sealed_v1)
GET /profiles?tag= filterVisibility by token tags/foldersFilters by tag name; in v1 a token sees every account profile
GET /openapi.jsonNo separate public surfacePresent: no authentication, only /api/v2/automation/* paths
GET /subscriptionplan, 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 authenticationNo header needed, a session logs inToken header required; auth/login and auth/logout always return 400 auth.managed_by_api_token
Local API default port5888848900: 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 scopesChecked inside the client per sessionChecked per route: profiles_read, profiles_edit, profile_passwords, proxies_read; without the scope 403 no_permission
Local proxies/checkResult inside {"data": {…}}Flat object {ip, country, timezone, latency_ms, …}
Local proxy check typeshttp, https, socks5, ssh (+ VPN config)http, https, socks5 (alias socks); ssh is not checked locally
Local force_stopHard stop without synchronisationAccelerated 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 limitNot documented by Octo64 KiB; larger returns 413 bad_request
only_local in local startSent by the Octo clientAccepted and ignored: Octo's documentation does not define its semantics
Local numeric debug_portAccepted (1024–65534)Not supported: a positive number returns 400 debug_port.not_supported
Local POST /api/update with no new version409 client.update_failed409 client.update_failed, same meaning
Local GET /api/update, update_requiredA separate critical-update notiontrue means a newer build is available; the flag carries no "critical" meaning
Local /api/versionAbsentPresent: {"version": "…"}
GET /profiles visibilityvisible_tags/folders restrict visibilityIn v1 a token sees every account profile; there is no folder filter
Profile status0/1/20/1/2, computed from the live lease
DatesISO 8601 without a zonecreated_at/last_opened_at are Unix seconds; trash deleted_at/purge_after are ISO 8601 UTC (Z)
VPN proxiesSupported (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.

CapabilityWhat 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_cookiesCloud-side cookie import is not supported
start_pages, profile bookmarksStart pages are configured in the client
Profile import, export, transferNo /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 APIProfile passwords are local-API only
Cloud-side extension upload and deletionList only; management happens in the client
Fixed debugging portNot supported: only debug_port: true/false
Per-token profile visibility by tag/folderIn v1 a token sees every account profile
Profile tasks (tasks)Not manageable through the API
Cookie exportNo full cookie export through the API, as in Octo
Mobile CDP on port 9222This separate surface is not implemented
VPN proxiesNot 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 checkProxies are checked locally only: POST /api/proxies/check

Porting a script from Octo

  1. Change the base URL. Cloud: https://api.cloakctl.com/api/v2/automation. Local: http://127.0.0.1:48900/api.
  2. Keep the X-Octo-Api-Token header — it is supported first. Or move to Authorization: Bearer.
  3. Do not imitate identifiers. Take uuid from responses and store it as a string. If the code validated 32-character hex, adjust the format check.
  4. Re-check subscription parsing. Limit fields live in data.limits and data.usage, not in data.rate_limits.
  5. Add the token header to local calls and account for auth/login/auth/logout being disabled.
  6. Handle the proxies/check response: it is flat, not {"data": {…}}.
  7. Re-check force_stop semantics: if the script relied on losing unsynced data, the behaviour changed — the local forced stop is accelerated but keeps data guarantees.
  8. 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.