Skip to content

DocumentationAutomation

Local API

Last checked against the contract: November 2026

Released, and in the build you can download today — on macOS and on Windows alike. The switch is in the app’s settings and the API stays off until you turn it on. Which calls that build answers is marked on every operation and on every example below, rather than written into a sentence here that the next release would make wrong.

A script on the same machine turns a profile’s browser into something it can drive. The interface is one service, one key and one address file — described first, because everything stands on them — and a handful of routes over the top: find a profile, open it, connect Puppeteer, Playwright or Selenium to the address it answers with, close it again.

Turning it on

Off by default, and reachable from this computer only.

The switch
Open Settings → API & Automation and turn on Local API. Until you do, nothing listens: the port is not opened, and a script gets a refused connection rather than an empty answer.
This computer only
The service accepts connections on 127.0.0.1 and nowhere else. Another machine on your network cannot reach it, and there is no setting that opens it up — a script runs beside Liminal, not against it over the network.
The port
The default is 48361, a port of Liminal’s own so it does not collide with another browser already listening on the machine. Type a different one, or press Random free port and let the app pick. The change takes effect at once, without restarting Liminal.
When the port is taken
If the port cannot be bound, the screen says Port in use and the address file reports port_in_use. Nothing listens until you choose another port, so a script that reads the file knows the difference between "off" and "could not start".

The key

One key, shown once, kept where your operating system keeps secrets.

Copy it when it appears
Enabling the API issues a key of 64 lowercase hexadecimal characters and shows it once. Leave the screen and it is hidden: the app cannot show it again, it can only issue a new one.
Where it is stored
In Keychain on macOS and Credential Manager on Windows — never in a settings file, a sync snapshot or a log, and never in the address file below. Keep your copy the way you keep any other credential your script uses.
Revoking it
Regenerate key issues a new key and stops accepting the old one immediately, with no restart of the app and no change to the port. A script still holding the old key is refused from the next request on.
Sending it
Every request carries the key in one header: Authorization: Bearer followed by the key itself. There is no query parameter and no cookie, and a request without the header is refused like a request with a wrong key.

Where a script finds the address

The app writes its address to a file, so nothing has to be typed twice.

The file
The settings screen shows the absolute path to Local API/status.json inside Liminal’s user-data directory. Read it instead of hardcoding a port: it follows the port you set and the one Random free port picked.
What it holds
Four fields — enabled, status, address, port — and no secret of any kind.
{"enabled":true,"status":"running","address":"http://127.0.0.1:48361","port":48361}
When the API is off
The file stays where it is and says so: off with an empty address and no port. The same shape, a different state — a script reads one file to learn everything.
{"enabled":false,"status":"off","address":"","port":0}
It is replaced, never half-written
Every change — turning the API on or off, a new port, a port that could not be bound — rewrites the file atomically. A script that reads it during a change sees the old contents or the new ones, never a truncated line.

The status request

The call to start from: is Liminal running, and is anyone signed in.

The call
A GET to /v1/status at the address from the file, with the key in the header.
curl -H 'Authorization: Bearer <key>' http://127.0.0.1:48361/v1/status
The answer
HTTP 200. The version field appends the Liminal build number to the version the browser reports. A false signedIn means the API answered with no active account. Reading the catalog or opening a profile requires an account.
{"status":"running","version":"<version>","signedIn":true}
A missing or revoked key
HTTP 401, and the code invalid_key — permanent, and the thing to branch on. The message beside it is the app’s own wording for a person reading a log; treat it as text that can change, not as part of the contract.
{"error":{"code":"invalid_key","message":"Неверный ключ"}}
Address it exactly as the file does
Use 127.0.0.1 and the port from the file. A request that arrives naming any other host is not answered, even when it reaches the same port — the service replies to its own address only.
What an older Liminal does
Nothing: no port is opened, so a script connecting to it is refused. That refusal is how a script tells a build without the local API from one that has it turned off — in the second case the address file exists and says off.

What this version does and does not do

Said plainly, so nothing here reads as a promise it is not.

An operation reaches this page before it reaches your build
The interface grows release by release, and a call that is written is documented here before the build that answers it — marked, never hidden. So read the mark, not the promise: it is on every operation and on every example below, and it is what tells you whether the thing you are about to script works in the app you have.
Which plans it is for
Every plan, the free one included. The local API is not a paid tier: a script on your own machine is how many people use an anti-detect browser at all, and putting it behind a plan would be a tax on that.Plans
How often a script may ask
There is no quota tied to your plan. The service protects itself from being flooded, which a script written for it will not notice.
A profile under automation is the same profile
It keeps its fingerprint, its proxy and its cookies, and it reaches the network through its proxy exactly as it does when you open it by hand. The API is a way in, not a second mode of the browser.Data & Security

Every operation, one by one

What each route is for, what it takes, what it answers, and every refusal it can give. The badge beside an operation says whether the build you can download today answers it at all.

Replace example IDs and addresses with values from your browser.
Version and availability evidence · DEV-1778 · DEV-352 · DEV-1789

GET /v1/status

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

Is Liminal running, and is anyone signed in

The cheapest call there is, and the one to poll while you wait for the app. It answers without an account: a false signedIn is a state, not an error.

Main Local API bearer key

Parameters

None.

Answer · HTTP 200

{
  "status": "running",
  "version": "<version>",
  "signedIn": true
}

Refusals

  • 401 invalid_key — The key is missing, malformed or has been regenerated since.

GET /v1/profiles

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

The profiles in the catalog, filtered and paged

Reads the same catalog the app shows. Filters combine, and every one of them is exact except name, which matches any profile whose name contains what you typed, in any case.

Main Local API bearer key

Parameters

pagequery · integer · optional · 1 to 1000000 · defaults to 1
Which page to read, counting from one.
pageSizequery · integer · optional · 1 to 100 · defaults to 100
How many profiles a page holds. The ceiling is the default.
workspaceIdquery · string · optional
Only profiles of that workspace.
folderIdquery · string · optional
Only profiles of that folder.
statusquery · string · optional
Only profiles in that state; running is the state of an open profile.
namequery · string · optional
Only profiles whose name contains this, ignoring case.

Answer · HTTP 200

