Reference

Local API endpoint reference

Every endpoint of PassKeel's local API, grouped by area, with parameters, request bodies and example calls.

This page lists every endpoint of the local API, generated from the API’s own OpenAPI description (version 0.1.0). For the concepts (finding the port, API keys, errors, events and automation connections), read the Local API guide first.

  • Base URL: http://127.0.0.1:50325 (change the port in Settings; GET /v1/config returns it).
  • Authentication: every endpoint needs an API key, sent as X-Api-Key: <key> or Authorization: Bearer <key>. A missing or wrong key answers 401, which is not repeated below.
  • Errors answer {"error": {"code": "...", "message": "..."}}; the codes each endpoint can return are listed under it.
  • The live description of your installed version is at http://127.0.0.1:50325/openapi.json. If it differs from this page, the live one is right for your version.

In the examples, $KEY is your API key and <id> stands for an identifier you got from a list call.

Profiles

Create, find, change, open and close profiles; cookies, logs, PIN locks and live status.

Method Path What it does
GET /v1/hidden Hidden profiles: shown or not
POST /v1/hidden/hide Hide hidden profiles again
PUT /v1/hidden/password Set or remove this computer’s separate hidden-profiles password (before a PIN exists)
POST /v1/hidden/show Show hidden profiles until the next lock, sign-out, idle or app close
GET /v1/pin The account PIN on this computer
POST /v1/pin/change Change the PIN
POST /v1/pin/lock Lock now: hide shown hidden profiles again
POST /v1/pin/reset Reset a forgotten PIN with the account password
POST /v1/pin/setup Create the account PIN
GET /v1/profiles List and search profiles
POST /v1/profiles Create a profile (settings generated unless given)
POST /v1/profiles/bulk Change many profiles at once
GET /v1/profiles/{id} A profile with its location warnings
PATCH /v1/profiles/{id} Change a profile
DELETE /v1/profiles/{id} Move a profile to the trash
GET /v1/profiles/{id}/automation Automation endpoints of an open profile
POST /v1/profiles/{id}/clone Clone a profile (same seed, new id, same extensions)
POST /v1/profiles/{id}/close Close a profile (the engine)
GET /v1/profiles/{id}/cookies Export cookies
POST /v1/profiles/{id}/cookies Import cookies
GET /v1/profiles/{id}/crashes Crash reports (the engine or the Crashpad folder)
POST /v1/profiles/{id}/fit-screen Claim this computer’s monitor as the screen
POST /v1/profiles/{id}/ip-check Check the exit IP from inside an open profile now
POST /v1/profiles/{id}/keep-open Keep an idle profile open
POST /v1/profiles/{id}/kill End a profile’s browser
GET /v1/profiles/{id}/logs A profile’s log (Keel’s log file or its stderr)
POST /v1/profiles/{id}/open Open a profile
GET /v1/profiles/{id}/permissions/geolocation Geolocation site permissions
PUT /v1/profiles/{id}/permissions/geolocation Set a site’s geolocation permission
POST /v1/profiles/{id}/protection Lock a profile with the PIN
DELETE /v1/profiles/{id}/protection Unlock a profile for good (remove its lock)
POST /v1/profiles/{id}/protection/check Check the PIN (or a profile’s older own password) for a locked profile
POST /v1/profiles/{id}/protection/reset Reset a forgotten own password (the owner, with the account password)
POST /v1/profiles/{id}/regenerate Regenerate settings from the profile’s seed
GET /v1/profiles/{id}/resources Last resource report of an open profile
POST /v1/profiles/{id}/restore Restore a profile from the trash
GET /v1/profiles/{id}/status Live status
GET /v1/resources Resources of every open profile, the system and the PassKeel service

GET /v1/hidden

Hidden profiles: shown or not. count only while shown.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/hidden"

Responses:

  • 200 OK

POST /v1/hidden/hide

Hide hidden profiles again.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/hidden/hide"

Responses:

  • 200 OK

PUT /v1/hidden/password

Set or remove this computer’s separate hidden-profiles password (before a PIN exists). Without password the account password is used again. 409 use_pin once the account has a PIN.

Request body (JSON):

Field Type Description
currentPassword (required) string
password string
curl -X PUT -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"currentPassword":"<currentPassword>"}' \
  "http://127.0.0.1:50325/v1/hidden/password"

Responses:

  • 200 OK
  • 400: weak_password
  • 403: wrong_password

POST /v1/hidden/show

Show hidden profiles until the next lock, sign-out, idle or app close. With a PIN: pin, each time they are revealed; before one: password.

Request body (JSON):

Field Type Description
pin string
password string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/hidden/show"

Responses:

  • 200 OK
  • 400: pin_required
  • 403: wrong_pin, pin_disabled, wrong_password
  • 429: too_many_pin_tries, too_many_password_tries

GET /v1/pin

The account PIN on this computer. set, disabled, failures, attemptsLeft, waitSeconds, needsSetup (locked or hidden profiles from an earlier version and no PIN yet), ownPasswordProfiles [{id, name}] still to move, accountPasswordProfiles, hiddenPassword.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/pin"

Responses:

  • 200 OK

POST /v1/pin/change

Change the PIN. The lock key and every profile key stay the same; the new PIN reaches the account’s other computers with the synced records.

Request body (JSON):

Field Type Description
currentPin (required) string
newPin (required) string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"currentPin":"<currentPin>","newPin":"<newPin>"}' \
  "http://127.0.0.1:50325/v1/pin/change"

Responses:

  • 200 OK
  • 400: bad_pin (6 digits)
  • 403: wrong_pin (attemptsLeft, waitSeconds), pin_disabled, wrong_password
  • 409: no_pin, pin_exists, signed_out, account_password_unavailable
  • 429: too_many_pin_tries (waitSeconds)

POST /v1/pin/lock

Lock now: hide shown hidden profiles again. locked profiles ask for the PIN at every open, so nothing else stays unlocked.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/pin/lock"

Responses:

  • 200 OK

POST /v1/pin/reset

Reset a forgotten PIN with the account password. Also turns a PIN that was turned off after 10 wrong tries back on. Nothing is re-encrypted or lost.

Request body (JSON):

Field Type Description
accountPassword (required) string
newPin (required) string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"accountPassword":"<accountPassword>","newPin":"<newPin>"}' \
  "http://127.0.0.1:50325/v1/pin/reset"

Responses:

  • 200 OK
  • 400: bad_pin (6 digits)
  • 403: wrong_pin (attemptsLeft, waitSeconds), pin_disabled, wrong_password
  • 409: no_pin, pin_exists, signed_out, account_password_unavailable
  • 429: too_many_pin_tries (waitSeconds)

POST /v1/pin/setup

Create the account PIN. Signed in. Profiles locked with the account password move to the PIN; the separate hidden-profiles password is removed. Returns the status with moved.

Request body (JSON):

Field Type Description
pin (required) string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"pin":"<pin>"}' \
  "http://127.0.0.1:50325/v1/pin/setup"

Responses:

  • 200 OK
  • 400: bad_pin (6 digits)
  • 403: wrong_pin (attemptsLeft, waitSeconds), pin_disabled, wrong_password
  • 409: no_pin, pin_exists, signed_out, account_password_unavailable
  • 429: too_many_pin_tries (waitSeconds)

GET /v1/profiles

List and search profiles. Shaped for a virtualised list.

Parameter In Type Description
q query string search (name, notes, tags)
view query “full” | “summary” | “ids”
status query “open” | “closed” | “all”
tag query string
proxyId query string none = without a proxy
groupId query string none = in no group
trash query boolean the trash instead
sort query “created” | “updated” | “name” | “status” | “relevance”
order query “asc” | “desc”
limit query integer
offset query integer
workspace query string personal, a team workspace ID, or all (default); rows from a team or a share carry access
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles"

Responses:

  • 200 OK

POST /v1/profiles

Create a profile (settings generated unless given).

Request body (JSON, optional):

Field Type Description
name string
notes string
tags array of string
groupId string or null
proxyId string or null
settings object A full Keel settings document (validated); without it one is generated. extensions is refused (it comes from the extension library).
startUrls array of string
acceptedWarnings array of string
engineVersion string or null pin to an installed engine of the profile’s major; null follows the newest one
device “windows” | “macos” create only: the OS the profile claims; default this computer’s. macOS works on Windows too (opened with Keel’s --keel-allow-foreign-platform, Keel r3+; fonts and WebGL stay Windows’); a Windows profile on a Mac is refused (400 device_not_host)
onOpen “restore” | “startPages” restore (default) reopens the last windows and tabs, start pages only on the first open; startPages opens a new tab and the start pages every time (policies.RestoreOnStartup)
browser “chrome” | “edge” the browser the profile presents as; edge sets Microsoft Edge’s user agent (Edg/), brands and full versions (400 bad_browser)
hidden boolean hidden profiles leave lists, search, groups, counts, automation, the API and cloud views until POST /v1/hidden/show
autoCloseMinutes integer close after this many idle minutes (0 = off, at most 1440; 400 bad_auto_close); a 1-minute idleWarning event first
matchIp boolean match the time zone, languages, locale and (when set) geolocation to the exit IP seen from inside the running profile; applied at the next open
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles"

Responses:

  • 201: Created
  • 400: invalid_settings (with issues), extensions_in_settings, secret_in_settings, unknown proxy or group

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "groupId": "<groupId>",
  "notes": "<notes>",
  "tags": [
    "<tags>"
  ],
  "proxyId": "<proxyId>",
  "settings": {},
  "engineMajor": 0,
  "engineVersion": "<engineVersion>",
  "hostClass": "<hostClass>",
  "startUrls": [
    "<startUrls>"
  ],
  "acceptedWarnings": [
    "<acceptedWarnings>"
  ],
  "status": "<status>",
  "locationWarnings": [
    {}
  ],
  "created": 0,
  "updated": 0,
  "os": "<os>",
  "onOpen": "restore",
  "browser": "chrome",
  "hidden": false,
  "protection": {
    "kind": "pin"
  },
  "options": {
    "autoCloseMinutes": 0,
    "matchIp": false,
    "ipMatch": {}
  }
}

POST /v1/profiles/bulk

Change many profiles at once.

Request body (JSON):

Field Type Description
ids (required) array of string
groupId string or null
addTags array of string
removeTags array of string
proxyId string or null
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"ids":["<ids>"]}' \
  "http://127.0.0.1:50325/v1/profiles/bulk"

Responses:

  • 200 OK

GET /v1/profiles/{id}

A profile with its location warnings.

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>"

Responses:

  • 200 OK
  • 404: No such profile

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "groupId": "<groupId>",
  "notes": "<notes>",
  "tags": [
    "<tags>"
  ],
  "proxyId": "<proxyId>",
  "settings": {},
  "engineMajor": 0,
  "engineVersion": "<engineVersion>",
  "hostClass": "<hostClass>",
  "startUrls": [
    "<startUrls>"
  ],
  "acceptedWarnings": [
    "<acceptedWarnings>"
  ],
  "status": "<status>",
  "locationWarnings": [
    {}
  ],
  "created": 0,
  "updated": 0,
  "os": "<os>",
  "onOpen": "restore",
  "browser": "chrome",
  "hidden": false,
  "protection": {
    "kind": "pin"
  },
  "options": {
    "autoCloseMinutes": 0,
    "matchIp": false,
    "ipMatch": {}
  }
}

PATCH /v1/profiles/{id}

Change a profile. Settings are validated; changing the proxy re-derives location fields still at their generated values.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
name string
notes string
tags array of string
groupId string or null
proxyId string or null
settings object A full Keel settings document (validated); without it one is generated. extensions is refused (it comes from the extension library).
startUrls array of string
acceptedWarnings array of string
engineVersion string or null pin to an installed engine of the profile’s major; null follows the newest one
device “windows” | “macos” create only: the OS the profile claims; default this computer’s. macOS works on Windows too (opened with Keel’s --keel-allow-foreign-platform, Keel r3+; fonts and WebGL stay Windows’); a Windows profile on a Mac is refused (400 device_not_host)
onOpen “restore” | “startPages” restore (default) reopens the last windows and tabs, start pages only on the first open; startPages opens a new tab and the start pages every time (policies.RestoreOnStartup)
browser “chrome” | “edge” the browser the profile presents as; edge sets Microsoft Edge’s user agent (Edg/), brands and full versions (400 bad_browser)
hidden boolean hidden profiles leave lists, search, groups, counts, automation, the API and cloud views until POST /v1/hidden/show
autoCloseMinutes integer close after this many idle minutes (0 = off, at most 1440; 400 bad_auto_close); a 1-minute idleWarning event first
matchIp boolean match the time zone, languages, locale and (when set) geolocation to the exit IP seen from inside the running profile; applied at the next open
curl -X PATCH -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>"

Responses:

  • 200 OK
  • 400: Invalid settings
  • 404: No such profile

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "groupId": "<groupId>",
  "notes": "<notes>",
  "tags": [
    "<tags>"
  ],
  "proxyId": "<proxyId>",
  "settings": {},
  "engineMajor": 0,
  "engineVersion": "<engineVersion>",
  "hostClass": "<hostClass>",
  "startUrls": [
    "<startUrls>"
  ],
  "acceptedWarnings": [
    "<acceptedWarnings>"
  ],
  "status": "<status>",
  "locationWarnings": [
    {}
  ],
  "created": 0,
  "updated": 0,
  "os": "<os>",
  "onOpen": "restore",
  "browser": "chrome",
  "hidden": false,
  "protection": {
    "kind": "pin"
  },
  "options": {
    "autoCloseMinutes": 0,
    "matchIp": false,
    "ipMatch": {}
  }
}

DELETE /v1/profiles/{id}

Move a profile to the trash.

Parameter In Type Description
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>"

Responses:

  • 204: Done
  • 404: No such profile
  • 409: The profile is open

GET /v1/profiles/{id}/automation

Automation endpoints of an open profile.

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/automation"

Responses:

  • 200 OK
  • 409: Not open

POST /v1/profiles/{id}/clone

Clone a profile (same seed, new id, same extensions).

Parameter In Type Description
id (required) path string Identifier

Request body (JSON, optional):

Field Type Description
name string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/clone"