{
  "page": 1,
  "pageSize": 1,
  "total": 1,
  "items": [
    {
      "id": "<id>",
      "name": "Test profile",
      "workspaceId": "<workspace-id>",
      "folderId": "<folderId>",
      "status": "<status>",
      "health": "<health>",
      "proxy": {
        "id": "<id>",
        "name": "Test profile",
        "type": "<type>",
        "host": "<host>",
        "port": 1,
        "working": true,
        "lastCheckedExternalIp": "<lastCheckedExternalIp>",
        "lastCheckedCountryCode": "<lastCheckedCountryCode>"
      },
      "fingerprint": {
        "platform": "<platform>",
        "language": "<language>",
        "timezone": "<timezone>"
      },
      "lastOpenedAt": "<lastOpenedAt>"
    }
  ]
}

Refusals

  • 400 invalid_pagination — page or pageSize is outside the accepted range.
  • 401 invalid_key — The key is missing, malformed or has been regenerated since.
  • 403 not_signed_in — Nobody is signed in to the app; the catalog operations need an account.
  • 403 team_closed — The active team is closed: renew its plan or switch to another team.
  • 503 catalog_loading — The profile catalog is still loading. Ask again.
  • 503 catalog_unavailable — The app could not open the profile catalog.

GET /v1/profiles/{id}

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

One profile, with its proxy and its fingerprint

The same object the list returns, for one identifier. The proxy address is shown; its password never is.

Main Local API bearer key

Parameters

idpath · string · required
The profile identifier, as the catalog operations return it.

Answer · HTTP 200

{
  "id": "<id>",
  "name": "Test profile",
  "workspaceId": "<workspace-id>",
  "folderId": "<folderId>",
  "status": "<status>",
  "health": "<health>",
  "proxy": {
    "id": "<id>",
    "name": "Test profile",
    "type": "<type>",
    "host": "<host>",
    "port": 1,
    "working": true,
    "lastCheckedExternalIp": "<lastCheckedExternalIp>",
    "lastCheckedCountryCode": "<lastCheckedCountryCode>"
  },
  "fingerprint": {
    "platform": "<platform>",
    "language": "<language>",
    "timezone": "<timezone>"
  },
  "lastOpenedAt": "<lastOpenedAt>"
}

The released build leaves out: startup

Refusals

  • 401 invalid_key — The key is missing, malformed or has been regenerated since.
  • 403 not_signed_in — Nobody is signed in to the app; the catalog operations need an account.
  • 403 team_closed — The active team is closed: renew its plan or switch to another team.
  • 404 profile_not_found — No profile with that identifier is in the catalog.
  • 503 catalog_loading — The profile catalog is still loading. Ask again.
  • 503 catalog_unavailable — The app could not open the profile catalog.

POST /v1/profiles/{id}/start

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

Open a profile and get the address a driver connects to

Starts the profile the way the app does — its fingerprint, its proxy, its cookies — and answers with the CDP address once the browser is up. The call waits; it does not return a job to poll.

Main Local API bearer key

Parameters

idpath · string · required
The profile identifier, as the catalog operations return it.
debugPortbody · integer · optional · 1024 to 65534 · defaults to 0
0 requests a free local port.
timeoutSecondsbody · integer · optional · 1 to 180 · defaults to 60
timeoutSeconds
maskAutomationbody · boolean · optional · defaults to true
maskAutomation

Example request body

{}

Answer · HTTP 200

{
  "id": "<id>",
  "status": "running",
  "network": {
    "state": "direct"
  },
  "cdpDiscoveryUrl": "<cdpDiscoveryUrl>",
  "cdpBrowserUrl": "<cdpBrowserUrl>",
  "seleniumDebuggerUrl": "<seleniumDebuggerUrl>",
  "chromedriverPath": "<chromedriverPath>",
  "debugAddress": "<debugAddress>",
  "debugPort": 1,
  "externalIp": "<externalIp>",
  "countryCode": "<countryCode>",
  "proxyLastCheckedExternalIp": "<proxyLastCheckedExternalIp>",
  "proxyLastCheckedCountryCode": "<proxyLastCheckedCountryCode>"
}

Refusals

  • 400 invalid_start_options — The body is not a JSON object.
  • 400 invalid_port — debugPort is neither 0 nor a port in the accepted range.
  • 400 invalid_start_timeout — timeoutSeconds is outside the accepted range.
  • 400 masking_unavailable — maskAutomation was sent as false, which the app does not offer.
  • 401 invalid_key — The key is missing, malformed or has been regenerated since.
  • 403 not_signed_in — Nobody is signed in to the app; the catalog operations need an account.
  • 403 team_closed — The active team is closed: renew its plan or switch to another team.
  • 404 profile_not_found — No profile with that identifier is in the catalog.
  • 409 profile_already_running — The profile is open already, a start for it is still running, or a driver address handed out earlier is still good.
  • 409 port_in_use — The debug port you asked for is taken.
  • 409 listen_failed — The debug port could not be bound for another reason.
  • 409 start_failed — The profile did not come up. A safe detail names the stage when the app can say it.
  • 409 profile_lease_held — The browser declined the profile operation.
  • 409 profile_lease_unavailable — The browser declined the profile operation.
  • 409 permission_denied — The browser declined the profile operation.
  • 409 input_error — The browser declined the profile operation.
  • 409 cancelled — The browser declined the profile operation.
  • 409 profile_not_found — No profile with that identifier is in the catalog.
  • 409 workspace_mismatch — The browser declined the profile operation.
  • 409 profile_identity_mismatch — The browser declined the profile operation.
  • 409 close_in_progress — The browser declined the profile operation.
  • 409 browser_host_not_ready — The browser declined the profile operation.
  • 409 runtime_failure — The browser declined the profile operation.
  • 409 runtime_unavailable — The app cannot start or stop a profile right now.
  • 409 not_signed_in — Nobody is signed in to the app; the catalog operations need an account.
  • 409 state_error — The browser declined the profile operation.
  • 502 profile_prepare_failed — Preparing the profile failed before the browser was asked to start.
  • 502 proxy_unavailable — The profile requires its proxy, and the proxy did not answer.
  • 503 runtime_unavailable — The app cannot start or stop a profile right now.
  • 503 catalog_loading — The profile catalog is still loading. Ask again.
  • 503 catalog_unavailable — The app could not open the profile catalog.
  • 503 cdp_unavailable — The profile started but its CDP endpoint did not come up.
  • 504 start_timeout — The profile did not come up within timeoutSeconds.

POST /v1/profiles/{id}/attach-automation

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

Get a driver address for a profile that is already open

For a profile you opened by hand and now want to drive. It does not restart anything: the session, its tabs and its cookies stay as they are.

Main Local API bearer key

Parameters