Responses:

  • 201: Created

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "groupId": "<groupId>",
  "notes": "<notes>",
  "tags": [
    "<tags>"
  ],
  "proxyId": "<proxyId>",
  "settings": {},
  "engineMajor": 0,
  "engineVersion": "<engineVersion>",
  "hostClass": "<hostClass>",
  "startUrls": [
    "<startUrls>"
  ],
  "acceptedWarnings": [
    "<acceptedWarnings>"
  ],
  "status": "<status>",
  "locationWarnings": [
    {}
  ],
  "created": 0,
  "updated": 0,
  "os": "<os>",
  "onOpen": "restore",
  "browser": "chrome",
  "hidden": false,
  "protection": {
    "kind": "pin"
  },
  "options": {
    "autoCloseMinutes": 0,
    "matchIp": false,
    "ipMatch": {}
  }
}

POST /v1/profiles/{id}/close

Close a profile (the engine).

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/close"

Responses:

  • 200 OK
  • 409: Not open

GET /v1/profiles/{id}/cookies

Export cookies. CDP when open, keel_cookie_tool when closed.

Parameter In Type Description
id (required) path string Identifier
format query “json” | “netscape”
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/cookies"

Responses:

  • 200 OK
  • 409: busy, or syncing

POST /v1/profiles/{id}/cookies

Import cookies.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
data (required) string
format “json” | “netscape” | “auto”
mode “merge” | “replace”
skipInvalid boolean
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"data":"<data>"}' \
  "http://127.0.0.1:50325/v1/profiles/<id>/cookies"

Responses:

  • 200 OK
  • 400: invalid_cookies
  • 409: busy, profile_open from the tool, or syncing (the profile’s sync did not finish within 120 s)

GET /v1/profiles/{id}/crashes

Crash reports (the engine or the Crashpad folder).

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/crashes"

Responses:

  • 200 OK

POST /v1/profiles/{id}/fit-screen

Claim this computer’s monitor as the screen. Only settings.screen changes: the primary monitor’s size, scale and work area, so a maximised window fills it.

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/fit-screen"

Responses:

  • 200 OK
  • 404: No such profile
  • 409: monitor_unknown (a scale that gives fractional CSS pixels), device_not_host

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "groupId": "<groupId>",
  "notes": "<notes>",
  "tags": [
    "<tags>"
  ],
  "proxyId": "<proxyId>",
  "settings": {},
  "engineMajor": 0,
  "engineVersion": "<engineVersion>",
  "hostClass": "<hostClass>",
  "startUrls": [
    "<startUrls>"
  ],
  "acceptedWarnings": [
    "<acceptedWarnings>"
  ],
  "status": "<status>",
  "locationWarnings": [
    {}
  ],
  "created": 0,
  "updated": 0,
  "os": "<os>",
  "onOpen": "restore",
  "browser": "chrome",
  "hidden": false,
  "protection": {
    "kind": "pin"
  },
  "options": {
    "autoCloseMinutes": 0,
    "matchIp": false,
    "ipMatch": {}
  }
}

POST /v1/profiles/{id}/ip-check

Check the exit IP from inside an open profile now. Returns ipMatch {ip, via, country, region, city, timezone, locale, languages, applied, checkedAt, changedAt, error}.

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/ip-check"

Responses:

  • 200 OK
  • 409: not_open

POST /v1/profiles/{id}/keep-open

Keep an idle profile open. Restarts its idle count after an idleWarning.

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/keep-open"

Responses:

  • 204: Done

POST /v1/profiles/{id}/kill

End a profile’s browser.

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/kill"

Responses:

  • 200 OK
  • 409: Not open

GET /v1/profiles/{id}/logs

A profile’s log (Keel’s log file or its stderr).

Parameter In Type Description
id (required) path string Identifier
source query “engine” | “stderr”
tail query integer bytes
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/logs"

Responses:

  • 200 OK

POST /v1/profiles/{id}/open

Open a profile. Returns pid, warnings, timing and automation (browserWSEndpoint, browserURL, webDriverUrl). Extensions assigned to the profile or its group are loaded, Web Store ones through ExtensionInstallForcelist.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON, optional):

Field Type Description
pin string the account PIN (6 digits) for a locked profile, needed with every open request from every caller (there is no unlocked session); without it 403 profile_locked
keepPassword boolean a profile that has its own password (from an earlier version) keeps it instead of moving to the PIN
password string a profile’s own password (from an earlier version) (or, before a PIN exists, the account password)
skipProxyCheck boolean
offline boolean the sync server is unreachable: open the local copy anyway
keepVisibleWhenCovered boolean a covered window’s pages stay visible (—disable-backgrounding-occluded-windows), as for API-key opens; the synchronizer opens followers with it
headless boolean Chrome’s headless mode: no window; Keel applies every setting as headed. Known differences from a headed window:
hidden boolean headed but hidden windows; 409 engine_no_hidden on engines without it (every engine so far)
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/open"

Responses:

  • 200 OK
  • 400: bad_request (headless with hidden)
  • 403: profile_locked (the PIN or a password is needed; protection {kind}, pinSet), wrong_pin (attemptsLeft, waitSeconds), pin_disabled (10 wrong PINs: reset with the account password), locked_by_owner, wrong_password
  • 409: already_open, busy, no_engine, engine_missing (pinned or major not installed), engine_no_hidden, engine_no_cross_os (a macOS profile on Windows needs Keel r3+), engine_no_extensions, too_many_extensions, extension_missing, sync_locked (another device has it: holder {deviceName, email, since, heartbeatAt, stale}), host_os_mismatch / host_gpu_mismatch (made on another OS or GPU vendor,: recorded and current host classes, computers = names of the account’s computers that can open it)
  • 422: Keel exited (keel_exited with exit: code, message, fix, configError {path, reason, subject, hint})
  • 429: too_many_pin_tries (waitSeconds), too_many_password_tries
  • 502: Proxy check failed
  • 503: sync_unreachable: a synced profile’s lease couldn’t be taken
  • 504: Keel did not report ready in time

GET /v1/profiles/{id}/permissions/geolocation

Geolocation site permissions.

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/permissions/geolocation"

Responses:

  • 200 OK

PUT /v1/profiles/{id}/permissions/geolocation

Set a site’s geolocation permission. Only while the profile is closed.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
origin (required) string
setting (required) “allow” | “block” | “ask”
curl -X PUT -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"origin":"<origin>","setting":"allow"}' \
  "http://127.0.0.1:50325/v1/profiles/<id>/permissions/geolocation"

Responses:

  • 200 OK
  • 409: profile_open, busy, or syncing

POST /v1/profiles/{id}/protection

Lock a profile with the PIN. The profile’s storage key (cookies, saved logins) is wrapped by the account’s lock key, which the PIN opens, and leaves this computer’s vault and the cloud record. kind defaults to pin; a lock moves to the PIN with currentPassword. own and account are accepted only while the account has no PIN.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
kind “pin” | “own” | “account”
pin string
password string
currentPassword string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/protection"

Responses:

  • 200 OK
  • 400: weak_password, use_pin, bad_request
  • 403: wrong_password, profile_locked, wrong_pin, pin_disabled, locked_by_owner
  • 409: no_pin, profile_open, signed_out
  • 429: too_many_password_tries, too_many_pin_tries

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "groupId": "<groupId>",
  "notes": "<notes>",
  "tags": [
    "<tags>"
  ],
  "proxyId": "<proxyId>",
  "settings": {},
  "engineMajor": 0,
  "engineVersion": "<engineVersion>",
  "hostClass": "<hostClass>",
  "startUrls": [
    "<startUrls>"
  ],
  "acceptedWarnings": [
    "<acceptedWarnings>"
  ],
  "status": "<status>",
  "locationWarnings": [
    {}
  ],
  "created": 0,
  "updated": 0,
  "os": "<os>",
  "onOpen": "restore",
  "browser": "chrome",
  "hidden": false,
  "protection": {
    "kind": "pin"
  },
  "options": {
    "autoCloseMinutes": 0,
    "matchIp": false,
    "ipMatch": {}
  }
}

DELETE /v1/profiles/{id}/protection

Unlock a profile for good (remove its lock).

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
pin string
password string
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/protection"

Responses:

  • 200 OK
  • 403: wrong_password, profile_locked, wrong_pin, pin_disabled, locked_by_owner
  • 409: profile_open, signed_out, account_password_unavailable (sign out and in once on this computer)
  • 429: too_many_password_tries, too_many_pin_tries

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "groupId": "<groupId>",
  "notes": "<notes>",
  "tags": [
    "<tags>"
  ],
  "proxyId": "<proxyId>",
  "settings": {},
  "engineMajor": 0,
  "engineVersion": "<engineVersion>",
  "hostClass": "<hostClass>",
  "startUrls": [
    "<startUrls>"
  ],
  "acceptedWarnings": [
    "<acceptedWarnings>"
  ],
  "status": "<status>",
  "locationWarnings": [
    {}
  ],
  "created": 0,
  "updated": 0,
  "os": "<os>",
  "onOpen": "restore",
  "browser": "chrome",
  "hidden": false,
  "protection": {
    "kind": "pin"
  },
  "options": {
    "autoCloseMinutes": 0,
    "matchIp": false,
    "ipMatch": {}
  }
}

POST /v1/profiles/{id}/protection/check

Check the PIN (or a profile’s older own password) for a locked profile.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
pin string
password string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/protection/check"

Responses:

  • 204: Done
  • 403: wrong_password, profile_locked, wrong_pin, pin_disabled, locked_by_owner
  • 409: profile_open, signed_out, account_password_unavailable (sign out and in once on this computer)
  • 429: too_many_password_tries, too_many_pin_tries

POST /v1/profiles/{id}/protection/reset

Reset a forgotten own password (the owner, with the account password). Saved logins, cookies and open tabs can’t be recovered and are deleted; bookmarks, history and extensions stay. Without newPassword the profile is no longer protected.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
accountPassword (required) string
newPassword string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"accountPassword":"<accountPassword>"}' \
  "http://127.0.0.1:50325/v1/profiles/<id>/protection/reset"

Responses:

  • 200 OK
  • 403: wrong_password, profile_locked, wrong_pin, pin_disabled, locked_by_owner
  • 409: not_own_password (account-password profiles reset with Forgot password), profile_open, signed_out
  • 429: too_many_password_tries, too_many_pin_tries

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "groupId": "<groupId>",
  "notes": "<notes>",
  "tags": [
    "<tags>"
  ],
  "proxyId": "<proxyId>",
  "settings": {},
  "engineMajor": 0,
  "engineVersion": "<engineVersion>",
  "hostClass": "<hostClass>",
  "startUrls": [
    "<startUrls>"
  ],
  "acceptedWarnings": [
    "<acceptedWarnings>"
  ],
  "status": "<status>",
  "locationWarnings": [
    {}
  ],
  "created": 0,
  "updated": 0,
  "os": "<os>",
  "onOpen": "restore",
  "browser": "chrome",
  "hidden": false,
  "protection": {
    "kind": "pin"
  },
  "options": {
    "autoCloseMinutes": 0,
    "matchIp": false,
    "ipMatch": {}
  }
}

POST /v1/profiles/{id}/regenerate

Regenerate settings from the profile’s seed.

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/regenerate"

Responses:

  • 200 OK

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "groupId": "<groupId>",
  "notes": "<notes>",
  "tags": [
    "<tags>"
  ],
  "proxyId": "<proxyId>",
  "settings": {},
  "engineMajor": 0,
  "engineVersion": "<engineVersion>",
  "hostClass": "<hostClass>",
  "startUrls": [
    "<startUrls>"
  ],
  "acceptedWarnings": [
    "<acceptedWarnings>"
  ],
  "status": "<status>",
  "locationWarnings": [
    {}
  ],
  "created": 0,
  "updated": 0,
  "os": "<os>",
  "onOpen": "restore",
  "browser": "chrome",
  "hidden": false,
  "protection": {
    "kind": "pin"
  },
  "options": {
    "autoCloseMinutes": 0,
    "matchIp": false,
    "ipMatch": {}
  }
}

GET /v1/profiles/{id}/resources

Last resource report of an open profile.

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/resources"

Responses:

  • 200 OK

POST /v1/profiles/{id}/restore

Restore a profile from the trash.

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/restore"

Responses:

  • 200 OK

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "groupId": "<groupId>",
  "notes": "<notes>",
  "tags": [
    "<tags>"
  ],
  "proxyId": "<proxyId>",
  "settings": {},
  "engineMajor": 0,
  "engineVersion": "<engineVersion>",
  "hostClass": "<hostClass>",
  "startUrls": [
    "<startUrls>"
  ],
  "acceptedWarnings": [
    "<acceptedWarnings>"
  ],
  "status": "<status>",
  "locationWarnings": [
    {}
  ],
  "created": 0,
  "updated": 0,
  "os": "<os>",
  "onOpen": "restore",
  "browser": "chrome",
  "hidden": false,
  "protection": {
    "kind": "pin"
  },
  "options": {
    "autoCloseMinutes": 0,
    "matchIp": false,
    "ipMatch": {}
  }
}

GET /v1/profiles/{id}/status

Live status. headless: true for a profile opened headless.

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/status"

Responses:

  • 200 OK

GET /v1/resources

Resources of every open profile, the system and the PassKeel service. Per open profile (by ID): privateBytes (Windows private commit, Task Manager’s “Commit size”), workingSetBytes, cpuPercent (Keel’s: percent of ONE core since the last report, summed over the profile’s processes, so it can pass 100), machineCpuPercent (that divided by the logical processors: the share of the whole computer, 0-100, as Task Manager shows it; null before the first CPU sample), processes, timestamp. system: totalPhysicalBytes, availablePhysicalBytes, logicalProcessors. totals: all open profiles together (profiles, privateBytes, workingSetBytes, machineCpuPercent, processes). agent: PassKeel’s own memory. resources events carry the same per-profile figures every 5 s plus systemLogicalProcessors.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/resources"

Responses:

  • 200 OK

Groups, templates and trash

Organise profiles, create many from a template, and empty the trash.

Method Path What it does
GET /v1/groups List groups
POST /v1/groups Create a group
PATCH /v1/groups/{id} Rename or recolour a group
DELETE /v1/groups/{id} Delete a group (its profiles move to no group)
GET /v1/templates List templates
POST /v1/templates Create a template
GET /v1/templates/{id} A template
PATCH /v1/templates/{id} Change a template
DELETE /v1/templates/{id} Delete a template
POST /v1/templates/{id}/profiles Create 1-1000 profiles from a template
POST /v1/trash/empty Empty the trash
DELETE /v1/trash/{id} Delete a profile from the trash for good

GET /v1/groups

List groups.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/groups"

Responses:

  • 200 OK

POST /v1/groups

Create a group.

Request body (JSON):

Field Type Description
name (required) string
color string or null #rrggbb
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"name":"<name>"}' \
  "http://127.0.0.1:50325/v1/groups"

Responses:

  • 201: Created
  • 409: duplicate

PATCH /v1/groups/{id}

Rename or recolour a group.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
name string
color string or null
curl -X PATCH -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/groups/<id>"

Responses:

  • 200 OK

DELETE /v1/groups/{id}

Delete a group (its profiles move to no group).

Parameter In Type Description
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/groups/<id>"

Responses:

  • 204: Done

GET /v1/templates

List templates.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/templates"

Responses:

  • 200 OK

POST /v1/templates

Create a template.

Request body (JSON):

Field Type Description
name string
profileId string take settings overrides, configuration and extensions from this profile
settings object top-level settings overrides, policies included
config object
extensionIds array of string library extensions given to the template’s profiles
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/templates"

Responses:

  • 201: Created
  • 409: duplicate

GET /v1/templates/{id}

A template.

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/templates/<id>"

Responses:

  • 200 OK

PATCH /v1/templates/{id}

Change a template.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
name string
profileId string take settings overrides, configuration and extensions from this profile
settings object top-level settings overrides, policies included
config object
extensionIds array of string library extensions given to the template’s profiles
curl -X PATCH -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/templates/<id>"

Responses:

  • 200 OK

DELETE /v1/templates/{id}

Delete a template.

Parameter In Type Description
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/templates/<id>"

Responses:

  • 204: Done

POST /v1/templates/{id}/profiles

Create 1-1000 profiles from a template. Each gets a new seed, the overrides, the configuration and the template’s extensions.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
count integer
namePrefix string
proxyIds array of string
groupId string or null
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/templates/<id>/profiles"

Responses:

  • 201: Created
  • 207: Some created, then one failed

POST /v1/trash/empty

Empty the trash.

Request body (JSON, optional):

Field Type Description
olderThanDays integer
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/trash/empty"

Responses:

  • 200 OK

DELETE /v1/trash/{id}

Delete a profile from the trash for good.

Parameter In Type Description
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/trash/<id>"

Responses:

  • 204: Done

Proxies and location

The proxy library, checks and the exit-IP location database.

Method Path What it does
GET /v1/geo Exit-IP geolocation database status and attribution
POST /v1/geo/update Download the current DB-IP Lite database
GET /v1/proxies List proxies
POST /v1/proxies Add a proxy
POST /v1/proxies/check Check many proxies (progress as proxyCheck events)
POST /v1/proxies/import Import proxies, one per line
GET /v1/proxies/{id} A proxy
PATCH /v1/proxies/{id} Edit a proxy
DELETE /v1/proxies/{id} Delete a proxy
POST /v1/proxies/{id}/check Check one proxy now

GET /v1/geo

Exit-IP geolocation database status and attribution. downloading: the automatic download is running; error: why the last download failed.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/geo"

Responses:

  • 200 OK

POST /v1/geo/update

Download the current DB-IP Lite database.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/geo/update"

Responses:

  • 200 OK

GET /v1/proxies

List proxies.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/proxies"

Responses:

  • 200 OK

POST /v1/proxies

Add a proxy. name: optional, trimmed, at most 64 characters (400 bad_name). Without a location database the PassKeel service downloads it by itself.

Request body (JSON):

Field Type Description
name string the proxy’s name, e.g. London
proxy string any format
scheme string
host string
port integer
username string
password string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/proxies"

Responses:

  • 201: Created
  • 400: bad_proxy, bad_name
  • 409: duplicate

POST /v1/proxies/check

Check many proxies (progress as proxyCheck events).

Request body (JSON, optional):

Field Type Description
ids array of string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/proxies/check"

Responses:

  • 202: Started

POST /v1/proxies/import

Import proxies, one per line.

Request body (JSON):

Field Type Description
text (required) string
defaultScheme string
check boolean
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"text":"<text>"}' \
  "http://127.0.0.1:50325/v1/proxies/import"

Responses:

  • 200 OK

GET /v1/proxies/{id}

A proxy.

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/proxies/<id>"

Responses:

  • 200 OK
  • 404: No such proxy

PATCH /v1/proxies/{id}

Edit a proxy. Omitted fields stay. password: omitted = kept, empty or null = removed; a user name and its password go together (removing the user name removes the password). The same checks as adding. A new connection or password clears the last check and checks again in the background (proxyCheck events). Profiles that use the proxy push their record so other computers and teammates get the change; openProfiles counts the open ones, which keep the old proxy until opened again. A shared profile’s proxy needs the share’s edit and proxy permissions (403 team_permission).

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
name string or null
scheme string
host string
port integer
username string or null
password string or null
curl -X PATCH -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/proxies/<id>"

Responses:

  • 200 OK
  • 400: bad_proxy, bad_name
  • 403: team_permission
  • 404: No such proxy
  • 409: duplicate (id of the other proxy)

DELETE /v1/proxies/{id}

Delete a proxy.

Parameter In Type Description
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/proxies/<id>"

Responses:

  • 204: Done
  • 409: In use

POST /v1/proxies/{id}/check

Check one proxy now.

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/proxies/<id>/check"

Responses:

  • 200 OK

Extensions and policies

The extension library and per-profile, group or template assignments.

Method Path What it does
GET /v1/extensions The extension library
POST /v1/extensions Add an extension to the library
POST /v1/extensions/assign Assign or unassign extensions in bulk
GET /v1/extensions/{id} A library entry
PATCH /v1/extensions/{id} Rename an entry or switch its current version
DELETE /v1/extensions/{id} Delete an entry and its files
DELETE /v1/extensions/{id}/versions/{sha} Delete an old version
GET /v1/policies Chrome policies the engine accepts
GET /v1/{kind}/{id}/extensions Extensions assigned to a profile, group or template
PUT /v1/{kind}/{id}/extensions Replace a profile’s, group’s or template’s extensions
GET /v1/{kind}/{id}/policies A profile’s or template’s policies
PUT /v1/{kind}/{id}/policies Replace a profile’s or template’s policies

GET /v1/extensions

The extension library.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/extensions"

Responses:

  • 200 OK

Response shape (example values):

{
  "extensions": [
    {
      "id": null,
      "kind": null,
      "chromeId": null,
      "name": null,
      "version": null,
      "currentSha": null,
      "description": null,
      "permissions": null,
      "hostPermissions": null,
      "allSites": null,
      "source": null,
      "path": null,
      "versions": null,
      "usage": null,
      "via": null,
      "warnings": null,
      "created": null,
      "updated": null
    }
  ],
  "dir": "<dir>"
}

POST /v1/extensions

Add an extension to the library. Exactly one source: path (an unpacked folder or a.crx on this computer), crx (base64 of a.crx), files (an unpacked folder’s files), storeId/storeUrl (Chrome Web Store, installed through ExtensionInstallForcelist). A package with the Chrome id of an existing entry (or updateOf) becomes that entry’s current version (200). Unpacked folders without a manifest key get one derived from the entry. warnings has all_sites when the extension can access every site. Up to 256 MB.

Request body (JSON):

Field Type Description
path string
crx string base64
files array of object
storeId string
storeUrl string
name string
fileName string
updateOf string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/extensions"

Responses:

  • 200: New version of an existing entry
  • 201: New entry
  • 400: invalid_extension (with the reason), bad_store_id, different_extension, different_kind
  • 409: duplicate (that version is already there; extension is the entry)

Response shape (example values):

{
  "id": "<id>",
  "kind": "unpacked",
  "chromeId": "<chromeId>",
  "name": "<name>",
  "version": "<version>",
  "currentSha": "<currentSha>",
  "description": "<description>",
  "permissions": [
    "<permissions>"
  ],
  "hostPermissions": [
    "<hostPermissions>"
  ],
  "allSites": false,
  "source": "<source>",
  "path": "<path>",
  "versions": [
    {
      "sha256": null,
      "version": null,
      "size": null,
      "added": null,
      "current": null,
      "allSites": null
    }
  ],
  "usage": {
    "profiles": 0,
    "groups": 0,
    "templates": 0
  },
  "via": [
    "profile"
  ],
  "warnings": [
    {}
  ],
  "created": 0,
  "updated": 0
}

POST /v1/extensions/assign

Assign or unassign extensions in bulk. Takes effect at each profile’s next open.

Request body (JSON):

Field Type Description
extensionIds (required) array of string
profileIds array of string
groupIds array of string
templateIds array of string
remove boolean
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"extensionIds":["<extensionIds>"]}' \
  "http://127.0.0.1:50325/v1/extensions/assign"

Responses:

  • 200 OK

Response shape (example values):

{
  "changed": 0,
  "targets": 0
}

GET /v1/extensions/{id}

A library entry.

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/extensions/<id>"

Responses:

  • 200 OK
  • 404: No such entry

Response shape (example values):

{
  "id": "<id>",
  "kind": "unpacked",
  "chromeId": "<chromeId>",
  "name": "<name>",
  "version": "<version>",
  "currentSha": "<currentSha>",
  "description": "<description>",
  "permissions": [
    "<permissions>"
  ],
  "hostPermissions": [
    "<hostPermissions>"
  ],
  "allSites": false,
  "source": "<source>",
  "path": "<path>",
  "versions": [
    {
      "sha256": null,
      "version": null,
      "size": null,
      "added": null,
      "current": null,
      "allSites": null
    }
  ],
  "usage": {
    "profiles": 0,
    "groups": 0,
    "templates": 0
  },
  "via": [
    "profile"
  ],
  "warnings": [
    {}
  ],
  "created": 0,
  "updated": 0
}

PATCH /v1/extensions/{id}

Rename an entry or switch its current version.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
name string
currentSha string
curl -X PATCH -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/extensions/<id>"

Responses:

  • 200 OK
  • 400: no_such_version

Response shape (example values):

{
  "id": "<id>",
  "kind": "unpacked",
  "chromeId": "<chromeId>",
  "name": "<name>",
  "version": "<version>",
  "currentSha": "<currentSha>",
  "description": "<description>",
  "permissions": [
    "<permissions>"
  ],
  "hostPermissions": [
    "<hostPermissions>"
  ],
  "allSites": false,
  "source": "<source>",
  "path": "<path>",
  "versions": [
    {
      "sha256": null,
      "version": null,
      "size": null,
      "added": null,
      "current": null,
      "allSites": null
    }
  ],
  "usage": {
    "profiles": 0,
    "groups": 0,
    "templates": 0
  },
  "via": [
    "profile"
  ],
  "warnings": [
    {}
  ],
  "created": 0,
  "updated": 0
}

DELETE /v1/extensions/{id}

Delete an entry and its files.

Parameter In Type Description
id (required) path string Identifier
force query boolean also when assigned
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/extensions/<id>"

Responses:

  • 204: Done
  • 409: in_use (with usage)

DELETE /v1/extensions/{id}/versions/{sha}

Delete an old version.

Parameter In Type Description
id (required) path string Identifier
sha (required) path string a version’s SHA-256 (hex)
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/extensions/<id>/versions/<sha>"

Responses:

  • 200 OK
  • 409: current_version

Response shape (example values):

{
  "id": "<id>",
  "kind": "unpacked",
  "chromeId": "<chromeId>",
  "name": "<name>",
  "version": "<version>",
  "currentSha": "<currentSha>",
  "description": "<description>",
  "permissions": [
    "<permissions>"
  ],
  "hostPermissions": [
    "<hostPermissions>"
  ],
  "allSites": false,
  "source": "<source>",
  "path": "<path>",
  "versions": [
    {
      "sha256": null,
      "version": null,
      "size": null,
      "added": null,
      "current": null,
      "allSites": null
    }
  ],
  "usage": {
    "profiles": 0,
    "groups": 0,
    "templates": 0
  },
  "via": [
    "profile"
  ],
  "warnings": [
    {}
  ],
  "created": 0,
  "updated": 0
}

GET /v1/policies

Chrome policies the engine accepts. Name, type (boolean, string, integer, list, dictionary), allowed values and a description; engineSupportsPolicies.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/policies"

Responses:

  • 200 OK

GET /v1/{kind}/{id}/extensions

Extensions assigned to a profile, group or template. For a profile, effective lists what its next open loads (its own and its group’s), each with via.

Parameter In Type Description
kind (required) path string profiles, groups or templates (policies: profiles or templates)
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/<kind>/<id>/extensions"

Responses:

  • 200 OK

Response shape (example values):

{
  "extensionIds": [
    "<extensionIds>"
  ],
  "effective": [
    {
      "id": null,
      "kind": null,
      "chromeId": null,
      "name": null,
      "version": null,
      "currentSha": null,
      "description": null,
      "permissions": null,
      "hostPermissions": null,
      "allSites": null,
      "source": null,
      "path": null,
      "versions": null,
      "usage": null,
      "via": null,
      "warnings": null,
      "created": null,
      "updated": null
    }
  ],
  "extensions": [
    {
      "id": null,
      "kind": null,
      "chromeId": null,
      "name": null,
      "version": null,
      "currentSha": null,
      "description": null,
      "permissions": null,
      "hostPermissions": null,
      "allSites": null,
      "source": null,
      "path": null,
      "versions": null,
      "usage": null,
      "via": null,
      "warnings": null,
      "created": null,
      "updated": null
    }
  ]
}

PUT /v1/{kind}/{id}/extensions

Replace a profile’s, group’s or template’s extensions.

Parameter In Type Description
kind (required) path string profiles, groups or templates (policies: profiles or templates)
id (required) path string Identifier

Request body (JSON):

Field Type Description
extensionIds (required) array of string
curl -X PUT -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"extensionIds":["<extensionIds>"]}' \
  "http://127.0.0.1:50325/v1/<kind>/<id>/extensions"

Responses:

  • 200 OK

GET /v1/{kind}/{id}/policies

A profile’s or template’s policies.

Parameter In Type Description
kind (required) path string profiles, groups or templates (policies: profiles or templates)
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/<kind>/<id>/policies"

Responses:

  • 200 OK

PUT /v1/{kind}/{id}/policies

Replace a profile’s or template’s policies. Validated like any settings edit: names against the engine’s schema, value types against Chrome’s ({} removes them). Applied at the next open.