idpath · string · required
The profile identifier, as the catalog operations return it.
debugPortbody · integer · optional · 1024 to 65534 · defaults to 0
0 requests a free local port.
timeoutSecondsbody · integer · optional · 1 to 180 · defaults to 60
timeoutSeconds
maskAutomationbody · boolean · optional · defaults to true
maskAutomation

Example request body

{}

Answer · HTTP 200

{
  "id": "<id>",
  "status": "running",
  "network": {
    "state": "direct"
  },
  "cdpDiscoveryUrl": "<cdpDiscoveryUrl>",
  "cdpBrowserUrl": "<cdpBrowserUrl>",
  "seleniumDebuggerUrl": "<seleniumDebuggerUrl>",
  "chromedriverPath": "<chromedriverPath>",
  "debugAddress": "<debugAddress>",
  "debugPort": 1,
  "externalIp": "<externalIp>",
  "countryCode": "<countryCode>",
  "proxyLastCheckedExternalIp": "<proxyLastCheckedExternalIp>",
  "proxyLastCheckedCountryCode": "<proxyLastCheckedCountryCode>"
}

Refusals

  • 400 invalid_start_options — The body is not a JSON object.
  • 400 invalid_port — debugPort is neither 0 nor a port in the accepted range.
  • 400 invalid_start_timeout — timeoutSeconds is outside the accepted range.
  • 400 masking_unavailable — maskAutomation was sent as false, which the app does not offer.
  • 401 invalid_key — The key is missing, malformed or has been regenerated since.
  • 403 not_signed_in — Nobody is signed in to the app; the catalog operations need an account.
  • 403 team_closed — The active team is closed: renew its plan or switch to another team.
  • 404 profile_not_found — No profile with that identifier is in the catalog.
  • 409 profile_already_running — The profile is open already, a start for it is still running, or a driver address handed out earlier is still good.
  • 409 port_in_use — The debug port you asked for is taken.
  • 409 listen_failed — The debug port could not be bound for another reason.
  • 409 start_failed — The profile did not come up. A safe detail names the stage when the app can say it.
  • 409 profile_lease_held — The browser declined the profile operation.
  • 409 profile_lease_unavailable — The browser declined the profile operation.
  • 409 permission_denied — The browser declined the profile operation.
  • 409 input_error — The browser declined the profile operation.
  • 409 cancelled — The browser declined the profile operation.
  • 409 profile_not_found — No profile with that identifier is in the catalog.
  • 409 workspace_mismatch — The browser declined the profile operation.
  • 409 profile_identity_mismatch — The browser declined the profile operation.
  • 409 close_in_progress — The browser declined the profile operation.
  • 409 browser_host_not_ready — The browser declined the profile operation.
  • 409 runtime_failure — The browser declined the profile operation.
  • 409 runtime_unavailable — The app cannot start or stop a profile right now.
  • 409 not_signed_in — Nobody is signed in to the app; the catalog operations need an account.
  • 409 state_error — The browser declined the profile operation.
  • 409 profile_not_running — The profile is not open, so there is nothing to attach to.
  • 502 profile_prepare_failed — Preparing the profile failed before the browser was asked to start.
  • 502 proxy_unavailable — The profile requires its proxy, and the proxy did not answer.
  • 503 runtime_unavailable — The app cannot start or stop a profile right now.
  • 503 catalog_loading — The profile catalog is still loading. Ask again.
  • 503 catalog_unavailable — The app could not open the profile catalog.
  • 503 cdp_unavailable — The profile started but its CDP endpoint did not come up.
  • 504 start_timeout — The profile did not come up within timeoutSeconds.

POST /v1/profiles/{id}/stop

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

Close a profile the way its window would

Lets the session finish writing its state. This is the one to call between scripted runs on the same profile.

Main Local API bearer key

Parameters

idpath · string · required
The profile identifier, as the catalog operations return it.

Answer · HTTP 200

{
  "id": "<id>",
  "status": "closed"
}

Refusals

  • 401 invalid_key — The key is missing, malformed or has been regenerated since.
  • 403 not_signed_in — Nobody is signed in to the app; the catalog operations need an account.
  • 403 team_closed — The active team is closed: renew its plan or switch to another team.
  • 404 profile_not_found — No profile with that identifier is in the catalog.
  • 409 profile_not_running — The profile is not open, so there is nothing to attach to.
  • 409 stop_failed — The app could not close the profile.
  • 503 runtime_unavailable — The app cannot start or stop a profile right now.
  • 503 catalog_loading — The profile catalog is still loading. Ask again.
  • 503 catalog_unavailable — The app could not open the profile catalog.

POST /v1/profiles/{id}/force-stop

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

Close a profile that will not close

The same answer, without waiting for the session to settle. Reach for it when a stop did not return, not as a matter of course.

Main Local API bearer key

Parameters

idpath · string · required
The profile identifier, as the catalog operations return it.

Answer · HTTP 200

{
  "id": "<id>",
  "status": "closed"
}

Refusals

  • 401 invalid_key — The key is missing, malformed or has been regenerated since.
  • 403 not_signed_in — Nobody is signed in to the app; the catalog operations need an account.
  • 403 team_closed — The active team is closed: renew its plan or switch to another team.
  • 404 profile_not_found — No profile with that identifier is in the catalog.
  • 409 profile_not_running — The profile is not open, so there is nothing to attach to.
  • 409 stop_failed — The app could not close the profile.
  • 503 runtime_unavailable — The app cannot start or stop a profile right now.
  • 503 catalog_loading — The profile catalog is still loading. Ask again.
  • 503 catalog_unavailable — The app could not open the profile catalog.

GET /v1/running-profiles

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

What is open right now, and what can be driven

Every profile that is open, whether a window or a call opened it — startedBy says which — with its driver address when one is available. Reconnect from here after your script restarts.

Main Local API bearer key

Parameters

None.

Answer · HTTP 200

{
  "items": [
    {
      "id": "<id>",
      "workspaceId": "<workspace-id>",
      "status": "running",
      "network": {
        "state": "direct"
      },
      "automationAvailable": true,
      "startedBy": "api",
      "cdpBrowserUrl": "<cdpBrowserUrl>",
      "seleniumDebuggerUrl": "<seleniumDebuggerUrl>",
      "chromedriverPath": "<chromedriverPath>",
      "debugAddress": "<debugAddress>",
      "debugPort": 1
    }
  ]
}

Refusals

  • 401 invalid_key — The key is missing, malformed or has been regenerated since.
  • 403 not_signed_in — Nobody is signed in to the app; the catalog operations need an account.
  • 403 team_closed — The active team is closed: renew its plan or switch to another team.
  • 503 catalog_loading — The profile catalog is still loading. Ask again.
  • 503 catalog_unavailable — The app could not open the profile catalog.

POST /v1/session/{id}/stop

  • macOS · Awaiting acceptance
  • Windows ARM64 · Awaiting acceptance

Request graceful shutdown of a local headless session

Use the main Local API key and the session identifier from the current address file. The browser drains profile shutdown before exiting.

Main Local API bearer key

Parameters

idpath · string · required
Current headless session ID from the session_id field in the Local API address file.

Answer · HTTP 202

{
  "status": "stopping"
}

Refusals

  • 401 invalid_key — The key is missing or invalid.
  • 409 state_error — The session changed or is running with a window.

POST /v1/profiles

  • macOS · Verified in a candidate · 156.0.8078.9999 · c1f03992538
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999 · 29682e63158

Create a profile in the browser catalog

Omit workspaceId to use the active workspace and folderId to use the Core placement default. The profile is created without opening it. Omit connectionId to use the profile's default connection settings.

Main Local API bearer key

Parameters

namebody · string · required
Display name.
workspaceIdbody · string · optional
ID of an accessible workspace.
folderIdbody · string / null · optional
A folder in the target workspace, or null for no folder.
startupbody · object · optional
Startup settings. Send mode and urls. For urls and last_session_and_urls, send at least one supported address without embedded credentials. A bare host defaults to HTTPS. Use an empty list for new_tab and last_session.
connectionIdbody · string / null · optional
A catalog connection or null to select direct access. Omit to use the profile's default connection settings.

Example request body

{
  "name": "Test profile"
}

Answer · HTTP 201

{
  "id": "00000000-0000-4000-8000-000000000001",
  "workspaceId": "<workspace-id>"
}

Refusals

  • 400 invalid_request — The request body or arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 permission_denied — The role does not allow the action.
  • 404 not_found — The record does not exist or is outside the accessible catalog.
  • 409 state_error — The current state prevents the operation.
  • 503 catalog_unavailable — The browser cannot read the catalog.
  • 503 network_error — A supporting service is unavailable.
  • 504 outcome_unknown — The browser could not confirm the outcome.

DELETE /v1/profiles/{id}

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

Delete a profile in the active workspace

Uses the profile deletion permissions and API deletion protection of the desktop app. A successful deletion returns an empty body.

Main Local API bearer key

Parameters

idpath · string · required
The profile identifier, as the catalog operations return it.

Answer · HTTP 204

Empty body.

Refusals

  • 401 invalid_key — The key is missing or invalid.
  • 403 not_signed_in — Sign in to the app first.
  • 403 team_closed — The active team is closed.
  • 403 permission_denied — The role does not allow the action.
  • 403 api_delete_protected — Deletion through the API is disabled for this profile.
  • 404 profile_not_found — The profile is outside the visible catalog or does not exist.
  • 409 delete_failed — The profile could not be deleted.
  • 503 delete_unavailable — The browser cannot perform the deletion now.
  • 503 catalog_loading — The catalog is still loading.
  • 503 catalog_unavailable — The browser cannot read the catalog.

PATCH /v1/profiles/{id}

  • macOS · Verified in a candidate · 156.0.8078.9999 · c1f03992538
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999 · 29682e63158

Edit a profile in the browser catalog

Send one change per request: name, workspace and optional folder, or startup settings. Moving without folderId selects no folder. The result identifies the profile in its resulting workspace.

Main Local API bearer key

Parameters

idpath · string · required
Profile ID in the active workspace.
namebody · string · optional
Display name.
workspaceIdbody · string · optional
ID of an accessible workspace.
folderIdbody · string / null · optional
A folder in the target workspace, or null for no folder.
startupbody · object · optional
Startup settings. Send mode and urls. For urls and last_session_and_urls, send at least one supported address without embedded credentials. A bare host defaults to HTTPS. Use an empty list for new_tab and last_session.

Example request body

{
  "name": "Test profile"
}
{
  "workspaceId": "<workspace-id>"
}
{
  "startup": {
    "mode": "new_tab",
    "urls": []
  }
}

Answer · HTTP 200

{
  "id": "00000000-0000-4000-8000-000000000001",
  "workspaceId": "<workspace-id>"
}

Refusals

  • 400 invalid_request — The request body or arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 permission_denied — The role does not allow the action.
  • 403 team_closed — The active team is closed.
  • 404 not_found — The record does not exist or is outside the accessible catalog.
  • 409 state_error — The current state prevents the operation.
  • 409 profile_running — The profile is open.
  • 503 catalog_unavailable — The browser cannot read the catalog.
  • 503 network_error — A supporting service is unavailable.
  • 503 catalog_loading — The catalog is still loading.
  • 504 outcome_unknown — The browser could not confirm the outcome.

GET /automation/v1/status

  • macOS · Verified in a candidate · 156.0.8078.9999
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999

Check the authenticated agent connection

Named client bearer key

The updated confirmation rules and related refusals await acceptance on both platforms.

Parameters

None.

Answer · HTTP 200

{
  "status": "running"
}

Refusals

  • 400 invalid_arguments — The request arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 denied — The user refused the action.
  • 403 scope_changed — The active account, workspace or authorization changed.
  • 403 unauthenticated — There is no active signed-in account.
  • 403 confirmation_unavailable — The browser could not show the required confirmation.
  • 409 busy — Another action is in progress.
  • 409 cancelled — The action was cancelled.
  • 409 expired — The action expired.

GET /automation/v1/profiles

  • macOS · Verified in a candidate · 156.0.8078.9999
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999

List visible profile identifiers, names and states

Named client bearer key

The updated confirmation rules and related refusals await acceptance on both platforms.

Parameters

None.

Answer · HTTP 200

{
  "items": [
    {
      "id": "<id>",
      "name": "Test profile",
      "status": "<status>"
    }
  ]
}

Refusals

  • 400 invalid_arguments — The request arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 team_closed — The active team is closed.
  • 403 denied — The user refused the action.
  • 403 scope_changed — The active account, workspace or authorization changed.
  • 403 unauthenticated — There is no active signed-in account.
  • 403 confirmation_unavailable — The browser could not show the required confirmation.
  • 409 busy — Another action is in progress.
  • 409 cancelled — The action was cancelled.
  • 409 expired — The action expired.
  • 503 catalog_loading — The catalog is still loading.
  • 503 catalog_unavailable — The browser cannot read the catalog.