Parameter In Type Description
kind (required) path string profiles, groups or templates (policies: profiles or templates)
id (required) path string Identifier

Request body (JSON):

Field Type Description
policies (required) object
curl -X PUT -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"policies":{}}' \
  "http://127.0.0.1:50325/v1/<kind>/<id>/policies"

Responses:

  • 200 OK
  • 400: invalid_settings with the policy’s path

Automation: recorder, runs and schedules

Record steps, run them across profiles, schedule runs and read their logs.

Method Path What it does
GET /v1/automation Automation overview: plan limits, retention, active runs and recorders
POST /v1/automation/csv Read a CSV as a run would (columns and rows)
GET /v1/automation/recorder Recorder sessions with their steps so far
POST /v1/automation/recorder/start Record in an open profile
POST /v1/automation/recorder/stop Stop recording; saves a recording unless save is false
GET /v1/automation/recordings List recordings
POST /v1/automation/recordings Create a recording from a steps document
GET /v1/automation/recordings/{id} A recording
PUT /v1/automation/recordings/{id} Rename or edit a recording
DELETE /v1/automation/recordings/{id} Delete a recording (and its schedules; runs stay in the history)
GET /v1/automation/runs Run history, newest first (options without the rows)
POST /v1/automation/runs Run a recording across profiles
GET /v1/automation/runs/{id} A run with its items (one per profile)
DELETE /v1/automation/runs/{id} Delete a finished run with its logs and screenshots
POST /v1/automation/runs/{id}/cancel Cancel a run (profiles stop at the next step)
GET /v1/automation/runs/{id}/items/{idx}/files/{name} A screenshot of an item (PNG)
GET /v1/automation/runs/{id}/items/{idx}/log An item’s step log
GET /v1/automation/schedules List schedules
POST /v1/automation/schedules Create a schedule
GET /v1/automation/schedules/{id} A schedule
PUT /v1/automation/schedules/{id} Change a schedule (fields given replace the stored ones)
DELETE /v1/automation/schedules/{id} Delete a schedule
POST /v1/automation/schedules/{id}/run Run a schedule now (its next time stays)

GET /v1/automation

Automation overview: plan limits, retention, active runs and recorders. No-code automation. Recordings are step documents (format 1); a run drives one tab per profile through PassKeel’s own session with trusted native input and human-like timing. automation events: kind recorder|run|schedule, id, state, detail.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation"

Responses:

  • 200 OK

POST /v1/automation/csv

Read a CSV as a run would (columns and rows).

Request body (JSON):

Field Type Description
csv (required) string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"csv":"<csv>"}' \
  "http://127.0.0.1:50325/v1/automation/csv"

Responses:

  • 200 OK
  • 400: bad_request

Response shape (example values):

{
  "columns": [
    "<columns>"
  ],
  "rows": [
    {}
  ]
}

GET /v1/automation/recorder

Recorder sessions with their steps so far.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/recorder"

Responses:

  • 200 OK

POST /v1/automation/recorder/start

Record in an open profile. Keel’s input capture (protocol 1.6) gives the user’s clicks, keys and wheel; selectors come from an isolated world the page can’t see.

Request body (JSON):

Field Type Description
profileId (required) string
name string
recordWaits boolean
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"profileId":"<profileId>"}' \
  "http://127.0.0.1:50325/v1/automation/recorder/start"

Responses:

  • 200 OK
  • 400: bad_request
  • 403: licence refusal
  • 409: not_open, recorder_active, engine_no_input_capture
  • 502: capture_failed

POST /v1/automation/recorder/stop

Stop recording; saves a recording unless save is false.

Request body (JSON):

Field Type Description
profileId (required) string
save boolean
name string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"profileId":"<profileId>"}' \
  "http://127.0.0.1:50325/v1/automation/recorder/stop"

Responses:

  • 200 OK
  • 409: recorder_not_active

Response shape (example values):

{
  "doc": {
    "format": null,
    "steps": [
      {
        "type": null
      }
    ]
  },
  "recording": {
    "id": "<id>",
    "name": "<name>",
    "doc": {
      "format": null,
      "steps": []
    },
    "rev": 0,
    "variables": [
      "<variables>"
    ],
    "stepCount": 0,
    "created": 0,
    "updated": 0
  }
}

GET /v1/automation/recordings

List recordings.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/recordings"

Responses:

  • 200 OK

Response shape (example values):

{
  "recordings": [
    {
      "id": "<id>",
      "name": "<name>",
      "doc": {
        "format": null,
        "steps": null
      },
      "rev": 0,
      "variables": [],
      "stepCount": 0,
      "created": 0,
      "updated": 0
    }
  ]
}

POST /v1/automation/recordings

Create a recording from a steps document.

Request body (JSON):

Field Type Description
name (required) string
doc object
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"name":"<name>"}' \
  "http://127.0.0.1:50325/v1/automation/recordings"

Responses:

  • 201: Created
  • 400: bad_request (unknown step type or field, bad value)

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "doc": {
    "format": null,
    "steps": [
      {
        "type": null
      }
    ]
  },
  "rev": 0,
  "variables": [
    "<variables>"
  ],
  "stepCount": 0,
  "created": 0,
  "updated": 0
}

GET /v1/automation/recordings/{id}

A recording.

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/recordings/<id>"

Responses:

  • 200 OK
  • 404: No such recording

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "doc": {
    "format": null,
    "steps": [
      {
        "type": null
      }
    ]
  },
  "rev": 0,
  "variables": [
    "<variables>"
  ],
  "stepCount": 0,
  "created": 0,
  "updated": 0
}

PUT /v1/automation/recordings/{id}

Rename or edit a recording. rev: the revision the edit started from; 409 when it was saved since.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
name string
doc object
rev integer
curl -X PUT -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/recordings/<id>"

Responses:

  • 200 OK
  • 400: bad_request
  • 404: No such recording
  • 409: stale_revision

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "doc": {
    "format": null,
    "steps": [
      {
        "type": null
      }
    ]
  },
  "rev": 0,
  "variables": [
    "<variables>"
  ],
  "stepCount": 0,
  "created": 0,
  "updated": 0
}

DELETE /v1/automation/recordings/{id}

Delete a recording (and its schedules; runs stay in the history).

Parameter In Type Description
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/recordings/<id>"

Responses:

  • 204: Done
  • 404: No such recording

GET /v1/automation/runs

Run history, newest first (options without the rows).

Parameter In Type Description
recordingId query string only this recording’s
scheduleId query string only this schedule’s
limit query integer 1-500, default 50
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/runs"

Responses:

  • 200 OK

POST /v1/automation/runs

Run a recording across profiles. No-code automation. Recordings are step documents (format 1); a run drives one tab per profile through PassKeel’s own session with trusted native input and human-like timing. automation events: kind recorder|run|schedule, id, state, detail.

Request body (JSON):

Field Type Description
recordingId (required) string
options object
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"recordingId":"<recordingId>"}' \
  "http://127.0.0.1:50325/v1/automation/runs"

Responses:

  • 202: Queued
  • 400: bad_request
  • 403: plan_limit (kind: rpaMaxConcurrency) or a licence refusal
  • 404: No such recording

GET /v1/automation/runs/{id}

A run with its items (one per profile).

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/runs/<id>"

Responses:

  • 200 OK
  • 404: No such run

Response shape (example values):

{
  "id": "<id>",
  "recordingId": "<recordingId>",
  "recordingName": "<recordingName>",
  "recordingRev": 0,
  "scheduleId": "<scheduleId>",
  "state": "queued",
  "created": 0,
  "finished": 0,
  "options": {},
  "summary": {
    "ok": 0,
    "failed": 0,
    "skipped": 0,
    "cancelled": 0,
    "total": 0
  },
  "items": [
    {
      "idx": 0,
      "profileId": "<profileId>",
      "state": "queued",
      "started": 0,
      "finished": 0,
      "result": {
        "steps": null,
        "failedStep": null,
        "error": null,
        "opened": null,
        "durationMs": null,
        "variables": null,
        "screenshots": null
      }
    }
  ]
}

DELETE /v1/automation/runs/{id}

Delete a finished run with its logs and screenshots.

Parameter In Type Description
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/runs/<id>"

Responses:

  • 204: Done
  • 404: No such run
  • 409: run_active

POST /v1/automation/runs/{id}/cancel

Cancel a run (profiles stop at the next step).

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/runs/<id>/cancel"

Responses:

  • 202: Cancelling
  • 409: run_not_active

GET /v1/automation/runs/{id}/items/{idx}/files/{name}

A screenshot of an item (PNG).

Parameter In Type Description
id (required) path string Identifier
idx (required) path string the item’s index in the run
name (required) path string file name
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/runs/<id>/items/<idx>/files/<name>"

Responses:

  • 200 OK
  • 404: No such file

GET /v1/automation/runs/{id}/items/{idx}/log

An item’s step log.

Parameter In Type Description
id (required) path string Identifier
idx (required) path string the item’s index in the run
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/runs/<id>/items/<idx>/log"

Responses:

  • 200 OK
  • 404: No such run item

Response shape (example values):

{
  "entries": [
    {}
  ]
}

GET /v1/automation/schedules

List schedules.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/schedules"

Responses:

  • 200 OK

Response shape (example values):

{
  "schedules": [
    {
      "id": "<id>",
      "name": "<name>",
      "recordingId": "<recordingId>",
      "enabled": false,
      "spec": {
        "kind": null,
        "everyMinutes": null,
        "cron": null,
        "catchUp": null,
        "startAt": null
      },
      "options": {
        "profileIds": null,
        "concurrency": null,
        "startDelayMinMs": null,
        "startDelayMaxMs": null,
        "stepDelayMinMs": null,
        "stepDelayMaxMs": null,
        "keyDelayMinMs": null,
        "keyDelayMaxMs": null,
        "humanMouse": null,
        "openClosed": null,
        "closeAfter": null,
        "rows": null,
        "csv": null,
        "rowMatch": null,
        "screenshotOnFailure": null,
        "profileTimeoutMs": null
      },
      "nextRun": 0,
      "lastRun": 0,
      "lastRunId": "<lastRunId>",
      "created": 0,
      "updated": 0
    }
  ]
}

POST /v1/automation/schedules

Create a schedule. Schedules run only while the PassKeel service runs; a missed time follows catchUp.

Request body (JSON):

Field Type Description
name string
recordingId string
enabled boolean
spec object
options object
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/schedules"

Responses:

  • 201: Created
  • 400: bad_request
  • 403: plan_limit (kind: rpaMaxSchedules; the Free plan has none)
  • 404: No such recording

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "recordingId": "<recordingId>",
  "enabled": false,
  "spec": {
    "kind": "interval",
    "everyMinutes": 0,
    "cron": "<cron>",
    "catchUp": "once",
    "startAt": 0
  },
  "options": {
    "profileIds": [
      "<profileIds>"
    ],
    "concurrency": 0,
    "startDelayMinMs": 0,
    "startDelayMaxMs": 0,
    "stepDelayMinMs": 0,
    "stepDelayMaxMs": 0,
    "keyDelayMinMs": 0,
    "keyDelayMaxMs": 0,
    "humanMouse": false,
    "openClosed": false,
    "closeAfter": false,
    "rows": [
      {}
    ],
    "csv": "<csv>",
    "rowMatch": "order",
    "screenshotOnFailure": false,
    "profileTimeoutMs": 0
  },
  "nextRun": 0,
  "lastRun": 0,
  "lastRunId": "<lastRunId>",
  "created": 0,
  "updated": 0
}

GET /v1/automation/schedules/{id}

A schedule.

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/schedules/<id>"

Responses:

  • 200 OK
  • 404: No such schedule

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "recordingId": "<recordingId>",
  "enabled": false,
  "spec": {
    "kind": "interval",
    "everyMinutes": 0,
    "cron": "<cron>",
    "catchUp": "once",
    "startAt": 0
  },
  "options": {
    "profileIds": [
      "<profileIds>"
    ],
    "concurrency": 0,
    "startDelayMinMs": 0,
    "startDelayMaxMs": 0,
    "stepDelayMinMs": 0,
    "stepDelayMaxMs": 0,
    "keyDelayMinMs": 0,
    "keyDelayMaxMs": 0,
    "humanMouse": false,
    "openClosed": false,
    "closeAfter": false,
    "rows": [
      {}
    ],
    "csv": "<csv>",
    "rowMatch": "order",
    "screenshotOnFailure": false,
    "profileTimeoutMs": 0
  },
  "nextRun": 0,
  "lastRun": 0,
  "lastRunId": "<lastRunId>",
  "created": 0,
  "updated": 0
}

PUT /v1/automation/schedules/{id}

Change a schedule (fields given replace the stored ones).

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
name string
recordingId string
enabled boolean
spec object
options object
curl -X PUT -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/schedules/<id>"

Responses:

  • 200 OK
  • 400: bad_request
  • 404: No such schedule

Response shape (example values):

{
  "id": "<id>",
  "name": "<name>",
  "recordingId": "<recordingId>",
  "enabled": false,
  "spec": {
    "kind": "interval",
    "everyMinutes": 0,
    "cron": "<cron>",
    "catchUp": "once",
    "startAt": 0
  },
  "options": {
    "profileIds": [
      "<profileIds>"
    ],
    "concurrency": 0,
    "startDelayMinMs": 0,
    "startDelayMaxMs": 0,
    "stepDelayMinMs": 0,
    "stepDelayMaxMs": 0,
    "keyDelayMinMs": 0,
    "keyDelayMaxMs": 0,
    "humanMouse": false,
    "openClosed": false,
    "closeAfter": false,
    "rows": [
      {}
    ],
    "csv": "<csv>",
    "rowMatch": "order",
    "screenshotOnFailure": false,
    "profileTimeoutMs": 0
  },
  "nextRun": 0,
  "lastRun": 0,
  "lastRunId": "<lastRunId>",
  "created": 0,
  "updated": 0
}

DELETE /v1/automation/schedules/{id}

Delete a schedule.

Parameter In Type Description
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/schedules/<id>"

Responses:

  • 204: Done
  • 404: No such schedule

POST /v1/automation/schedules/{id}/run

Run a schedule now (its next time stays).

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/automation/schedules/<id>/run"

Responses:

  • 202: Queued
  • 404: No such schedule

Window synchronizer

Mirror one window’s input to others.