POST /automation/v1/page/read

  • macOS · Verified in a candidate · 156.0.8078.9999
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999

Read visible text from the selected tab

Reads visible text from the selected document subject to the caller's confirmation rule. The browser revalidates the selected document and omits forms, editable content and frames.

Named client bearer key

The updated confirmation rules and related refusals await acceptance on both platforms.

Parameters

None.

Example request body

{}

Answer · HTTP 200

{
  "text": "<text>"
}

Refusals

  • 400 invalid_arguments — The request arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 denied — The user refused the action.
  • 403 scope_changed — The active account, workspace or authorization changed.
  • 403 unauthenticated — There is no active signed-in account.
  • 403 confirmation_unavailable — The browser could not show the required confirmation.
  • 409 busy — Another action is in progress.
  • 409 no_selected_page — There is no eligible selected page.
  • 409 cancelled — The action was cancelled.
  • 409 expired — The action expired.
  • 503 read_unavailable — The selected page is unavailable.
  • 503 read_failed — The browser could not read the selected page.

GET /automation/v1/tasks

  • macOS · Verified in a candidate · 156.0.8078.9999
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999

List recent task results for the authenticated client

Returns up to 32 recent task states in the current account and workspace, newest first. An unknown task ID returns an empty list. Reading history never repeats an action.

Named client bearer key

The updated confirmation rules and related refusals await acceptance on both platforms.

Parameters

taskIdquery · string · optional
An optional opaque task identifier returned by this operation.

Answer · HTTP 200

{
  "items": [
    {
      "taskId": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1",
      "kind": "read",
      "status": "awaiting_approval"
    }
  ]
}

Refusals

  • 400 invalid_arguments — The request arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 scope_changed — The active account, workspace or authorization changed.
  • 403 denied — The user refused the action.
  • 403 unauthenticated — There is no active signed-in account.
  • 403 confirmation_unavailable — The browser could not show the required confirmation.
  • 409 busy — Another action is in progress.
  • 409 cancelled — The action was cancelled.
  • 409 expired — The action expired.
  • 503 history_unavailable — The client history could not be read.

POST /automation/v1/profile/open

  • macOS · Verified in a candidate · 156.0.8078.9999
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999

Open one visible profile with native confirmation

A named control client may request this single action. If required by the client's settings, the user confirms the named profile and action in the native window. A successful response confirms the resulting profile state. An uncertain action is never retried automatically.

Named client bearer key

The updated confirmation rules and related refusals await acceptance on both platforms.

Parameters

profileIdbody · string · required
The UUID of a visible profile.

Example request body

{
  "profileId": "00000000-0000-4000-8000-000000000001"
}

Answer · HTTP 200

{
  "profileId": "00000000-0000-4000-8000-000000000001",
  "status": "opened"
}

Refusals

  • 400 invalid_arguments — The request arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 control_required — This action requires a named Control key.
  • 403 denied — The user refused the action.
  • 403 scope_changed — The active account, workspace or authorization changed.
  • 403 unauthenticated — There is no active signed-in account.
  • 403 team_closed — The active team is closed.
  • 403 confirmation_unavailable — The browser could not show the required confirmation.
  • 404 profile_not_found — The profile is outside the visible catalog or does not exist.
  • 409 busy — Another action is in progress.
  • 409 cancelled — The action was cancelled.
  • 409 expired — The action expired.
  • 409 profile_unavailable — The profile is unavailable for the action.
  • 409 profile_change_unconfirmed — The browser could not confirm the new profile state.
  • 409 profile_already_running — The profile is already open.
  • 503 runtime_unavailable — The browser cannot open or close profiles now.
  • 503 catalog_loading — The catalog is still loading.
  • 503 catalog_unavailable — The browser cannot read the catalog.

POST /automation/v1/profile/close

  • macOS · Verified in a candidate · 156.0.8078.9999
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999

Close one visible profile with native confirmation

A named control client may request this single action. If required by the client's settings, the user confirms the named profile and action in the native window. A successful response confirms the resulting profile state. An uncertain action is never retried automatically.

Named client bearer key

The updated confirmation rules and related refusals await acceptance on both platforms.

Parameters

profileIdbody · string · required
The UUID of a visible profile.

Example request body

{
  "profileId": "00000000-0000-4000-8000-000000000001"
}

Answer · HTTP 200

{
  "profileId": "00000000-0000-4000-8000-000000000001",
  "status": "closed"
}

Refusals

  • 400 invalid_arguments — The request arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 control_required — This action requires a named Control key.
  • 403 denied — The user refused the action.
  • 403 scope_changed — The active account, workspace or authorization changed.
  • 403 unauthenticated — There is no active signed-in account.
  • 403 team_closed — The active team is closed.
  • 403 confirmation_unavailable — The browser could not show the required confirmation.
  • 404 profile_not_found — The profile is outside the visible catalog or does not exist.
  • 409 busy — Another action is in progress.
  • 409 cancelled — The action was cancelled.
  • 409 expired — The action expired.
  • 409 profile_unavailable — The profile is unavailable for the action.
  • 409 profile_change_unconfirmed — The browser could not confirm the new profile state.
  • 409 profile_not_running — The profile is closed.
  • 503 runtime_unavailable — The browser cannot open or close profiles now.
  • 503 catalog_loading — The catalog is still loading.
  • 503 catalog_unavailable — The browser cannot read the catalog.

POST /automation/v1/page/exercise-test-form

  • macOS · Verified in a candidate · 156.0.8078.9999
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999

Fill and submit the registered Liminal test form

Uses the fixed test preset and the registered form in the selected tab. Filling and submitting each follow the caller's own confirmation rule. The browser checks the first-party receipt before returning accepted.

Named client bearer key

The updated confirmation rules and related refusals await acceptance on both platforms.

Parameters

None.

Example request body

{}

Answer · HTTP 200

{
  "status": "accepted",
  "preset": "A"
}

Refusals

  • 400 invalid_arguments — The request arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 denied — The user refused the action.
  • 403 scope_changed — The active account, workspace or authorization changed.
  • 403 unauthenticated — There is no active signed-in account.
  • 403 control_required — This action requires a named Control key.
  • 403 confirmation_unavailable — The browser could not show the required confirmation.
  • 409 busy — Another action is in progress.
  • 409 no_selected_page — There is no eligible selected page.
  • 409 cancelled — The action was cancelled.
  • 409 expired — The action expired.
  • 409 test_form_unavailable — The registered test form is unavailable in the selected tab.
  • 409 test_form_unconfirmed — The browser received no matching receipt.
  • 503 read_unavailable — The selected page is unavailable.
  • 503 read_failed — The browser could not read the selected page.

PUT /v1/profiles/{id}/connection

  • macOS · Verified in a candidate · 156.0.8078.9999 · c1f03992538
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999 · 29682e63158

Assign or clear a profile's connection

Main Local API bearer key

Parameters

idpath · string · required
Profile ID in the active workspace.
connectionIdbody · string / null · required
A connection from the catalog, or null for a direct connection.

Example request body

{
  "connectionId": "00000000-0000-4000-8000-000000000002"
}

Answer · HTTP 200

{
  "id": "00000000-0000-4000-8000-000000000001",
  "workspaceId": "<workspace-id>"
}

Refusals

  • 400 invalid_request — The request body or arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 permission_denied — The role does not allow the action.
  • 403 team_closed — The active team is closed.
  • 404 not_found — The record does not exist or is outside the accessible catalog.
  • 409 state_error — The current state prevents the operation.
  • 409 direct_route_blocked — The profile settings prevent direct access.
  • 503 catalog_unavailable — The browser cannot read the catalog.
  • 503 network_error — A supporting service is unavailable.
  • 503 catalog_loading — The catalog is still loading.
  • 504 outcome_unknown — The browser could not confirm the outcome.

GET /v1/connections

  • macOS · Verified in a candidate · 156.0.8078.9999 · c1f03992538
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999 · 29682e63158

List connections in the active workspace

Main Local API bearer key

Parameters

None.

Answer · HTTP 200

{
  "items": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "Test profile",
      "type": "<type>",
      "host": "<host>",
      "port": 1,
      "working": true
    }
  ]
}

Refusals

  • 401 invalid_key — The key is missing or invalid.
  • 403 permission_denied — The role does not allow the action.
  • 503 catalog_unavailable — The browser cannot read the catalog.
  • 503 network_error — A supporting service is unavailable.

POST /v1/connections

  • macOS · Verified in a candidate · 156.0.8078.9999 · c1f03992538
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999 · 29682e63158

Add a connection to the browser catalog

Main Local API bearer key

Parameters

sourcebody · string · required
A supported connection string accepted by the browser's connection editor. Keep credentials in the request body.

Example request body

{
  "source": "socks5://proxy.example.test:1080"
}

Answer · HTTP 201

{
  "id": "00000000-0000-4000-8000-000000000001",
  "name": "Test profile",
  "type": "<type>",
  "host": "<host>",
  "port": 1,
  "working": true
}

Refusals

  • 400 invalid_request — The request body or arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 permission_denied — The role does not allow the action.
  • 404 not_found — The record does not exist or is outside the accessible catalog.
  • 409 state_error — The current state prevents the operation.
  • 503 catalog_unavailable — The browser cannot read the catalog.
  • 503 network_error — A supporting service is unavailable.
  • 504 outcome_unknown — The browser could not confirm the outcome.

DELETE /v1/connections/{id}

  • macOS · Verified in a candidate · 156.0.8078.9999 · c1f03992538
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999 · 29682e63158

Delete a catalog connection

Main Local API bearer key

Parameters

idpath · string · required
Connection ID.

Answer · HTTP 204

Empty body.

Refusals

  • 400 invalid_request — The request body or arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 permission_denied — The role does not allow the action.
  • 404 not_found — The record does not exist or is outside the accessible catalog.
  • 409 state_error — The current state prevents the operation.
  • 503 catalog_unavailable — The browser cannot read the catalog.
  • 503 network_error — A supporting service is unavailable.
  • 504 outcome_unknown — The browser could not confirm the outcome.

POST /v1/connections/{id}/check

  • macOS · Verified in a candidate · 156.0.8078.9999 · c1f03992538
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999 · 29682e63158

Check a catalog connection

Main Local API bearer key

Parameters

idpath · string · required
Connection ID.

Answer · HTTP 200

{
  "id": "00000000-0000-4000-8000-000000000001",
  "working": true
}

Refusals

  • 400 invalid_request — The request body or arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 permission_denied — The role does not allow the action.
  • 404 not_found — The record does not exist or is outside the accessible catalog.
  • 409 state_error — The current state prevents the operation.
  • 503 catalog_unavailable — The browser cannot read the catalog.
  • 503 network_error — A supporting service is unavailable.
  • 504 outcome_unknown — The browser could not confirm the outcome.

POST /v1/profile-batches/{id}

  • macOS · Verified in a candidate · 156.0.8078.9999 · c1f03992538
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999 · 29682e63158

Submit a batch of profile changes

Accepts up to 100 distinct profiles. A repeated UUID in the current browser session cannot submit a second batch. If the response is lost, use GET with the same UUID, bearer key and batch key. Use a new UUID only after the user decides to send a new request.

Main Local API bearer key

Parameters

idpath · string · required
Client-generated UUID. Save it together with the batch key before sending the request.
X-Liminal-Batch-Keyheader · string · required
Generate 32 random bytes and supply 64 lowercase hexadecimal characters. Use the same secret for both requests and keep it separate from the UUID. Required in addition to the main bearer key.
operationbody · string · required
One action per batch: move, setConnection or delete. See the required fields for each action in the request examples.
profileIdsbody · array · required · 1 to 100
An array of distinct profile UUIDs.
workspaceIdbody · string · optional
ID of an accessible workspace.
folderIdbody · string / null · optional
A folder in the target workspace, or null for no folder.
connectionIdbody · string / null · optional
A connection from the catalog, or null for a direct connection.

Example request body

{
  "operation": "move",
  "profileIds": [
    "00000000-0000-4000-8000-000000000001"
  ],
  "workspaceId": "<workspace-id>"
}
{
  "operation": "setConnection",
  "profileIds": [
    "00000000-0000-4000-8000-000000000001"
  ],
  "connectionId": "00000000-0000-4000-8000-000000000002"
}
{
  "operation": "delete",
  "profileIds": [
    "00000000-0000-4000-8000-000000000001"
  ]
}

Answer · HTTP 202

{
  "id": "00000000-0000-4000-8000-000000000010",
  "results": [
    {
      "profileId": "00000000-0000-4000-8000-000000000001",
      "status": "pending"
    }
  ]
}