Method Path What it does
GET /v1/synchronizer The window synchronizer: whether the plan allows it, and the running session
PATCH /v1/synchronizer Change the running session’s options (partial)
POST /v1/synchronizer/pause Pause: the leader’s input, tabs and navigation stay on the leader
POST /v1/synchronizer/resume Resume after a pause
POST /v1/synchronizer/start Start synchronizing open profiles: one leader, followers
POST /v1/synchronizer/stop Stop the synchronizer
POST /v1/synchronizer/text Type a text from a list into the focused field of each window (a different text per window)

GET /v1/synchronizer

The window synchronizer: whether the plan allows it, and the running session. One leader window drives the followers: mouse, wheel and keys in the page (through the engine’s native input capture and replay), the leader’s navigation, and its tabs opened, closed and switched. One session at a time; it stops when the leader closes or the last follower closes. synchronizer events: started, paused, resumed, options, followerLeft, stopped (reason).

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/synchronizer"

Responses:

  • 200 OK

Response shape (example values):

{
  "active": false,
  "allowed": false,
  "maxFollowers": 0,
  "session": null
}

PATCH /v1/synchronizer

Change the running session’s options (partial).

Request body (JSON):

Field Type Description
options (required) object
curl -X PATCH -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"options":{"matchWindowSize":false,"scaleToFit":false,"syncNavigation":false,"syncTabs":false,"keyDelayMinMs":0,"keyDelayMaxMs":0}}' \
  "http://127.0.0.1:50325/v1/synchronizer"

Responses:

  • 200 OK
  • 400: bad_request
  • 409: synchronizer_not_active

Response shape (example values):

{
  "id": "<id>",
  "startedAt": 0,
  "leader": "<leader>",
  "paused": false,
  "options": {
    "matchWindowSize": false,
    "scaleToFit": false,
    "syncNavigation": false,
    "syncTabs": false,
    "keyDelayMinMs": 0,
    "keyDelayMaxMs": 0
  },
  "followers": [
    {
      "profileId": "<profileId>",
      "mode": "native",
      "dispatched": 0,
      "errors": 0,
      "lastError": "<lastError>",
      "pausesWhenCovered": false
    }
  ],
  "tabs": {
    "leader": 0,
    "active": "<active>"
  },
  "stats": {
    "captured": 0,
    "forwarded": 0,
    "droppedWhilePaused": 0,
    "latencyMs": {
      "count": 0,
      "p50": 0,
      "p95": 0,
      "max": 0
    }
  }
}

POST /v1/synchronizer/pause

Pause: the leader’s input, tabs and navigation stay on the leader.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/synchronizer/pause"

Responses:

  • 200 OK
  • 409: synchronizer_not_active

Response shape (example values):

{
  "id": "<id>",
  "startedAt": 0,
  "leader": "<leader>",
  "paused": false,
  "options": {
    "matchWindowSize": false,
    "scaleToFit": false,
    "syncNavigation": false,
    "syncTabs": false,
    "keyDelayMinMs": 0,
    "keyDelayMaxMs": 0
  },
  "followers": [
    {
      "profileId": "<profileId>",
      "mode": "native",
      "dispatched": 0,
      "errors": 0,
      "lastError": "<lastError>",
      "pausesWhenCovered": false
    }
  ],
  "tabs": {
    "leader": 0,
    "active": "<active>"
  },
  "stats": {
    "captured": 0,
    "forwarded": 0,
    "droppedWhilePaused": 0,
    "latencyMs": {
      "count": 0,
      "p50": 0,
      "p95": 0,
      "max": 0
    }
  }
}

POST /v1/synchronizer/resume

Resume after a pause.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/synchronizer/resume"

Responses:

  • 200 OK
  • 409: synchronizer_not_active

Response shape (example values):

{
  "id": "<id>",
  "startedAt": 0,
  "leader": "<leader>",
  "paused": false,
  "options": {
    "matchWindowSize": false,
    "scaleToFit": false,
    "syncNavigation": false,
    "syncTabs": false,
    "keyDelayMinMs": 0,
    "keyDelayMaxMs": 0
  },
  "followers": [
    {
      "profileId": "<profileId>",
      "mode": "native",
      "dispatched": 0,
      "errors": 0,
      "lastError": "<lastError>",
      "pausesWhenCovered": false
    }
  ],
  "tabs": {
    "leader": 0,
    "active": "<active>"
  },
  "stats": {
    "captured": 0,
    "forwarded": 0,
    "droppedWhilePaused": 0,
    "latencyMs": {
      "count": 0,
      "p50": 0,
      "p95": 0,
      "max": 0
    }
  }
}

POST /v1/synchronizer/start

Start synchronizing open profiles: one leader, followers. One leader window drives the followers: mouse, wheel and keys in the page (through the engine’s native input capture and replay), the leader’s navigation, and its tabs opened, closed and switched. One session at a time; it stops when the leader closes or the last follower closes. synchronizer events: started, paused, resumed, options, followerLeft, stopped (reason).

Request body (JSON):

Field Type Description
leader (required) string
followers (required) array of string
options object
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"leader":"<leader>","followers":["<followers>"]}' \
  "http://127.0.0.1:50325/v1/synchronizer/start"

Responses:

  • 200 OK
  • 400: bad_request
  • 403: plan_no_synchronizer (the Free plan) or a licence refusal
  • 409: synchronizer_active, not_open (profileId), engine_no_input_capture (the leader’s engine is before Keel protocol 1.6), no_window
  • 502: capture_failed

Response shape (example values):

{
  "id": "<id>",
  "startedAt": 0,
  "leader": "<leader>",
  "paused": false,
  "options": {
    "matchWindowSize": false,
    "scaleToFit": false,
    "syncNavigation": false,
    "syncTabs": false,
    "keyDelayMinMs": 0,
    "keyDelayMaxMs": 0
  },
  "followers": [
    {
      "profileId": "<profileId>",
      "mode": "native",
      "dispatched": 0,
      "errors": 0,
      "lastError": "<lastError>",
      "pausesWhenCovered": false
    }
  ],
  "tabs": {
    "leader": 0,
    "active": "<active>"
  },
  "stats": {
    "captured": 0,
    "forwarded": 0,
    "droppedWhilePaused": 0,
    "latencyMs": {
      "count": 0,
      "p50": 0,
      "p95": 0,
      "max": 0
    }
  }
}

POST /v1/synchronizer/stop

Stop the synchronizer.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/synchronizer/stop"

Responses:

  • 200 OK
  • 409: synchronizer_not_active

Response shape (example values):

{
  "stopped": false,
  "session": {
    "id": "<id>",
    "startedAt": 0,
    "leader": "<leader>",
    "paused": false,
    "options": {
      "matchWindowSize": false,
      "scaleToFit": false,
      "syncNavigation": false,
      "syncTabs": false,
      "keyDelayMinMs": 0,
      "keyDelayMaxMs": 0
    },
    "followers": [
      {
        "profileId": null,
        "mode": null,
        "dispatched": null,
        "errors": null,
        "lastError": null,
        "pausesWhenCovered": null
      }
    ],
    "tabs": {
      "leader": 0,
      "active": "<active>"
    },
    "stats": {
      "captured": 0,
      "forwarded": 0,
      "droppedWhilePaused": 0,
      "latencyMs": {
        "count": null,
        "p50": null,
        "p95": null,
        "max": null
      }
    }
  }
}

POST /v1/synchronizer/text

Type a text from a list into the focused field of each window (a different text per window). Window k (the leader first when includeLeader, then the followers in order) gets texts[k % n], or a random one with order: random. Typed with Input.insertText into the active (paired) tab; with a char delay, one character at a time. Answers at once with the assignment.

Request body (JSON):

Field Type Description
texts (required) array of string
order “sequential” | “random”
includeLeader boolean
charDelayMinMs integer
charDelayMaxMs integer at most 2000
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"texts":["<texts>"]}' \
  "http://127.0.0.1:50325/v1/synchronizer/text"

Responses:

  • 202: Typing started
  • 400: bad_request
  • 409: synchronizer_not_active, no_active_tab

Windows

Monitors, and arranging the windows of open profiles.

Method Path What it does
GET /v1/windows Monitors and the windows of open profiles
POST /v1/windows/arrange Tile, cascade or resize the windows of open profiles

GET /v1/windows

Monitors and the windows of open profiles. Monitors are in physical pixels; window bounds in the browser’s DIPs (CSS pixels: what window.outerWidth and screenX say). Keel renders at the profile’s claimed device pixel ratio, so DIP = physical / DPR per profile. Windows are moved only through each browser’s own CDP (Browser.setWindowBounds).

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/windows"

Responses:

  • 200 OK

Response shape (example values):

{
  "monitors": [
    {
      "index": 0,
      "primary": false,
      "dpi": 0,
      "scale": 0,
      "x": 0,
      "y": 0,
      "width": 0,
      "height": 0,
      "workX": 0,
      "workY": 0,
      "workWidth": 0,
      "workHeight": 0
    }
  ],
  "windows": [
    {
      "profileId": "<profileId>",
      "name": "<name>",
      "headless": false,
      "windowId": 0,
      "bounds": {
        "left": null,
        "top": null,
        "width": null,
        "height": null,
        "windowState": null
      },
      "devicePixelRatio": 0,
      "claimedScreen": {},
      "error": "<error>"
    }
  ]
}

POST /v1/windows/arrange

Tile, cascade or resize the windows of open profiles. Monitors are in physical pixels; window bounds in the browser’s DIPs (CSS pixels: what window.outerWidth and screenX say). Keel renders at the profile’s claimed device pixel ratio, so DIP = physical / DPR per profile. Windows are moved only through each browser’s own CDP (Browser.setWindowBounds). grid: the monitor’s work area in columns × rows cells (default as square as possible) with gap physical pixels; cascade: offset by step physical pixels, width × height DIPs (default 60 % of the work area); resize: width × height DIPs, positions kept. Each window: ok, or error (not_open, headless, no_window, set_bounds); warnings: notPrimaryMonitor, outsideClaimedScreen (screenX/Y or the window’s size outside the profile’s claimed screen: a fingerprint inconsistency), sizeClamped (Keel keeps normal windows within the claimed screen).

Request body (JSON):

Field Type Description
profileIds (required) array of string
layout (required) “grid” | “cascade” | “resize”
monitor integer index in GET /v1/windows monitors; default the primary
columns integer
rows integer
gap integer
width integer
height integer
step integer
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"profileIds":["<profileIds>"],"layout":"grid"}' \
  "http://127.0.0.1:50325/v1/windows/arrange"

Responses:

  • 200 OK
  • 400: bad_request

Response shape (example values):

{
  "monitor": {
    "index": 0,
    "primary": false,
    "dpi": 0,
    "scale": 0,
    "x": 0,
    "y": 0,
    "width": 0,
    "height": 0,
    "workX": 0,
    "workY": 0,
    "workWidth": 0,
    "workHeight": 0
  },
  "placed": 0,
  "windows": [
    {
      "profileId": "<profileId>",
      "ok": false,
      "windowId": 0,
      "devicePixelRatio": 0,
      "requested": {
        "left": null,
        "top": null,
        "width": null,
        "height": null,
        "windowState": null
      },
      "bounds": {
        "left": null,
        "top": null,
        "width": null,
        "height": null,
        "windowState": null
      },
      "warnings": [],
      "error": "<error>",
      "message": "<message>"
    }
  ]
}

Account and cloud sync

Sign-in, two-step sign-in, devices and sessions, per-profile sync, versions and hand-over.

Method Path What it does
GET /v1/profiles/{id}/sync A profile’s sync state, its cloud copy (head, size, lock holder) and versions
PUT /v1/profiles/{id}/sync Turn sync on or off for a profile
DELETE /v1/profiles/{id}/sync Delete a profile’s cloud copy and all its versions
POST /v1/profiles/{id}/sync/handover Answer another device’s request for an open profile
POST /v1/profiles/{id}/sync/now Sync a closed profile now (push its changes or pull a newer version)
POST /v1/profiles/{id}/sync/restore Restore a version or a conflict version as the new head
POST /v1/profiles/{id}/sync/takeover Ask the device that has a profile open to hand it over, or force-release a stale lock
GET /v1/sync This device’s cloud account: signed in, server, e-mail, device; online: the account (plan, usage)
POST /v1/sync/account/delete Schedule the account’s deletion
POST /v1/sync/account/delete/cancel Cancel a scheduled deletion
POST /v1/sync/all Sync all: upload every profile not in the cloud yet
GET /v1/sync/devices The account’s devices
DELETE /v1/sync/devices/{id} Sign a device out everywhere and release its profile locks
GET /v1/sync/elsewhere The account’s other computers with profiles not synced yet
POST /v1/sync/forgot-password Forgot password: e-mail a reset link
POST /v1/sync/login Sign this device in
POST /v1/sync/logout Sign this device out
GET /v1/sync/logout What signing out with removeProfiles would remove
POST /v1/sync/password Change the account password
POST /v1/sync/password-strength The password strength meter
GET /v1/sync/profiles Sync state of every profile that has one
POST /v1/sync/refresh Import profiles other devices synced
GET /v1/sync/sessions The account’s sessions
DELETE /v1/sync/sessions/{id} End a session
GET /v1/sync/settings This device’s sync settings
PUT /v1/sync/settings Change this device’s sync settings
POST /v1/sync/signup Create an account (and sign this device in when the server doesn’t verify e-mail)
POST /v1/sync/signup-status Sign-up status: has the e-mail link been opened?
POST /v1/sync/totp/confirm Turn two-step sign-in on with a code from the app
POST /v1/sync/totp/disable Turn two-step sign-in off
POST /v1/sync/totp/setup Start setting up two-step sign-in
POST /v1/sync/verify Confirm a sign-up with the link from the verification e-mail

GET /v1/profiles/{id}/sync

A profile’s sync state, its cloud copy (head, size, lock holder) and versions.

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/sync"

Responses:

  • 200 OK

PUT /v1/profiles/{id}/sync

Turn sync on or off for a profile. On: registers it (plan limit) and uploads it now (closed) or at its close (open). Off: “Only on this computer”, kept: automatic sync never turns it on again; the cloud copy stays; the lease is released.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
enabled (required) boolean
curl -X PUT -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"enabled":false}' \
  "http://127.0.0.1:50325/v1/profiles/<id>/sync"

Responses:

  • 200 OK
  • 403: plan_limit
  • 409: not_signed_in

Response shape (example values):

{
  "profileId": "<profileId>",
  "enabled": false,
  "state": "pending",
  "optedOut": false,
  "detail": {},
  "version": 0,
  "syncedAt": 0,
  "size": 0,
  "dirty": false
}

DELETE /v1/profiles/{id}/sync

Delete a profile’s cloud copy and all its versions. This device keeps its copy with sync off; other devices drop theirs at their next refresh (record-only copies are removed, copies with files go to the trash, a cloudDeleted sync event). Turning sync on again uploads it under the same ID.

Parameter In Type Description
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/sync"

Responses:

  • 200 OK
  • 409: profile_open, sync_locked (another device has it open: holder), not_signed_in

Response shape (example values):

{
  "deleted": false,
  "removedHere": false
}

POST /v1/profiles/{id}/sync/handover

Answer another device’s request for an open profile. now: close it (flushed), push and release. keep: keep it open; no automatic hand-over for this request.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
action (required) “now” | “keep”
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"action":"now"}' \
  "http://127.0.0.1:50325/v1/profiles/<id>/sync/handover"

Responses:

  • 200 OK
  • 400: bad_action
  • 409: not_open

POST /v1/profiles/{id}/sync/now

Sync a closed profile now (push its changes or pull a newer version).

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/sync/now"

Responses:

  • 200 OK
  • 409: profile_open, sync_off, not_signed_in

Response shape (example values):

{
  "profileId": "<profileId>",
  "enabled": false,
  "state": "pending",
  "optedOut": false,
  "detail": {},
  "version": 0,
  "syncedAt": 0,
  "size": 0,
  "dirty": false
}

POST /v1/profiles/{id}/sync/restore

Restore a version or a conflict version as the new head. The profile must be closed. Unsynced local changes are kept as a version first.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
version (required) integer
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"version":0}' \
  "http://127.0.0.1:50325/v1/profiles/<id>/sync/restore"

Responses:

  • 200 OK
  • 409: profile_open, sync_off, locked

POST /v1/profiles/{id}/sync/takeover

Ask the device that has a profile open to hand it over, or force-release a stale lock. request: the holder is asked at its next heartbeat (202). force: only when the holder stopped sending heartbeats; its unsynced changes arrive later as a conflict version.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
mode (required) “request” | “force”
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"mode":"request"}' \
  "http://127.0.0.1:50325/v1/profiles/<id>/sync/takeover"

Responses:

  • 202: Requested (holder)
  • 409: holder_alive

GET /v1/sync

This device’s cloud account: signed in, server, e-mail, device; online: the account (plan, usage).

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync"

Responses:

  • 200 OK

POST /v1/sync/account/delete

Schedule the account’s deletion. After the grace period (7 days) the server erases the keys and every synced profile; other sessions end now. Answers {deleteAfter}.

Request body (JSON):

Field Type Description
password (required) string
totp string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"password":"<password>"}' \
  "http://127.0.0.1:50325/v1/sync/account/delete"

Responses:

  • 200 OK
  • 403: invalid_credentials, totp_required

POST /v1/sync/account/delete/cancel

Cancel a scheduled deletion.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/account/delete/cancel"

Responses:

  • 200 OK
  • 400: not_deleting

POST /v1/sync/all

Sync all: upload every profile not in the cloud yet. Registers and uploads, most recently used first, every profile that isn’t set to “Only on this computer”, and uploads synced profiles’ pending changes. 200 with report {candidates, uploaded, atClose, retried, overLimit, failed, offline, optedOut} when done within 15 s, else 202 (it carries on).

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/all"

Responses:

  • 202: started; carries on in the background
  • 409: not_signed_in

GET /v1/sync/devices

The account’s devices.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/devices"

Responses:

  • 200 OK

DELETE /v1/sync/devices/{id}

Sign a device out everywhere and release its profile locks.

Parameter In Type Description
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/devices/<id>"

Responses:

  • 204: Done
  • 400: this_device

GET /v1/sync/elsewhere

The account’s other computers with profiles not synced yet. computers: [{name, profiles}] (name null when an older server can’t tell which computer), total, exact (the server reports per computer).

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/elsewhere"

Responses:

  • 200 OK

Response shape (example values):

{
  "computers": [
    {}
  ],
  "total": 0,
  "exact": false
}

POST /v1/sync/forgot-password

Forgot password: e-mail a reset link. The server e-mails a single-use link (about an hour) to a page where the user sets a new password; every device is then signed out and signs in with it. Always 202 {sent, email}, whether or not the address has an account. server defaults to the saved server, then to the build’s server.

Request body (JSON):

Field Type Description
email (required) string
server string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"email":"<email>"}' \
  "http://127.0.0.1:50325/v1/sync/forgot-password"

Responses:

  • 202: the server accepted the request
  • 400: bad_email, bad_server
  • 429: too many requests for this address or network
  • 503: reset_unavailable: the server has no password reset yet (older than)

POST /v1/sync/login

Sign this device in. Profiles other devices synced are imported (imported); their files come at the first open.

Request body (JSON):

Field Type Description
server (required) string http(s)://host[:port] of the sync server
email (required) string
password (required) string
totp string
deviceName string
acceptAup boolean sign-up: the acceptable use policy
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"server":"<server>","email":"<email>","password":"<password>"}' \
  "http://127.0.0.1:50325/v1/sync/login"

Responses:

  • 200 OK
  • 403: invalid_credentials, totp_required, totp_invalid
  • 409: signed_in
  • 503: sync_unreachable

POST /v1/sync/logout

Sign this device out. The account’s profiles stay on this computer, out of sight until it signs in again. removeProfiles: true removes them from this computer instead (synced ones stay in the cloud; never-synced ones are lost); the answer then has removedProfiles.

Request body (JSON, optional):

Field Type Description
removeProfiles boolean
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/logout"

Responses:

  • 200 OK
  • 409: profiles_open: one of this account’s profiles is open

GET /v1/sync/logout

What signing out with removeProfiles would remove.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/logout"

Responses:

  • 200 OK
  • 409: not_signed_in

Response shape (example values):

{
  "profiles": 0,
  "notSynced": 0,
  "unsavedChanges": 0,
  "open": 0
}

POST /v1/sync/password

Change the account password. Re-authenticates with the current password (and TOTP when on); the new one must pass the meter. endOtherSessions signs every other device out.

Request body (JSON):

Field Type Description
current (required) string
new (required) string
totp string
endOtherSessions boolean
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"current":"<current>","new":"<new>"}' \
  "http://127.0.0.1:50325/v1/sync/password"

Responses:

  • 200 OK
  • 400: weak_password
  • 403: invalid_credentials, totp_required

POST /v1/sync/password-strength

The password strength meter. Computed by the PassKeel service; nothing is sent to the server.

Request body (JSON):

Field Type Description
password (required) string
email string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"password":"<password>"}' \
  "http://127.0.0.1:50325/v1/sync/password-strength"

Responses:

  • 200 OK

Response shape (example values):

{
  "score": 0,
  "acceptable": false,
  "feedback": [
    "<feedback>"
  ],
  "offlineYears": 0,
  "guessesLog10": 0,
  "length": 0,
  "minLength": 0
}

GET /v1/sync/profiles

Sync state of every profile that has one. Signed in, profiles that upload by themselves but aren’t in the cloud yet are listed too: pending with detail.auto, or overLimit when the plan had no room. autoSync: {enabled, overLimit: [{id, name}], message, limit, optedOut}.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/profiles"

Responses:

  • 200 OK

Response shape (example values):

{
  "signedIn": false,
  "profiles": {},
  "autoSync": {}
}

POST /v1/sync/refresh

Import profiles other devices synced.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/refresh"

Responses:

  • 200 OK

Response shape (example values):

{
  "imported": 0
}

GET /v1/sync/sessions

The account’s sessions.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/sessions"

Responses:

  • 200 OK

DELETE /v1/sync/sessions/{id}

End a session.

Parameter In Type Description
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/sessions/<id>"

Responses:

  • 204: Done

GET /v1/sync/settings

This device’s sync settings. handoverIdleSeconds (and handoverIdleMinutes): an open profile another device asks for is handed over after this long without input (0: off; default 10 minutes); idleSource: profile (Keel input capture) or computer (the session’s last input).

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/settings"

Responses:

  • 200 OK

PUT /v1/sync/settings

Change this device’s sync settings.

Request body (JSON):

Field Type Description
handoverIdleMinutes number
handoverIdleSeconds integer
curl -X PUT -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/settings"

Responses:

  • 200 OK
  • 400: bad_value: out of range (0 to 24 h)

POST /v1/sync/signup

Create an account (and sign this device in when the server doesn’t verify e-mail). The password must pass PassKeel’s strength meter (12+ characters, score 3). With e-mail verification (production) the answer is 202 {verificationSent, email}: open the link (or post it to /v1/sync/verify), then sign in. Without it, profiles other devices synced are imported (imported). A 202 answer (check your e-mail) carries statusKey for /v1/sync/signup-status; sending it back with the same sign-up resends the e-mail. Reserved or malformed e-mail domains are refused with reserved_email_domain / invalid_email.

Request body (JSON):

Field Type Description
server (required) string http(s)://host[:port] of the sync server
email (required) string
password (required) string
totp string
deviceName string
acceptAup boolean sign-up: the acceptable use policy
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"server":"<server>","email":"<email>","password":"<password>"}' \
  "http://127.0.0.1:50325/v1/sync/signup"

Responses:

  • 202: verification e-mail sent
  • 400: weak_password (with feedback and strength), aup_required, bad_email, bad_server (plain HTTP to another computer without #allow-http)
  • 409: signed_in
  • 503: sync_unreachable

POST /v1/sync/signup-status

Sign-up status: has the e-mail link been opened? While the app shows “Check your e-mail” it asks every few seconds with the statusKey the sign-up answered with. confirmed once the link of that sign-up was opened (the app then signs in by itself), pending before (also for an address that already has an account: nothing tells which), unsupported when the server is older than (the app then tries to sign in now and then). server defaults to the saved server, then to the build’s server.

Request body (JSON):

Field Type Description
statusKey (required) string
server string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"statusKey":"<statusKey>"}' \
  "http://127.0.0.1:50325/v1/sync/signup-status"

Responses:

  • 200 OK
  • 502: the server couldn’t be reached

POST /v1/sync/totp/confirm

Turn two-step sign-in on with a code from the app. Answers recoveryCodes (shown once).

Request body (JSON):

Field Type Description
code (required) string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"code":"<code>"}' \
  "http://127.0.0.1:50325/v1/sync/totp/confirm"

Responses:

  • 200 OK
  • 400: totp_invalid, no_pending_totp

Response shape (example values):

{
  "recoveryCodes": [
    "<recoveryCodes>"
  ]
}

POST /v1/sync/totp/disable

Turn two-step sign-in off.

Request body (JSON):

Field Type Description
code (required) string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"code":"<code>"}' \
  "http://127.0.0.1:50325/v1/sync/totp/disable"

Responses:

  • 200 OK
  • 400: totp_invalid, totp_off

POST /v1/sync/totp/setup

Start setting up two-step sign-in. A new authenticator secret, its otpauth:// URI and that URI as an SVG QR code (qrSvg). Two-step sign-in is on only after /v1/sync/totp/confirm.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/sync/totp/setup"

Responses:

  • 200 OK
  • 409: not_signed_in

Response shape (example values):

{
  "secret": "<secret>",
  "uri": "<uri>",
  "qrSvg": "<qrSvg>"
}

POST /v1/sync/verify

Confirm a sign-up with the link from the verification e-mail. token is the token or the whole link; server defaults to the link’s origin, then to the saved server.

Request body (JSON):

Field Type Description
token (required) string
server string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"token":"<token>"}' \
  "http://127.0.0.1:50325/v1/sync/verify"

Responses:

  • 200 OK
  • 400: bad_token, invalid_token

Teams and sharing

Workspaces, members, invitations, shares and transfers.

Method Path What it does
POST /v1/groups/{id}/share Share a group with a teammate: its team profiles now and every one that joins it later, until it leaves the group; again to change permissions
POST /v1/invites/{id}/accept Accept an invitation to this account’s address
POST /v1/invites/{id}/decline Decline an invitation
GET /v1/profiles/{id}/proxy/password The profile’s proxy password (own profiles, or a share with proxy)
GET /v1/profiles/{id}/shares A profile’s shares (key roles: all; others: their own)
POST /v1/profiles/{id}/shares Share a profile with a teammate (accountId) or any PassKeel account (email, paid plans); again to change permissions
DELETE /v1/profiles/{id}/shares/{account} End a share; the profile’s key rotates (copies already downloaded can’t be recalled)
POST /v1/profiles/{id}/transfer Offer a profile to another account (permanent once accepted)
PUT /v1/profiles/{id}/workspace Put a profile into a team; null: personal. Not in the cloud yet: registered there when sync is turned on. Already synced: moved now under a new key, counted against the target’s plan; its shares end
GET /v1/shared Profiles other accounts shared with this one (“Shared with me”)
GET /v1/teams Workspaces (personal first), invitations to this account, pending transfers, this account’s key fingerprint
POST /v1/teams Create a team workspace (its key is made on this device)
POST /v1/teams/refresh Refresh teams, keys and access now: grant waiting key holders, make key rotations owed after members left, apply group shares, import shared profiles, delete local copies of profiles this account lost
GET /v1/teams/{ws} A team: name, owner, key version, seats used and allowed
PATCH /v1/teams/{ws} Rename a team (owner, admin)
GET /v1/teams/{ws}/audit The team’s audit log (owner, admin)
GET /v1/teams/{ws}/group-shares The team’s group shares (key roles): group name, teammate, permissions
DELETE /v1/teams/{ws}/group-shares/{id} End a group share and the shares it made (each rotates its profile’s key)
GET /v1/teams/{ws}/invites Pending invitations
POST /v1/teams/{ws}/invites Invite by e-mail (seats:)
DELETE /v1/teams/{ws}/invites/{id} Revoke an invitation
POST /v1/teams/{ws}/leave Leave a team: access ends now and this computer’s copies of its profiles are deleted; a remaining key holder’s device rotates the keys
GET /v1/teams/{ws}/members Members with role, key state and key fingerprint (keyChanged: differs from the one this device pinned)
PATCH /v1/teams/{ws}/members/{account} Change a member’s role; demoting a key holder rotates the workspace key
DELETE /v1/teams/{ws}/members/{account} Remove a member: their access, shares and locks end; every key they had rotates
POST /v1/teams/{ws}/members/{account}/trust Accept a member’s changed key after comparing fingerprints
GET /v1/teams/{ws}/profiles The team’s profiles this account can see: summary, lock holder with name, share, local
POST /v1/teams/{ws}/transfer Hand the team to an admin who has the current key; the owner becomes an admin
GET /v1/transfers Transfers to this account and from it
POST /v1/transfers/{id}/accept Accept a transfer: the profile moves to this account (counts against its plan)
POST /v1/transfers/{id}/cancel Cancel a transfer this account offered
POST /v1/transfers/{id}/decline Decline a transfer