Refusals

  • 400 invalid_request — The request body or arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 permission_denied — The role does not allow the action.
  • 403 team_closed — The active team is closed.
  • 409 batch_id_conflict — This UUID is already in use in the current browser session.
  • 429 batch_capacity_reached — The browser session reached its limit of 1024 retained batches or eight active batches.
  • 503 catalog_unavailable — The browser cannot read the catalog.
  • 503 network_error — A supporting service is unavailable.
  • 503 catalog_loading — The catalog is still loading.

GET /v1/profile-batches/{id}

  • macOS · Verified in a candidate · 156.0.8078.9999 · c1f03992538
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999 · 29682e63158

Read the results of your batch

Available in the browser session that accepted the batch while the caller retains access. Each submitted ID has one result. Work remains pending while Core is still executing it. Unknown means execution ended without a definitive outcome. A read performs no changes.

Main Local API bearer key

Parameters

idpath · string · required
Client-generated UUID. Save it together with the batch key before sending the request.
X-Liminal-Batch-Keyheader · string · required
Generate 32 random bytes and supply 64 lowercase hexadecimal characters. Use the same secret for both requests and keep it separate from the UUID. Required in addition to the main bearer key.

Answer · HTTP 200

{
  "id": "00000000-0000-4000-8000-000000000010",
  "results": [
    {
      "profileId": "00000000-0000-4000-8000-000000000001",
      "status": "succeeded",
      "reason": "cleanup_pending"
    },
    {
      "profileId": "00000000-0000-4000-8000-000000000002",
      "status": "refused",
      "reason": "profile_running"
    },
    {
      "profileId": "00000000-0000-4000-8000-000000000003",
      "status": "pending"
    },
    {
      "profileId": "00000000-0000-4000-8000-000000000004",
      "status": "unknown",
      "reason": "outcome_unknown"
    }
  ]
}

Refusals

  • 400 invalid_request — The request body or arguments are invalid.
  • 401 invalid_key — The key is missing or invalid.
  • 403 permission_denied — The role does not allow the action.
  • 404 not_found — The record does not exist or is outside the accessible catalog.

Batch changes and recovery

  • macOS · Verified in a candidate · 156.0.8078.9999 · c1f03992538
  • Windows ARM64 · Verified in a candidate · 156.0.8078.9999 · 29682e63158

Each request contains 1 to 100 distinct profile IDs and one action: move, setConnection or delete. The browser rejects an oversized request before changing any profile. A 202 response confirms the browser recorded the batch for execution.

pending
The change may still finish. Read the result again.
succeeded
The browser confirmed the change. A deletion can include reason cleanup_pending while local cleanup finishes.
refused
The browser refused the change. Read reason for this profile.
unknown
The browser could not confirm the outcome. This is final. Read reason and inspect the profile before deciding whether to send a new request.

Before sending, save the UUID and batch key privately. If you lose the POST response, send GET for the same UUID in the same running browser, using the same main bearer key and batch key. Only the sender with current access can read it. The results array contains one entry per profile ID. GET makes no changes. Use a new UUID only when the user decides to submit a new request.

# Bash or zsh. Set BASE_URL from Local API/status.json.
# Set LIMINAL_API_KEY, PROFILE_ID and CONNECTION_ID for disposable profiles.
BATCH_ID=$(uuidgen | tr "[A-Z]" "[a-z]")
BATCH_KEY=$(openssl rand -hex 32)
# Keep BATCH_ID and BATCH_KEY privately before sending the POST.
curl -i -X POST "$BASE_URL/v1/profile-batches/$BATCH_ID" \
  -H "Authorization: Bearer $LIMINAL_API_KEY" \
  -H "X-Liminal-Batch-Key: $BATCH_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"operation\":\"setConnection\",\"profileIds\":[\"$PROFILE_ID\"],\"connectionId\":\"$CONNECTION_ID\"}"

# If the first response was lost, read the same batch.
curl -i "$BASE_URL/v1/profile-batches/$BATCH_ID" \
  -H "Authorization: Bearer $LIMINAL_API_KEY" \
  -H "X-Liminal-Batch-Key: $BATCH_KEY"

Migrating scripts from another Local API

Match requests by what they do. Use the profile, workspace, folder and connection IDs from Liminal and adapt response handling to the HTTP status and JSON documented above.

TaskSource requestLiminal
List profilesPOST /api/v2/browser-profile/list
Create a profilePOST /api/v2/browser-profile/create
POST /v1/profilesVerified in a candidate
Edit profile name or startup settingsPOST /api/v2/browser-profile/update
PATCH /v1/profiles/{id}Verified in a candidate
Move profilesPOST /api/v1/user/regroup
PATCH /v1/profiles/{id}Verified in a candidate
POST /v1/profile-batches/{id}Verified in a candidate
Delete profilesPOST /api/v2/browser-profile/delete
POST /v1/profile-batches/{id}Verified in a candidate
List connectionsPOST /api/v2/proxy-list/list
GET /v1/connectionsVerified in a candidate
Add a connectionPOST /api/v2/proxy-list/create
POST /v1/connectionsVerified in a candidate
Assign a catalog connection to a profilePOST /api/v2/browser-profile/update
PUT /v1/profiles/{id}/connectionVerified in a candidate
POST /v1/profile-batches/{id}Verified in a candidate
Delete a catalog connectionPOST /api/v2/proxy-list/delete
DELETE /v1/connections/{id}Verified in a candidate
Edit a catalog connection in placePOST /api/v2/proxy-list/updateNo corresponding Local API route.
List groupsGET /api/v1/group/listNo corresponding Local API route.
Create a groupPOST /api/v1/group/createNo corresponding Local API route.
Rename a groupPOST /api/v1/group/updateNo corresponding Local API route.

AdsPower Local API · 2026-11-21

Driving a profile from your own script

Each block is whole: it reads the address file, calls the API and connects the driver. Copy one, put the name of your own profile in it, and it runs. The badge says whether the build you can download today answers everything that block needs.

Puppeteer (JavaScript)

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

Connects over CDP to the address the start answered with — the way a Puppeteer script reaches a browser that is already running.

Calls /v1/profiles · /v1/profiles/{id}/start

import { readFileSync } from 'node:fs'
import puppeteer from 'puppeteer-core'

// Local API/status.json, inside Liminal's user-data directory. The settings
// screen shows the absolute path; that path and the key are your script’s to
// keep — the app puts neither into the environment for you.
const { address } = JSON.parse(readFileSync(process.env.LIMINAL_ADDRESS_FILE, 'utf8'))

async function call(path, init) {
  const response = await fetch(address + path, {
    ...init,
    headers: { Authorization: `Bearer ${process.env.LIMINAL_API_KEY}` },
  })
  const body = await response.json()
  if (!response.ok) throw new Error(body.error.code)
  return body
}