POST /v1/groups/{id}/share

Share a group with a teammate: its team profiles now and every one that joins it later, until it leaves the group; again to change permissions.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
accountId (required) string
perms (required) object edit, proxy and export are enforced by the member’s PassKeel app.
workspaceId string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"accountId":"<accountId>","perms":{"open":false,"edit":false,"proxy":false,"export":false}}' \
  "http://127.0.0.1:50325/v1/groups/<id>/share"

Responses:

  • 200 OK
  • 404: not_found: no such group, or not a member or viewer of a team you manage

Response shape (example values):

{
  "groupShares": [
    {}
  ]
}

POST /v1/invites/{id}/accept

Accept an invitation to this account’s address.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON, optional):

Field Type Description
displayName string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/invites/<id>/accept"

Responses:

  • 200 OK
  • 403: seat_limit

POST /v1/invites/{id}/decline

Decline an invitation.

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/invites/<id>/decline"

Responses:

  • 204: Done

GET /v1/profiles/{id}/proxy/password

The profile’s proxy password (own profiles, or a share with proxy).

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/proxy/password"

Responses:

  • 200 OK
  • 403: team_permission

GET /v1/profiles/{id}/shares

A profile’s shares (key roles: all; others: their own).

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/shares"

Responses:

  • 200 OK

POST /v1/profiles/{id}/shares

Share a profile with a teammate (accountId) or any PassKeel account (email, paid plans); again to change permissions.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
accountId string
email string
perms (required) object edit, proxy and export are enforced by the member’s PassKeel app.
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"perms":{"open":false,"edit":false,"proxy":false,"export":false}}' \
  "http://127.0.0.1:50325/v1/profiles/<id>/shares"

Responses:

  • 200 OK
  • 403: plan_no_sharing, forbidden
  • 409: key_changed

DELETE /v1/profiles/{id}/shares/{account}

End a share; the profile’s key rotates (copies already downloaded can’t be recalled).

Parameter In Type Description
id (required) path string Identifier
account (required) path string
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/profiles/<id>/shares/<account>"

Responses:

  • 200 OK

POST /v1/profiles/{id}/transfer

Offer a profile to another account (permanent once accepted).

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
email (required) string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"email":"<email>"}' \
  "http://127.0.0.1:50325/v1/profiles/<id>/transfer"

Responses:

  • 200 OK
  • 429: rate_limited: account lookups

PUT /v1/profiles/{id}/workspace

Put a profile into a team; null: personal. Not in the cloud yet: registered there when sync is turned on. Already synced: moved now under a new key, counted against the target’s plan; its shares end.

Parameter In Type Description
id (required) path string Identifier

Request body (JSON):

Field Type Description
workspaceId (required) string or null
curl -X PUT -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"workspaceId":"<workspaceId>"}' \
  "http://127.0.0.1:50325/v1/profiles/<id>/workspace"

Responses:

  • 200 OK
  • 403: forbidden, plan_limit
  • 409: profile_open, locked, no_team_key
  • 413: quota

Response shape (example values):

{
  "workspaceId": "<workspaceId>",
  "moved": false,
  "sharesEnded": 0
}

GET /v1/shared

Profiles other accounts shared with this one (“Shared with me”).

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/shared"

Responses:

  • 200 OK

GET /v1/teams

Workspaces (personal first), invitations to this account, pending transfers, this account’s key fingerprint.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams"

Responses:

  • 200 OK

POST /v1/teams

Create a team workspace (its key is made on this device).

Request body (JSON):

Field Type Description
name (required) string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"name":"<name>"}' \
  "http://127.0.0.1:50325/v1/teams"

Responses:

  • 201: Created

POST /v1/teams/refresh

Refresh teams, keys and access now: grant waiting key holders, make key rotations owed after members left, apply group shares, import shared profiles, delete local copies of profiles this account lost.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams/refresh"

Responses:

  • 200 OK

Response shape (example values):

{
  "granted": 0,
  "imported": 0,
  "removed": 0,
  "rotated": 0,
  "groupShared": 0,
  "groupUnshared": 0
}

GET /v1/teams/{ws}

A team: name, owner, key version, seats used and allowed.

Parameter In Type Description
ws (required) path string
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams/<ws>"

Responses:

  • 200 OK

PATCH /v1/teams/{ws}

Rename a team (owner, admin).

Parameter In Type Description
ws (required) path string

Request body (JSON):

Field Type Description
name (required) string
curl -X PATCH -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"name":"<name>"}' \
  "http://127.0.0.1:50325/v1/teams/<ws>"

Responses:

  • 200 OK

GET /v1/teams/{ws}/audit

The team’s audit log (owner, admin).

Parameter In Type Description
ws (required) path string
limit query integer at most 5000
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams/<ws>/audit"

Responses:

  • 200 OK

GET /v1/teams/{ws}/group-shares

The team’s group shares (key roles): group name, teammate, permissions.

Parameter In Type Description
ws (required) path string
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams/<ws>/group-shares"

Responses:

  • 200 OK

DELETE /v1/teams/{ws}/group-shares/{id}

End a group share and the shares it made (each rotates its profile’s key).

Parameter In Type Description
ws (required) path string
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams/<ws>/group-shares/<id>"

Responses:

  • 200 OK

Response shape (example values):

{
  "sharesEnded": 0
}

GET /v1/teams/{ws}/invites

Pending invitations.

Parameter In Type Description
ws (required) path string
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams/<ws>/invites"

Responses:

  • 200 OK

POST /v1/teams/{ws}/invites

Invite by e-mail (seats:).

Parameter In Type Description
ws (required) path string

Request body (JSON):

Field Type Description
email (required) string
role (required) “owner” | “admin” | “manager” | “member” | “viewer”
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"email":"<email>","role":"owner"}' \
  "http://127.0.0.1:50325/v1/teams/<ws>/invites"

Responses:

  • 201: Invited
  • 403: seat_limit, forbidden

DELETE /v1/teams/{ws}/invites/{id}

Revoke an invitation.

Parameter In Type Description
ws (required) path string
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams/<ws>/invites/<id>"

Responses:

  • 204: Done

POST /v1/teams/{ws}/leave

Leave a team: access ends now and this computer’s copies of its profiles are deleted; a remaining key holder’s device rotates the keys.

Parameter In Type Description
ws (required) path string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams/<ws>/leave"

Responses:

  • 200 OK
  • 400: personal_workspace
  • 409: owner_must_transfer

Response shape (example values):

{
  "role": "<role>",
  "rotationPending": false,
  "locksReleased": 0,
  "local": {}
}

GET /v1/teams/{ws}/members

Members with role, key state and key fingerprint (keyChanged: differs from the one this device pinned).

Parameter In Type Description
ws (required) path string
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams/<ws>/members"

Responses:

  • 200 OK

PATCH /v1/teams/{ws}/members/{account}

Change a member’s role; demoting a key holder rotates the workspace key.

Parameter In Type Description
ws (required) path string
account (required) path string

Request body (JSON):

Field Type Description
role (required) “owner” | “admin” | “manager” | “member” | “viewer”
curl -X PATCH -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"role":"owner"}' \
  "http://127.0.0.1:50325/v1/teams/<ws>/members/<account>"

Responses:

  • 200 OK
  • 403: forbidden
  • 409: key_changed

DELETE /v1/teams/{ws}/members/{account}

Remove a member: their access, shares and locks end; every key they had rotates.

Parameter In Type Description
ws (required) path string
account (required) path string
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams/<ws>/members/<account>"

Responses:

  • 200 OK
  • 409: key_changed, rotation_stale

POST /v1/teams/{ws}/members/{account}/trust

Accept a member’s changed key after comparing fingerprints.

Parameter In Type Description
ws (required) path string
account (required) path string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams/<ws>/members/<account>/trust"

Responses:

  • 200 OK

GET /v1/teams/{ws}/profiles

The team’s profiles this account can see: summary, lock holder with name, share, local.

Parameter In Type Description
ws (required) path string
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/teams/<ws>/profiles"

Responses:

  • 200 OK

POST /v1/teams/{ws}/transfer

Hand the team to an admin who has the current key; the owner becomes an admin.

Parameter In Type Description
ws (required) path string

Request body (JSON):

Field Type Description
accountId (required) string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"accountId":"<accountId>"}' \
  "http://127.0.0.1:50325/v1/teams/<ws>/transfer"

Responses:

  • 200 OK
  • 403: seat_limit, plan_limit

GET /v1/transfers

Transfers to this account and from it.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/transfers"

Responses:

  • 200 OK

POST /v1/transfers/{id}/accept

Accept a transfer: the profile moves to this account (counts against its plan).

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/transfers/<id>/accept"

Responses:

  • 200 OK
  • 403: plan_limit
  • 413: quota

POST /v1/transfers/{id}/cancel

Cancel a transfer this account offered.

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/transfers/<id>/cancel"

Responses:

  • 204: Done

POST /v1/transfers/{id}/decline

Decline a transfer.

Parameter In Type Description
id (required) path string Identifier
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/transfers/<id>/decline"

Responses:

  • 204: Done

Import from other apps

Preview and run an import of profiles exported from another app or a spreadsheet.

Method Path What it does
POST /v1/import Start a migration import (one profile per importable row)
POST /v1/import/preview Preview a migration import: format, columns, rows with issues, plan room
GET /v1/import/{id} An import job: state, done/total, created, failed, warnings, skipped rows

POST /v1/import

Start a migration import (one profile per importable row). Answers at once with a job; progress as import events and on GET /v1/import/{id}. The whole import must fit the plan (403 plan_limit) unless fitToPlan.

Request body (JSON):

Field Type Description
fileName string
text string CSV, TSV, AdsPower TXT, JSON, Netscape cookies or a proxy list
base64 string the file as base64 (XLSX, or text in another encoding)
chromePath string a Chrome/Chromium “User Data” or profile folder the user picked
mapping object header text -> field, over the automatic mapping
groupPolicy “file” | “one” | “none”
groupId string
proxyPolicy “file” | “library” | “none”
proxyIds array of string
rows array of integer the preview’s row numbers (default: every importable row)
fitToPlan boolean import the first rows the plan has room for instead of refusing
cookies boolean
bookmarks boolean
history boolean
tags array of string
namePrefix string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/import"

Responses:

  • 202: Started: jobId, total, skipped
  • 400: nothing_to_import, bad_policy, no_such_group, no_such_proxy
  • 403: plan_limit, licence
  • 409: import_running

POST /v1/import/preview

Preview a migration import: format, columns, rows with issues, plan room. Nothing changes. Fingerprint columns (user agent, OS, screen,…) are reported and never copied: imported profiles get generated settings. Proxy passwords and cookie values are never in the answer.

Request body (JSON):

Field Type Description
fileName string
text string CSV, TSV, AdsPower TXT, JSON, Netscape cookies or a proxy list
base64 string the file as base64 (XLSX, or text in another encoding)
chromePath string a Chrome/Chromium “User Data” or profile folder the user picked
mapping object header text -> field, over the automatic mapping
groupPolicy “file” | “one” | “none”
groupId string
proxyPolicy “file” | “library” | “none”
proxyIds array of string
rows array of integer the preview’s row numbers (default: every importable row)
fitToPlan boolean import the first rows the plan has room for instead of refusing
cookies boolean
bookmarks boolean
history boolean
tags array of string
namePrefix string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/import/preview"

Responses:

  • 200 OK
  • 400: bad_file, bad_body, bad_path
  • 413: too_large

GET /v1/import/{id}

An import job: state, done/total, created, failed, warnings, skipped rows.

Parameter In Type Description
id (required) path string Identifier
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/import/<id>"

Responses:

  • 200 OK
  • 404: No such job

Fingerprint settings and engine

Generate and validate settings documents; engine and GPU facts.

Method Path What it does
GET /v1/engine The engine: version, schema revision, accepted phase-2 fields, GPU facts
POST /v1/engine/probe Probe the engine (hidden launch) for its GPU facts
GET /v1/gpu GPU preference
PUT /v1/gpu Set the GPU preference
POST /v1/settings/generate Preview a generated settings document
POST /v1/settings/validate Validate a settings document
POST /v1/widevine/import Import a WidevineCdm folder for the current engine

GET /v1/engine

The engine: version, schema revision, accepted phase-2 fields, GPU facts.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/engine"

Responses:

  • 200 OK

POST /v1/engine/probe

Probe the engine (hidden launch) for its GPU facts.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/engine/probe"

Responses:

  • 200 OK

GET /v1/gpu

GPU preference.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/gpu"

Responses:

  • 200 OK

PUT /v1/gpu

Set the GPU preference.

Request body (JSON):

Field Type Description
preference (required) “high-performance” | “power-saving”
curl -X PUT -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"preference":"high-performance"}' \
  "http://127.0.0.1:50325/v1/gpu"

Responses:

  • 200 OK

POST /v1/settings/generate

Preview a generated settings document.

Request body (JSON, optional):

Field Type Description
seed string
proxyId string
country string
region string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/settings/generate"

Responses:

  • 200 OK

POST /v1/settings/validate

Validate a settings document. Keel’s schema for the current engine plus PassKeel’s cross-field rules; returns valid, issues, locationWarnings.

Request body (JSON):

Field Type Description
settings (required) object
proxyId string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"settings":{}}' \
  "http://127.0.0.1:50325/v1/settings/validate"

Responses:

  • 200 OK

POST /v1/widevine/import

Import a WidevineCdm folder for the current engine.

Request body (JSON):

Field Type Description
path (required) string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"path":"<path>"}' \
  "http://127.0.0.1:50325/v1/widevine/import"