const { items } = await call('/v1/profiles?name=' + encodeURIComponent('Shop EU'))
const started = await call(`/v1/profiles/${items[0].id}/start`, { method: 'POST' })

const browser = await puppeteer.connect({ browserWSEndpoint: started.cdpBrowserUrl })
const page = await browser.newPage()
await page.goto('https://example.com')
console.log(await page.title())
await browser.disconnect()

Playwright (JavaScript)

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

The same connection through Playwright’s CDP entry point, into the context the profile already has rather than a fresh one.

Calls /v1/profiles · /v1/profiles/{id}/start

import { readFileSync } from 'node:fs'
import { chromium } from 'playwright'

// Local API/status.json, inside Liminal's user-data directory. The settings
// screen shows the absolute path; that path and the key are your script’s to
// keep — the app puts neither into the environment for you.
const { address } = JSON.parse(readFileSync(process.env.LIMINAL_ADDRESS_FILE, 'utf8'))

async function call(path, init) {
  const response = await fetch(address + path, {
    ...init,
    headers: { Authorization: `Bearer ${process.env.LIMINAL_API_KEY}` },
  })
  const body = await response.json()
  if (!response.ok) throw new Error(body.error.code)
  return body
}

const { items } = await call('/v1/profiles?name=' + encodeURIComponent('Shop EU'))
const started = await call(`/v1/profiles/${items[0].id}/start`, { method: 'POST' })

const browser = await chromium.connectOverCDP(started.cdpBrowserUrl)
const page = await browser.contexts()[0].newPage()
await page.goto('https://example.com')
console.log(await page.title())
await browser.close()

Playwright (Python)

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

The Python side of the same thing, reading the address file with nothing outside the standard library.

Calls /v1/profiles · /v1/profiles/{id}/start

import json
import os
import urllib.parse
import urllib.request
from playwright.sync_api import sync_playwright

# Local API/status.json, inside Liminal's user-data directory. The settings
# screen shows the absolute path; that path and the key are your script’s to
# keep — the app puts neither into the environment for you.
with open(os.environ["LIMINAL_ADDRESS_FILE"], encoding="utf-8") as handle:
    address = json.load(handle)["address"]


def call(path, method="GET"):
    request = urllib.request.Request(address + path, method=method)
    request.add_header("Authorization", "Bearer " + os.environ["LIMINAL_API_KEY"])
    with urllib.request.urlopen(request) as response:
        return json.load(response)


profile = call("/v1/profiles?name=" + urllib.parse.quote("Shop EU"))["items"][0]
started = call(f"/v1/profiles/{profile['id']}/start", method="POST")

with sync_playwright() as playwright:
    browser = playwright.chromium.connect_over_cdp(started["cdpBrowserUrl"])
    page = browser.contexts[0].new_page()
    page.goto("https://example.com")
    print(page.title())

Selenium (Python)

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

Selenium attaches to a browser that is already running, by the debugger address, and takes the chromedriver the answer points at — nothing is downloaded and nothing is guessed.

Calls /v1/profiles · /v1/profiles/{id}/start

import json
import os
import urllib.parse
import urllib.request
from selenium import webdriver
from selenium.webdriver.chrome.service import Service

# Local API/status.json, inside Liminal's user-data directory. The settings
# screen shows the absolute path; that path and the key are your script’s to
# keep — the app puts neither into the environment for you.
with open(os.environ["LIMINAL_ADDRESS_FILE"], encoding="utf-8") as handle:
    address = json.load(handle)["address"]


def call(path, method="GET"):
    request = urllib.request.Request(address + path, method=method)
    request.add_header("Authorization", "Bearer " + os.environ["LIMINAL_API_KEY"])
    with urllib.request.urlopen(request) as response:
        return json.load(response)


profile = call("/v1/profiles?name=" + urllib.parse.quote("Shop EU"))["items"][0]
started = call(f"/v1/profiles/{profile['id']}/start", method="POST")

options = webdriver.ChromeOptions()
options.debugger_address = started["seleniumDebuggerUrl"]
driver = webdriver.Chrome(service=Service(started["chromedriverPath"]), options=options)
driver.get("https://example.com")
print(driver.title)
driver.quit()

Selenium (JavaScript)

  • macOS · In the released build · 156.0.8078.91
  • Windows ARM64 · In the released build · 156.0.8078.91

The same for Node: both the debugger address and the path to a matching chromedriver come out of the start answer.

Calls /v1/profiles · /v1/profiles/{id}/start

import { readFileSync } from 'node:fs'
import { Builder } from 'selenium-webdriver'
import chrome from 'selenium-webdriver/chrome.js'

// Local API/status.json, inside Liminal's user-data directory. The settings
// screen shows the absolute path; that path and the key are your script’s to
// keep — the app puts neither into the environment for you.
const { address } = JSON.parse(readFileSync(process.env.LIMINAL_ADDRESS_FILE, 'utf8'))

async function call(path, init) {
  const response = await fetch(address + path, {
    ...init,
    headers: { Authorization: `Bearer ${process.env.LIMINAL_API_KEY}` },
  })
  const body = await response.json()
  if (!response.ok) throw new Error(body.error.code)
  return body
}

const { items } = await call('/v1/profiles?name=' + encodeURIComponent('Shop EU'))
const started = await call(`/v1/profiles/${items[0].id}/start`, { method: 'POST' })

const driver = await new Builder()
  .forBrowser('chrome')
  .setChromeOptions(new chrome.Options().debuggerAddress(started.seleniumDebuggerUrl))
  .setChromeService(new chrome.ServiceBuilder(started.chromedriverPath))
  .build()
await driver.get('https://example.com')
console.log(await driver.getTitle())
await driver.quit()

The description a tool can import

Download the OpenAPI file and import it into Postman as a collection. Use the address from Local API/status.json as the base URL and set the main key as the Bearer Token. Send GET /v1/status. Check HTTP 200 and status running. The version field appends the Liminal build number to the browser version it reports. Compare the last numeric component with the Liminal build number. signedIn indicates whether the app has an active account. For batch calls, add X-Liminal-Batch-Key in Headers.

In OpenAPI, x-liminal-release set to pending means the operation awaits a public release. See the entry for each operation for its tested builds by OS.

openapi.json (OpenAPI 1.2.0)

The release that shipped it, and every release that extends it, is in the changelog. A question about the contract, or a value here that does not match what your build does: [email protected].