Responses:

  • 200 OK

Engines

Installed Keel Engine versions and updates.

Method Path What it does
GET /v1/engines Installed engines, the default, install jobs, last update check
POST /v1/engines/check Check the catalogue for newer engines (never installs)
POST /v1/engines/cleanup Remove old engines nothing needs
PUT /v1/engines/default Make an installed engine the default (new profiles)
POST /v1/engines/install Install a Keel Engine release (verified; progress as engineInstall events)
DELETE /v1/engines/{version} Remove an engine

GET /v1/engines

Installed engines, the default, install jobs, last update check. Each engine: version, chromiumVersion, major, path, managed (installed by PassKeel), default, signer and trust, profiles {pinned, major}, open, hostInfo. trust is release or dev.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/engines"

Responses:

  • 200 OK

POST /v1/engines/check

Check the catalogue for newer engines (never installs). Returns updates (patch: newer build of an installed major; major: a newer major) and releases; an engineUpdates event when there are updates.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/engines/check"

Responses:

  • 200 OK
  • 400: bad_catalogue_url
  • 409: no_catalogue
  • 502: catalogue_failed

POST /v1/engines/cleanup

Remove old engines nothing needs. Removes engines PassKeel installed that aren’t the default, have no pinned profile, run no browser and aren’t the only engine of their version. keepPrevious keeps the newest such engine of each version for rolling back. GET /v1/engines lists them as removable with removableBytes.

Request body (JSON, optional):

Field Type Description
keepPrevious boolean
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/engines/cleanup"

Responses:

  • 200 OK

PUT /v1/engines/default

Make an installed engine the default (new profiles). The user’s choice (defaultChosen: true): a newer bundled engine no longer replaces it.

Request body (JSON):

Field Type Description
version (required) string
curl -X PUT -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"version":"<version>"}' \
  "http://127.0.0.1:50325/v1/engines/default"

Responses:

  • 200 OK
  • 404: Not installed

POST /v1/engines/install

Install a Keel Engine release (verified; progress as engineInstall events). From the catalogue (version) or a local release zip / release folder (path). The archive hash (catalogue, .sha256, release-<v>.json), the signed keel_release.cat, every file’s hash in keel_release.json and every signed file are checked before the engine can be used. One install at a time. The first engine, or makeDefault, becomes the default.

Request body (JSON):

Field Type Description
version string
path string
makeDefault boolean
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/engines/install"

Responses:

  • 202: Started (jobId)
  • 400: bad_path, bad_request
  • 404: not_in_catalogue
  • 409: busy, no_catalogue, passkeel_too_old, not_available
  • 502: catalogue_failed

DELETE /v1/engines/{version}

Remove an engine. Removes its folder (managed engines; local folders are only forgotten), its GPU preference value and cached facts, and the Widevine cache of its Chromium version when no other engine has it.

Parameter In Type Description
version (required) path string
force query boolean also when profiles are pinned to it or would have no engine of their major (their pins are cleared)
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/engines/<version>"

Responses:

  • 200 OK
  • 404: Not installed
  • 409: default_engine, engine_in_use, engine_needed (with pinned, stranded), remove_failed

Plan, licence and audit

Your plan and its limits, the acceptable use policy, and the local security log.

Method Path What it does
GET /v1/audit Local security audit log (newest first)
GET /v1/license Licence state, plan, limits, offline grace and AUP
POST /v1/license/aup Accept the acceptable use policy (this version)
POST /v1/license/refresh Fetch a new signed entitlement now (e.g. after signing in)

GET /v1/audit

Local security audit log (newest first). API key changes, refused keys, rate limiting, licence state changes and refusals, AUP acceptance. Keys appear only as their ID.

Parameter In Type Description
limit query integer at most 500 (default 200)
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/audit"

Responses:

  • 200 OK

GET /v1/license

Licence state, plan, limits, offline grace and AUP. Licence state from the signed entitlement: state is preview, unlicensed, active, expiring, expired, invalid, clock or suspended; blocked = opening and creating profiles are refused; limits = the limits in force (maxProfiles, automation.api, automation.maxOpenProfiles, automation.apiRequestsPerMinute); planLimits = the plan’s, even when not enforced; expiresAt = end of the 72 h offline grace; aupVersion, aupAccepted, aupRequired; usage.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/license"

Responses:

  • 200 OK

POST /v1/license/aup

Accept the acceptable use policy (this version). version must equal the current aupVersion.

Request body (JSON):

Field Type Description
version (required) string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"version":"<version>"}' \
  "http://127.0.0.1:50325/v1/license/aup"

Responses:

  • 200 OK
  • 400: aup_version: not the current version

POST /v1/license/refresh

Fetch a new signed entitlement now (e.g. after signing in). Licence state from the signed entitlement: state is preview, unlicensed, active, expiring, expired, invalid, clock or suspended; blocked = opening and creating profiles are refused; limits = the limits in force (maxProfiles, automation.api, automation.maxOpenProfiles, automation.apiRequestsPerMinute); planLimits = the plan’s, even when not enforced; expiresAt = end of the 72 h offline grace; aupVersion, aupAccepted, aupRequired; usage.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/license/refresh"

Responses:

  • 200 OK

Updates, support and privacy

App updates, support bundles, first-run state and anonymous usage statistics.

Method Path What it does
GET /v1/settings/telemetry Anonymous usage statistics: on or off
PUT /v1/settings/telemetry Turn anonymous usage statistics on or off; dismiss the notice
GET /v1/setup First-run state
POST /v1/setup/done Mark the first-run welcome as done
GET /v1/support/bundle Preview a support bundle (entries, sizes, what is never included)
POST /v1/support/bundle Create a support bundle zip in the data folder (support)
GET /v1/support/bundles/{name} Download a support bundle (application/zip)
GET /v1/updates App update state
PATCH /v1/updates Update channel, manifest address, background download
POST /v1/updates/check Fetch and verify the signed update manifest now
POST /v1/updates/download Download and verify the available installer
POST /v1/updates/install Install the downloaded update (closes profiles, restarts PassKeel)
DELETE /v1/updates/result Stop reporting the last update result

GET /v1/settings/telemetry

Anonymous usage statistics: on or off. Anonymous usage statistics: one launch event per start of the PassKeel service with a random install ID, the app version and the Windows version. enabled: on (the setting, unless forcedOff); forcedOff: PASSKEEL_NO_TELEMETRY=1; available: this build sends them at all; noticeSeen: the one-time notice was dismissed.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/settings/telemetry"

Responses:

  • 200 OK

PUT /v1/settings/telemetry

Turn anonymous usage statistics on or off; dismiss the notice. Off drops the waiting event and stops sending at once. Anonymous usage statistics: one launch event per start of the PassKeel service with a random install ID, the app version and the Windows version. enabled: on (the setting, unless forcedOff); forcedOff: PASSKEEL_NO_TELEMETRY=1; available: this build sends them at all; noticeSeen: the one-time notice was dismissed.

Request body (JSON):

Field Type Description
enabled boolean
noticeSeen boolean
curl -X PUT -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/settings/telemetry"

Responses:

  • 200 OK
  • 400: bad_request
  • 409: forced_off: PASSKEEL_NO_TELEMETRY=1 is set

GET /v1/setup

First-run state.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/setup"

Responses:

  • 200 OK

POST /v1/setup/done

Mark the first-run welcome as done.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/setup/done"

Responses:

  • 204: Done

GET /v1/support/bundle

Preview a support bundle (entries, sizes, what is never included). logs (service, updater, profiles’ Keel logs), versions, settings summary, recent audit events, crash report list; secrets redacted; nothing from inside a profile.

Parameter In Type Description
profiles query string comma-separated profile IDs (default: open, then recently used, up to 10)
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/support/bundle"

Responses:

  • 200 OK
  • 404: No such profile

POST /v1/support/bundle

Create a support bundle zip in the data folder (support). logs (service, updater, profiles’ Keel logs), versions, settings summary, recent audit events, crash report list; secrets redacted; nothing from inside a profile.

Request body (JSON, optional):

Field Type Description
profileIds array of string
note string
appVersion string
uiLog array of string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/support/bundle"

Responses:

  • 201: Written; path, name, sizeBytes
  • 400: bad_id, too_many
  • 404: No such profile

GET /v1/support/bundles/{name}

Download a support bundle (application/zip).

Parameter In Type Description
name (required) path string file name
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/support/bundles/<name>"

Responses:

  • 200 OK
  • 404: No such bundle

GET /v1/updates

App update state. App self-update: current, channel (stable/beta), configured (an update address and a trusted key), installable (an installed copy), available (newer signed version), download {state: none|downloading|ready|failed}, lastResult (updated, rolledBack, installFailed from the updater), engineUpdates.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/updates"

Responses:

  • 200 OK

PATCH /v1/updates

Update channel, manifest address, background download. url: https, http to this computer, file:/// or a path; {channel} is replaced; "" = the build’s.

Request body (JSON):

Field Type Description
channel string
url string
autoDownload boolean
curl -X PATCH -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/updates"

Responses:

  • 200 OK
  • 400: bad_channel, bad_url

POST /v1/updates/check

Fetch and verify the signed update manifest now. App self-update: current, channel (stable/beta), configured (an update address and a trusted key), installable (an installed copy), available (newer signed version), download {state: none|downloading|ready|failed}, lastResult (updated, rolledBack, installFailed from the updater), engineUpdates. Only versions newer than this build are offered.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/updates/check"

Responses:

  • 200 OK
  • 409: not_configured
  • 422: bad_signature, untrusted_key, bad_manifest, too_old, no_build
  • 502: fetch_failed

POST /v1/updates/download

Download and verify the available installer.

curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/updates/download"

Responses:

  • 202: Started
  • 409: no_update

POST /v1/updates/install

Install the downloaded update (closes profiles, restarts PassKeel). Closes every open profile with a flushed close and waits for cloud pushes, backs up the install folder, hands over to the updater and stops. The updater rolls back if the new version doesn’t start.

Request body (JSON):

Field Type Description
version (required) string
curl -X POST -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"version":"<version>"}' \
  "http://127.0.0.1:50325/v1/updates/install"

Responses:

  • 202: Closing profiles; the PassKeel service stops shortly
  • 409: not_installed, not_ready, busy

DELETE /v1/updates/result

Stop reporting the last update result.

curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/updates/result"

Responses:

  • 204: Done

Service, API keys and events

The background service itself, API keys, the event stream and diagnostics.

Method Path What it does
GET /openapi.json This document
GET /v1/agent Service version, PID, engine, open profiles and memory
POST /v1/agent/stop Close open profiles (flushed) and stop the PassKeel service
GET /v1/api-keys List API keys (labels and creation time; never the keys)
POST /v1/api-keys Create an API key (shown once)
DELETE /v1/api-keys/{id} Delete an API key
GET /v1/config Service configuration (engine path, start at sign-in, engine catalogue)
PATCH /v1/config Change the engine path, start at sign-in or the engine catalogue URL
GET /v1/events Event stream (WebSocket)
GET /v1/exit-codes Keel exit codes with message and fix
GET /v1/logs/agent Last part of the PassKeel service log
GET /v1/machine This machine’s facts for the generator (OS, GPU, monitors, fonts)
GET /v1/tags Tags in use with their profile counts

GET /openapi.json

This document.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/openapi.json"

Responses:

  • 200 OK

GET /v1/agent

Service version, PID, engine, open profiles and memory.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/agent"

Responses:

  • 200 OK

POST /v1/agent/stop

Close open profiles (flushed) and stop the PassKeel service.

Request body (JSON, optional):

Field Type Description
closeProfiles boolean
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/agent/stop"

Responses:

  • 200 OK

GET /v1/api-keys

List API keys (labels and creation time; never the keys).

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/api-keys"

Responses:

  • 200 OK

POST /v1/api-keys

Create an API key (shown once).

Request body (JSON, optional):

Field Type Description
label string
curl -X POST -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/api-keys"

Responses:

  • 201: Created; key is shown only here

DELETE /v1/api-keys/{id}

Delete an API key. The app’s ui key can’t be deleted (409).

Parameter In Type Description
id (required) path string Identifier
curl -X DELETE -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/api-keys/<id>"

Responses:

  • 204: Done
  • 404: No such key
  • 409: Protected key

GET /v1/config

Service configuration (engine path, start at sign-in, engine catalogue).

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/config"

Responses:

  • 200 OK

PATCH /v1/config

Change the engine path, start at sign-in or the engine catalogue URL. The engine is checked (file and <version>.manifest) before it is used. catalogueUrl: https, http to this computer, file:/// or an absolute path; "" removes it.

Request body (JSON):

Field Type Description
enginePath string
startAtSignIn boolean
catalogueUrl string
curl -X PATCH -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/config"

Responses:

  • 200 OK
  • 400: bad_engine, bad_catalogue_url

GET /v1/events

Event stream (WebSocket). Upgrade to a WebSocket; messages are status, proxyError, configWarning, lastWindowClosed, resources, proxyCheck, engineInstall, engineUpdates, hostClassMismatch, sync, synchronizer, automation, import, appUpdate, profileNotice (idleWarning, idleKept, idleClosed, ipMatch) and notice (hiddenProfiles) events as JSON. Browsers pass the key as ?key= (WebSocket handshakes can’t set headers).

Parameter In Type Description
key query string API key

This is a WebSocket. Connect to ws://127.0.0.1:50325/v1/events?key=<api key>; each message is one JSON event.

Responses:

  • 200 OK

GET /v1/exit-codes

Keel exit codes with message and fix.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/exit-codes"

Responses:

  • 200 OK

GET /v1/logs/agent

Last part of the PassKeel service log.

Parameter In Type Description
tail query integer bytes, at most 1 MB
curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/logs/agent"

Responses:

  • 200 OK

GET /v1/machine

This machine’s facts for the generator (OS, GPU, monitors, fonts).

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/machine"

Responses:

  • 200 OK

GET /v1/tags

Tags in use with their profile counts.

curl -H "X-Api-Key: $KEY" \
  "http://127.0.0.1:50325/v1/tags"

Responses:

  • 200 OK

The automation bridge

The connection URLs returned when a profile opens (/cdp/<token>/... for the Chrome DevTools Protocol and /wd/<token>/... for WebDriver) are not part of this list: their session token is their credential and they need no API key. See Connect Puppeteer, Playwright or Selenium.