Skip to content

Local API

85 endpoints, 13 groups.

On this page

The local REST API listens on http://127.0.0.1:10108. Every /v1 request needs an Authorization: Bearer $DONUT_API_KEY header: see Authentication. Responses are JSON. Routes marked Pro need Pro, Team or Enterprise.

Profiles

Create, read, change and delete profiles; launch and stop them; edit many at once; import from other browsers.

GET /v1/profiles : List profiles

Returns every profile in the local install, with total. fingerprint_os is the operating system the profile shows to sites (null when it matches host_os, the computer it was made on).

Request

curl -sS -X GET http://127.0.0.1:10108/v1/profiles \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "profiles": [
    {
      "id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
      "name": "Work",
      "browser": "wayfern",
      "version": "152.0.7845.96",
      "release_type": "stable",
      "group_id": "75f2b42f-8c94-4291-8af7-7a3d79122507",
      "proxy_id": "c5617755-0709-4820-832a-6b97a0a24f3c",
      "vpn_id": null,
      "tags": [
        "client-1"
      ],
      "status_id": "8f1c2d3e-4b5a-4c6d-9e7f-0a1b2c3d4e5f",
      "extension_group_id": null,
      "dns_server": null,
      "start_urls": [],
      "is_running": false,
      "process_id": null,
      "last_launch": 1779106515,
      "launch_hook": null,
      "proxy_bypass_rules": [],
      "ephemeral": false,
      "temporary": false,
      "clear_on_close": false,
      "sync_mode": "Disabled",
      "cloud_sync_enabled": false,
      "host_os": "macos",
      "is_cross_os": false,
      "fingerprint_os": null
    }
  ],
  "total": 1
}

POST /v1/profiles : Create a profile

browser must be "wayfern". version accepts "latest": the newest build already downloaded; this route does not download one. Set only one of proxy_id and vpn_id. wayfern_config.os picks the fingerprint operating system (windows, macos, linux, android or ios); any system other than this computer's needs Pro. ephemeral: true keeps browsing data in memory; temporary: true makes a profile for one automation run that is deleted when its browser stops. dns_server takes https:// (DNS over HTTPS), tls:// (DNS over TLS), tcp:// (plain) or a bare address. start_urls takes up to 20 http(s) URLs.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "client-1",
      "browser": "wayfern",
      "version": "latest",
      "proxy_id": "c5617755-0709-4820-832a-6b97a0a24f3c",
      "group_id": "75f2b42f-8c94-4291-8af7-7a3d79122507",
      "tags": [
        "client-1"
      ],
      "status_id": "8f1c2d3e-4b5a-4c6d-9e7f-0a1b2c3d4e5f",
      "dns_server": "https://dns.quad9.net/dns-query",
      "start_urls": [
        "https://mail.example.com"
      ],
      "wayfern_config": {
        "os": "windows"
      }
    }'

Response

{
  "profile": {
    "id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
    "name": "client-1",
    "browser": "wayfern",
    "version": "152.0.7845.96",
    "release_type": "stable",
    "group_id": "75f2b42f-8c94-4291-8af7-7a3d79122507",
    "proxy_id": "c5617755-0709-4820-832a-6b97a0a24f3c",
    "vpn_id": null,
    "tags": [
      "client-1"
    ],
    "status_id": "8f1c2d3e-4b5a-4c6d-9e7f-0a1b2c3d4e5f",
    "extension_group_id": null,
    "dns_server": "https://dns.quad9.net/dns-query",
    "start_urls": [
      "https://mail.example.com"
    ],
    "is_running": false,
    "process_id": null,
    "last_launch": null,
    "launch_hook": null,
    "proxy_bypass_rules": [],
    "ephemeral": false,
    "temporary": false,
    "clear_on_close": false,
    "sync_mode": "Disabled",
    "cloud_sync_enabled": false,
    "host_os": "macos",
    "is_cross_os": true,
    "fingerprint_os": "windows"
  }
}

HTTP 402 when the fingerprint OS or launch arguments need Pro. HTTP 429 when the hourly limit on new fingerprints is reached; the body carries retryAfterSeconds.

GET /v1/profiles/{id} : Read one profile

Fetches one profile by ID.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/profiles/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "profile": {
    "id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
    "name": "Work",
    "browser": "wayfern",
    "version": "152.0.7845.96",
    "release_type": "stable",
    "group_id": "75f2b42f-8c94-4291-8af7-7a3d79122507",
    "proxy_id": "c5617755-0709-4820-832a-6b97a0a24f3c",
    "vpn_id": null,
    "tags": [
      "client-1"
    ],
    "status_id": "8f1c2d3e-4b5a-4c6d-9e7f-0a1b2c3d4e5f",
    "extension_group_id": null,
    "dns_server": null,
    "start_urls": [],
    "is_running": false,
    "process_id": null,
    "last_launch": 1779106515,
    "launch_hook": null,
    "proxy_bypass_rules": [],
    "ephemeral": false,
    "temporary": false,
    "clear_on_close": false,
    "sync_mode": "Disabled",
    "cloud_sync_enabled": false,
    "host_os": "macos",
    "is_cross_os": false,
    "fingerprint_os": null
  }
}

PUT /v1/profiles/{id} : Update a profile

Send only the fields to change; the rest keep their values. An empty string for proxy_id or vpn_id detaches it, and setting one clears the other. clear_on_close: true wipes browsing data (not extensions or bookmarks) when the browser closes; it is refused for ephemeral and password-protected profiles. The engine and the fingerprint operating system cannot change here.

Request

curl -sS -X PUT http://127.0.0.1:10108/v1/profiles/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "Work (renamed)",
      "proxy_id": "7b0e3c1a-5d8f-4e62-9a17-3c4d2e1f0a9b",
      "tags": [
        "client-1",
        "prod"
      ],
      "clear_on_close": true
    }'

Response

{
  "profile": {
    "id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
    "name": "Work (renamed)",
    "browser": "wayfern",
    "version": "152.0.7845.96",
    "release_type": "stable",
    "group_id": "75f2b42f-8c94-4291-8af7-7a3d79122507",
    "proxy_id": "7b0e3c1a-5d8f-4e62-9a17-3c4d2e1f0a9b",
    "vpn_id": null,
    "tags": [
      "client-1",
      "prod"
    ],
    "status_id": "8f1c2d3e-4b5a-4c6d-9e7f-0a1b2c3d4e5f",
    "extension_group_id": null,
    "dns_server": null,
    "start_urls": [],
    "is_running": false,
    "process_id": null,
    "last_launch": 1779106515,
    "launch_hook": null,
    "proxy_bypass_rules": [],
    "ephemeral": false,
    "temporary": false,
    "clear_on_close": true,
    "sync_mode": "Disabled",
    "cloud_sync_enabled": false,
    "host_os": "macos",
    "is_cross_os": false,
    "fingerprint_os": null
  }
}

DELETE /v1/profiles/{id} : Delete a profile

Moves the profile to the trash, where it can be restored in the app until it expires.

Request

curl -sS -X DELETE http://127.0.0.1:10108/v1/profiles/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

204 No Content

GET /v1/profiles/{id}/fingerprint : Read a profile's fingerprint

The device the profile shows to sites, as the JSON string the engine uses. null before the first launch of a profile whose device is made at launch.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/profiles/{id}/fingerprint \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "fingerprint": "{\"userAgent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) …\",\"platform\":\"Win32\",\"hardwareConcurrency\":8,\"timezone\":\"Europe/Berlin\",\"…\":\"…\"}"
}

HTTP 402 when the profile's fingerprint OS is not this computer's and the plan does not include cross-OS fingerprints.

POST /v1/profiles/{id}/run : Launch a profile

Pro

Starts the browser and returns its DevTools (CDP) port, a free port on 127.0.0.1 chosen at each launch. url opens a page (http, https or about:blank only); headless starts without a window. If the profile already runs, the call returns its current port with attached: true and does not restart it.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/run \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "url": "https://example.com",
      "headless": false
    }'

Response

{
  "profile_id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
  "remote_debugging_port": 53127,
  "headless": false,
  "attached": false
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required. HTTP 409 when another team member holds the profile. Counts against the hourly automation limit (HTTP 429 with Retry-After).

POST /v1/profiles/{id}/kill : Stop a running profile

Pro

Stops the profile's browser, on this computer or in its remote session.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/kill \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

204 No Content

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

POST /v1/profiles/{id}/open-url : Open a URL in a running profile

Pro

Opens the URL in a new tab of a running profile, on this computer or in its remote session. Only http, https and about:blank are accepted.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/open-url \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "url": "https://example.com/inbox"
    }'

Response

200 OK

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

POST /v1/profiles/batch/run : Launch profiles in bulk

Pro

Launches many profiles in one call. Each one is tried on its own and reported in results; one failure never stops the batch.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/batch/run \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "profile_ids": [
        "ce490dd0-02fe-4be5-b91d-fedec7550b28",
        "c20221fa-be36-485d-a4e1-5537254fa863"
      ],
      "url": "https://example.com",
      "headless": true
    }'

Response

{
  "results": [
    {
      "profile_id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
      "ok": true,
      "remote_debugging_port": 53127,
      "error": null
    },
    {
      "profile_id": "c20221fa-be36-485d-a4e1-5537254fa863",
      "ok": false,
      "remote_debugging_port": null,
      "error": "profile not found"
    }
  ]
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

POST /v1/profiles/batch/stop : Stop profiles in bulk

Pro

Stops many running profiles in one call. Each one is reported in results.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/batch/stop \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "profile_ids": [
        "ce490dd0-02fe-4be5-b91d-fedec7550b28",
        "c20221fa-be36-485d-a4e1-5537254fa863"
      ]
    }'

Response

{
  "results": [
    {
      "profile_id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
      "ok": true,
      "error": null
    },
    {
      "profile_id": "c20221fa-be36-485d-a4e1-5537254fa863",
      "ok": false,
      "error": "profile not found"
    }
  ]
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

POST /v1/profiles/bulk-edit : Edit many profiles

Applies one patch to every listed profile. Every value is checked first: when one is invalid, nothing changes. Patch fields: tags_add, tags_remove, note, status_id, group_id, extension_group_id, dns_blocklist, dns_server, proxy_bypass_rules, start_urls, launch_hook, clear_on_close, randomize_fingerprint_on_launch, webrtc_mode (auto, tcp_only or block), block_images, block_webgl, restore_session, and new_device: true to give each profile a new device at its next launch. null clears a value.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/bulk-edit \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "profile_ids": [
        "ce490dd0-02fe-4be5-b91d-fedec7550b28",
        "c20221fa-be36-485d-a4e1-5537254fa863"
      ],
      "patch": {
        "tags_add": [
          "warmed"
        ],
        "status_id": "8f1c2d3e-4b5a-4c6d-9e7f-0a1b2c3d4e5f",
        "webrtc_mode": "tcp_only",
        "new_device": false
      }
    }'

Response

{
  "changed": 2
}

POST /v1/profiles/distribute-proxies : Assign proxies to profiles

Applies explicit profile-to-proxy pairs, one profile at a time. A profile that cannot change (for example, it is running) is reported and never stops the rest.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/distribute-proxies \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "pairs": [
        {
          "profile_id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
          "proxy_id": "c5617755-0709-4820-832a-6b97a0a24f3c"
        },
        {
          "profile_id": "c20221fa-be36-485d-a4e1-5537254fa863",
          "proxy_id": "7b0e3c1a-5d8f-4e62-9a17-3c4d2e1f0a9b"
        }
      ]
    }'

Response

{
  "results": [
    {
      "profile_id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
      "proxy_id": "c5617755-0709-4820-832a-6b97a0a24f3c",
      "ok": true,
      "error": null
    },
    {
      "profile_id": "c20221fa-be36-485d-a4e1-5537254fa863",
      "proxy_id": "7b0e3c1a-5d8f-4e62-9a17-3c4d2e1f0a9b",
      "ok": false,
      "error": "{\"code\":\"PROFILE_RUNNING\"}"
    }
  ]
}

POST /v1/profiles/{id}/cloud-sync : Set a profile's sync mode

mode is Disabled, Regular or Encrypted. The answer says if the profile can now run on a remote machine: an Encrypted profile syncs but cannot run remotely, because the remote host cannot decrypt it.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/cloud-sync \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "mode": "Regular"
    }'

Response

{
  "profile_id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
  "mode": "Regular",
  "remote_launchable": true,
  "remote_blocked_reason": null
}

Needs a plan with cloud backup (Solo, Pro, Team or Enterprise): HTTP 402 otherwise. HTTP 409 while the profile runs.

GET /v1/profiles/import/detect : Detect importable profiles

Lists the profiles in the default folders of Chrome, Edge, Brave, Opera, Vivaldi, Arc, Yandex and the other Chromium browsers. Pass ?folder=/path to scan one location instead: a profile folder, a browser user-data folder, or a folder of exported profiles.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/profiles/import/detect \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "profiles": [
    {
      "browser": "chromium",
      "mapped_browser": "wayfern",
      "name": "Chrome/Chromium - Default Profile",
      "path": "/Users/me/Library/Application Support/Google/Chrome/Default",
      "description": "Default profile"
    }
  ],
  "total": 1
}

HTTP 404 when folder does not exist.

POST /v1/profiles/import : Import profiles in bulk

Imports browser profiles from folders (for example the paths from the detect route) as Wayfern profiles, with their cookies and passwords when the system unlocks the source browser's key. Each item is independent. group_id puts every imported profile in a group; duplicate_strategy is "rename" (default) or "skip". Each profile gets a new fingerprint.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/import \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "items": [
        {
          "source_path": "/Users/me/Library/Application Support/Google/Chrome/Default",
          "new_profile_name": "Old Chrome",
          "proxy_id": "c5617755-0709-4820-832a-6b97a0a24f3c"
        }
      ],
      "group_id": "75f2b42f-8c94-4291-8af7-7a3d79122507",
      "duplicate_strategy": "rename"
    }'

Response

{
  "imported_count": 1,
  "skipped_count": 0,
  "failed_count": 0,
  "results": [
    {
      "name": "Old Chrome",
      "source_path": "/Users/me/Library/Application Support/Google/Chrome/Default",
      "status": "imported",
      "profile_id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
      "error": null
    }
  ]
}

Free on every plan. A fingerprint os in wayfern_config other than this computer's needs Pro (HTTP 402). A Wayfern version must already be downloaded.

Cookies and storage

Import cookies, and move Local Storage, cookies and IndexedDB in and out as a Playwright storageState.

POST /v1/profiles/{id}/cookies/import : Import cookies

Writes cookies into a profile. content is a JSON array (Puppeteer or browser-extension style) or a Netscape cookies.txt; the format is detected. A cookie with the same name, domain and path replaces the stored one. Close the profile's browser first.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/cookies/import \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "content": "[{\"name\":\"sid\",\"value\":\"…\",\"domain\":\".example.com\",\"path\":\"/\",\"secure\":true,\"httpOnly\":true,\"expires\":1798761600}]"
    }'

Response

{
  "cookies_imported": 1,
  "cookies_replaced": 0,
  "errors": []
}

GET /v1/profiles/{id}/storage-state : Export storage state

Returns a Playwright storageState with each origin's Local Storage. Add ?include_cookies=true for the cookies and ?indexed_db=true for IndexedDB. IndexedDB needs the profile closed: it opens headless for a moment and no request leaves the computer.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/profiles/{id}/storage-state \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "cookies": [],
  "origins": [
    {
      "origin": "https://app.example.com",
      "localStorage": [
        {
          "name": "theme",
          "value": "dark"
        }
      ]
    }
  ]
}

POST /v1/profiles/{id}/storage-state : Import storage state

Takes a Playwright storageState. An item replaces the one of the same name in its origin; other items stay. Close the profile's browser first.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/storage-state \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "cookies": [],
      "origins": [
        {
          "origin": "https://app.example.com",
          "localStorage": [
            {
              "name": "theme",
              "value": "dark"
            }
          ]
        }
      ]
    }'

Response

{
  "origins": 1,
  "items": 1,
  "cookies_imported": 0,
  "cookies_replaced": 0,
  "cookie_errors": [],
  "indexed_db_records": 0
}

Remote sessions

Run a profile on a machine in Donut's fleet, drive it over CDP through the app, and read the remote-hour budget.

POST /v1/profiles/{id}/run-remote : Launch a profile on a remote machine

Pro

Starts the profile on a machine of its own operating system in Donut's fleet and returns a session ID. The session starts as provisioning; poll it until cdp_ready is true. The profile needs Regular cloud sync. url must be http, https or about:blank.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/run-remote \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "url": "https://example.com"
    }'

Response

{
  "profile_id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
  "session_id": "rs_7c1e9a40",
  "platform": "windows",
  "status": "provisioning"
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required. HTTP 400 when the profile does not sync, 409 when another session holds it, 503 when no machine of that system is free. Spends remote hours.

GET /v1/remote-sessions : List remote sessions

Pro

Every remote session of the signed-in account.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/remote-sessions \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "sessions": [
    {
      "session_id": "rs_7c1e9a40",
      "profile_id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
      "platform": "windows",
      "state": "live",
      "cdp_ready": true,
      "kind": "interactive",
      "started_at": "2026-10-14T10:02:11Z",
      "ended_at": null,
      "billed_seconds": null
    }
  ]
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required. HTTP 403 when this app is not signed in.

GET /v1/remote-sessions/{id} : Read a remote session

Pro

The current state of one session.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/remote-sessions/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "session_id": "rs_7c1e9a40",
  "profile_id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
  "platform": "windows",
  "state": "live",
  "cdp_ready": true,
  "started_at": "2026-10-14T10:02:11Z"
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

GET /v1/remote-sessions/{id}/cdp : Connect to a remote session over CDP

Pro

A WebSocket upgrade. The app relays the remote browser's DevTools protocol, so a client connects with the local API token and never needs the account credential: chromium.connectOverCDP({ endpointURL: "ws://127.0.0.1:10108/v1/remote-sessions/<id>/cdp", headers: { Authorization: "Bearer …" } }).

Request

curl -sS -X GET http://127.0.0.1:10108/v1/remote-sessions/{id}/cdp \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

101 Switching Protocols

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

DELETE /v1/remote-sessions/{id} : Stop a remote session

Pro

Ends the session. The remote machine uploads the profile's changes, and this computer downloads them before the profile opens here again.

Request

curl -sS -X DELETE http://127.0.0.1:10108/v1/remote-sessions/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "session_id": "rs_7c1e9a40",
  "status": "closed",
  "billed_seconds": 1840
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

GET /v1/remote-hours : Read the remote-hour budget

The hours granted, used and left in this billing period. On a team, the pool is shared: seats times per_seat_hours.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/remote-hours \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "granted_hours": 200,
  "used_hours": 37.5,
  "remaining_hours": 162.5,
  "period_start": "2026-10-01T00:00:00Z",
  "period_end": "2026-11-01T00:00:00Z",
  "scope": "user",
  "seats": 1,
  "per_seat_hours": 200
}

Agent

Read the page of a running profile and act on elements by role and name: the same engine the MCP browser tools use.

POST /v1/profiles/{id}/agent/perceive : Read the page

Pro

Returns the page of a running profile as an agent needs it: visible elements with role, accessible name, text, value, state and bounds, plus the readable text. On Wayfern 152 and later it injects no script into the page; engine says which path answered. Limits: max_bytes, max_nodes, budget_ms; viewport_only, include_text; pass the returned cursor to read the next part.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/agent/perceive \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "viewport_only": false,
      "include_text": true,
      "max_nodes": 400
    }'

Response

{
  "snapshotId": "snap_91c2",
  "nodes": [
    {
      "id": "n12",
      "frameId": "main",
      "role": "button",
      "name": "Sign in",
      "text": "Sign in",
      "x": 1040,
      "y": 24,
      "width": 88,
      "height": 36,
      "inViewport": true,
      "visible": true,
      "focused": false,
      "disabled": false
    }
  ],
  "frames": [
    {
      "id": "main",
      "url": "https://app.example.com/login"
    }
  ],
  "text": "Sign in to continue …",
  "truncated": false,
  "stats": {
    "totalNodes": 214,
    "returnedNodes": 214,
    "bytes": 18342,
    "elapsedMs": 38
  },
  "cursor": null,
  "engine": "wayfern"
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

POST /v1/profiles/{id}/agent/resolve-locator : Find one element

Pro

Resolves a locator (role, name, nameContains, text, textContains, attributes) to exactly one element. More than one match is an error that lists up to candidate_limit candidates.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/agent/resolve-locator \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "locator": {
        "role": "button",
        "name": "Sign in"
      }
    }'

Response

{
  "backendNodeId": 412,
  "matchCount": 1,
  "match": {
    "backendNodeId": 412,
    "role": "button",
    "name": "Sign in",
    "text": "Sign in",
    "signature": "button|Sign in",
    "attributes": [],
    "bounds": {
      "x": 1040,
      "y": 24,
      "width": 88,
      "height": 36
    }
  },
  "locator": {
    "role": "button",
    "name": "Sign in"
  },
  "engine": "wayfern"
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

POST /v1/profiles/{id}/agent/click : Click an element

Pro

Clicks the element a locator resolves to. button is left (default), middle, right, back or forward; click_count 2 or 3 for double and triple clicks. navigated says if a page load followed.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/agent/click \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "locator": {
        "role": "button",
        "name": "Sign in"
      },
      "button": "left",
      "click_count": 1
    }'

Response

{
  "clicked": true,
  "match": {
    "backendNodeId": 412,
    "role": "button",
    "name": "Sign in",
    "text": "Sign in",
    "signature": "button|Sign in",
    "attributes": [],
    "bounds": {
      "x": 1040,
      "y": 24,
      "width": 88,
      "height": 36
    }
  },
  "engine": "wayfern",
  "navigated": true
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

POST /v1/profiles/{id}/agent/type : Type into an element

Pro

Focuses the field with a real click and types one key at a time. On Wayfern 152 the keys follow the profile's own typing rhythm, with a few typos corrected when typos is true (default). clear_first empties the field first (default true). wpm applies on older engines only.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/agent/type \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "locator": {
        "role": "textbox",
        "name": "Email"
      },
      "text": "[email protected]",
      "clear_first": true,
      "typos": true
    }'

Response

{
  "typed": true,
  "characters": 17,
  "corrections": 1,
  "duration_ms": 4210,
  "engine": "wayfern",
  "match": {
    "backendNodeId": 412,
    "role": "textbox",
    "name": "Email",
    "text": "",
    "signature": "button|Sign in",
    "attributes": [],
    "bounds": {
      "x": 1040,
      "y": 24,
      "width": 88,
      "height": 36
    }
  }
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

POST /v1/profiles/{id}/agent/extract : Extract rows

Pro

Reads rows off the page without injecting a script: container matches each row, each field's locator is read inside the row (source is text, attribute or link), and an optional next_page locator is clicked to go on. A missing container is a result with stopReason no-container, not an error.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/agent/extract \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "container": {
        "role": "row"
      },
      "field_map": [
        {
          "key": "name",
          "locator": {
            "role": "cell"
          },
          "source": "text"
        },
        {
          "key": "profile",
          "locator": {
            "role": "link"
          },
          "source": "link"
        }
      ],
      "next_page": {
        "role": "button",
        "name": "Next"
      },
      "max_pages": 3
    }'

Response

{
  "rows": [
    {
      "index": 0,
      "page": 0,
      "values": {
        "name": "Ada Lovelace",
        "profile": "https://example.com/u/ada"
      }
    }
  ],
  "rowCount": 1,
  "pageCount": 1,
  "byteSize": 64,
  "truncated": false,
  "stopReason": "complete",
  "engine": "wayfern"
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

POST /v1/profiles/{id}/agent/pick : Let a person pick an element

Pro

Arms the element picker in the browser and waits for a person to click an element (timeout_ms, default 60000, at most 300000). Returns the smallest locator that resolves to it. Escape cancels.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/profiles/{id}/agent/pick \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "timeout_ms": 60000
    }'

Response

{
  "backendNodeId": 412,
  "locator": {
    "role": "button",
    "name": "Sign in"
  },
  "matchCount": 1,
  "node": {
    "backendNodeId": 412,
    "role": "button",
    "name": "Sign in",
    "text": "Sign in",
    "signature": "button|Sign in",
    "attributes": [],
    "bounds": {
      "x": 1040,
      "y": 24,
      "width": 88,
      "height": 36
    }
  },
  "engine": "wayfern"
}

Needs Pro, Team or Enterprise. Other plans get HTTP 402 Payment Required.

Groups

Named groups of profiles.

GET /v1/groups : List groups

Every group, with its profile count.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/groups \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

[
  {
    "id": "75f2b42f-8c94-4291-8af7-7a3d79122507",
    "name": "Work",
    "profile_count": 12
  },
  {
    "id": "bfda155d-0c04-4fc2-ab62-30651557a510",
    "name": "Personal",
    "profile_count": 3
  }
]

POST /v1/groups : Create a group

Creates a named group for profiles.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/groups \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "Client Acme"
    }'

Response

{
  "id": "bfda155d-0c04-4fc2-ab62-30651557a510",
  "name": "Client Acme",
  "profile_count": 0
}

GET /v1/groups/{id} : Read one group

Fetches one group by ID.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/groups/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "id": "bfda155d-0c04-4fc2-ab62-30651557a510",
  "name": "Personal",
  "profile_count": 3
}

PUT /v1/groups/{id} : Rename a group

Changes the group's name.

Request

curl -sS -X PUT http://127.0.0.1:10108/v1/groups/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "Client Acme 2026"
    }'

Response

{
  "id": "bfda155d-0c04-4fc2-ab62-30651557a510",
  "name": "Client Acme 2026",
  "profile_count": 8
}

DELETE /v1/groups/{id} : Delete a group

Deletes the group. Its profiles stay, with no group.

Request

curl -sS -X DELETE http://127.0.0.1:10108/v1/groups/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

204 No Content

Statuses

Labels for where each profile's account stands.

GET /v1/statuses : List statuses

Every profile status, in their order.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/statuses \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

[
  {
    "id": "8f1c2d3e-4b5a-4c6d-9e7f-0a1b2c3d4e5f",
    "name": "Active",
    "color": "#22c55e"
  },
  {
    "id": "a2b3c4d5-e6f7-4a8b-9c0d-1e2f3a4b5c6d",
    "name": "Banned",
    "color": "#ef4444"
  }
]

POST /v1/statuses : Create a status

Adds a status with a name and a hex color. Names must be unique; an account holds at most 100 statuses.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/statuses \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "Warming up",
      "color": "#f59e0b"
    }'

Response

{
  "id": "8f1c2d3e-4b5a-4c6d-9e7f-0a1b2c3d4e5f",
  "name": "Warming up",
  "color": "#f59e0b"
}

PUT /v1/statuses/{id} : Update a status

Replaces the status's name and color.

Request

curl -sS -X PUT http://127.0.0.1:10108/v1/statuses/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "Needs review",
      "color": "#3b82f6"
    }'

Response

{
  "id": "8f1c2d3e-4b5a-4c6d-9e7f-0a1b2c3d4e5f",
  "name": "Needs review",
  "color": "#3b82f6"
}

DELETE /v1/statuses/{id} : Delete a status

Deletes the status and takes it off every profile that had it.

Request

curl -sS -X DELETE http://127.0.0.1:10108/v1/statuses/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

204 No Content

Templates

Saved profile settings, and many profiles made from them in one call.

GET /v1/templates : List templates

Every profile template, in their order.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/templates \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

[
  {
    "id": "3a9d7c21-6e4b-4f0a-8c5d-1b2e3f4a5b6c",
    "name": "US shop accounts",
    "settings": {
      "name_prefix": "US shop",
      "proxy_ids": [
        "c5617755-0709-4820-832a-6b97a0a24f3c",
        "7b0e3c1a-5d8f-4e62-9a17-3c4d2e1f0a9b"
      ],
      "group_id": "75f2b42f-8c94-4291-8af7-7a3d79122507",
      "tags": [
        "shop"
      ],
      "dns_blocklist": "normal"
    },
    "position": 0,
    "updated_at": 1779106515
  }
]

POST /v1/templates : Create a template

Saves profile settings for reuse: name prefix, proxy or a list of proxies to spread in turn, VPN, group, tags, status, note, extension group, DNS, bypass rules, start pages, launch hook, ephemeral, clear-on-close, and wayfern_config without device fields. Every profile made from it gets its own device.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/templates \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "US shop accounts",
      "settings": {
        "name_prefix": "US shop",
        "proxy_ids": [
          "c5617755-0709-4820-832a-6b97a0a24f3c",
          "7b0e3c1a-5d8f-4e62-9a17-3c4d2e1f0a9b"
        ],
        "group_id": "75f2b42f-8c94-4291-8af7-7a3d79122507",
        "tags": [
          "shop"
        ],
        "dns_blocklist": "normal"
      }
    }'

Response

{
  "id": "3a9d7c21-6e4b-4f0a-8c5d-1b2e3f4a5b6c",
  "name": "US shop accounts",
  "settings": {
    "name_prefix": "US shop",
    "proxy_ids": [
      "c5617755-0709-4820-832a-6b97a0a24f3c",
      "7b0e3c1a-5d8f-4e62-9a17-3c4d2e1f0a9b"
    ],
    "group_id": "75f2b42f-8c94-4291-8af7-7a3d79122507",
    "tags": [
      "shop"
    ],
    "dns_blocklist": "normal"
  },
  "position": 0,
  "updated_at": 1779106515
}

PUT /v1/templates/{id} : Replace a template

Replaces the template's name and settings.

Request

curl -sS -X PUT http://127.0.0.1:10108/v1/templates/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "US shop accounts",
      "settings": {
        "tags": [
          "shop",
          "us"
        ]
      }
    }'

Response

{
  "id": "3a9d7c21-6e4b-4f0a-8c5d-1b2e3f4a5b6c",
  "name": "US shop accounts",
  "settings": {
    "tags": [
      "shop",
      "us"
    ]
  },
  "position": 0,
  "updated_at": 1779193000
}

DELETE /v1/templates/{id} : Delete a template

Deletes the template. Profiles made from it keep their settings.

Request

curl -sS -X DELETE http://127.0.0.1:10108/v1/templates/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

204 No Content

POST /v1/templates/{id}/profiles : Create profiles from a template

Makes count profiles (at most 100) with the newest downloaded Wayfern, each with its own device, named after name or the template's prefix with a number. When error is set, creation stopped early (for example at the hourly limit) and profiles lists what was made.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/templates/{id}/profiles \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "count": 3,
      "name": "US shop"
    }'

Response

{
  "profiles": [
    {
      "id": "ce490dd0-02fe-4be5-b91d-fedec7550b28",
      "name": "US shop 1",
      "browser": "wayfern",
      "version": "152.0.7845.96",
      "release_type": "stable",
      "group_id": "75f2b42f-8c94-4291-8af7-7a3d79122507",
      "proxy_id": "c5617755-0709-4820-832a-6b97a0a24f3c",
      "vpn_id": null,
      "tags": [
        "shop"
      ],
      "status_id": "8f1c2d3e-4b5a-4c6d-9e7f-0a1b2c3d4e5f",
      "extension_group_id": null,
      "dns_server": null,
      "start_urls": [],
      "is_running": false,
      "process_id": null,
      "last_launch": 1779106515,
      "launch_hook": null,
      "proxy_bypass_rules": [],
      "ephemeral": false,
      "temporary": false,
      "clear_on_close": false,
      "sync_mode": "Disabled",
      "cloud_sync_enabled": false,
      "host_os": "macos",
      "is_cross_os": false,
      "fingerprint_os": null
    }
  ],
  "error": null
}

Tags

Every tag used on your profiles.

GET /v1/tags : List tags

Every tag used on your profiles, without duplicates.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/tags \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

[
  "client-1",
  "prod",
  "personal"
]

Proxies

Stored proxies of every supported type. Attach one to a profile with proxy_id.

GET /v1/proxies : List proxies

Every stored proxy.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/proxies \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

[
  {
    "id": "c5617755-0709-4820-832a-6b97a0a24f3c",
    "name": "us-residential",
    "proxy_settings": {
      "proxy_type": "socks5",
      "host": "proxy.example.com",
      "port": 1080,
      "username": "user",
      "password": "secret"
    },
    "rotation_url": null
  }
]

POST /v1/proxies : Create a proxy

proxy_type is http, https, httpstls (HTTP over TLS), socks4, socks5, ss (Shadowsocks: the cipher goes in username), vless, vmess, trojan or hysteria2. For the last four, send the provider's share link in vless_uri. rotation_url is an optional link that gives the proxy a new IP.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/proxies \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "us-residential",
      "proxy_settings": {
        "proxy_type": "socks5",
        "host": "proxy.example.com",
        "port": 1080,
        "username": "user",
        "password": "secret"
      },
      "rotation_url": "https://provider.example/change-ip?key=…"
    }'

Response

{
  "id": "c5617755-0709-4820-832a-6b97a0a24f3c",
  "name": "us-residential",
  "proxy_settings": {
    "proxy_type": "socks5",
    "host": "proxy.example.com",
    "port": 1080,
    "username": "user",
    "password": "secret"
  },
  "rotation_url": "https://provider.example/change-ip?key=…"
}

POST /v1/proxies/import : Import proxies in bulk

format: "txt" takes one proxy per line: host:port, host:port:user:pass, user:pass@host:port or a URL such as socks5://user:pass@host:port. Proxies are named "{name_prefix} Proxy {n}". format: "json" takes a Donut proxy export. Duplicates are skipped.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/proxies/import \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "format": "txt",
      "content": "proxy1.example.com:8080:user:pass\nsocks5://user:[email protected]:1080",
      "name_prefix": "Migration"
    }'

Response

{
  "imported_count": 2,
  "skipped_count": 0,
  "errors": [],
  "proxies": [
    {
      "id": "c5617755-0709-4820-832a-6b97a0a24f3c",
      "name": "Migration Proxy 1",
      "proxy_settings": {
        "proxy_type": "http",
        "host": "proxy1.example.com",
        "port": 8080,
        "username": "user",
        "password": "pass"
      }
    },
    {
      "id": "7b0e3c1a-5d8f-4e62-9a17-3c4d2e1f0a9b",
      "name": "Migration Proxy 2",
      "proxy_settings": {
        "proxy_type": "socks5",
        "host": "proxy2.example.com",
        "port": 1080,
        "username": "user",
        "password": "pass"
      }
    }
  ]
}

HTTP 400 when the content holds no proxy or the format is unknown.

GET /v1/proxies/{id} : Read one proxy

Returns one stored proxy.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/proxies/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "id": "c5617755-0709-4820-832a-6b97a0a24f3c",
  "name": "us-residential",
  "proxy_settings": {
    "proxy_type": "socks5",
    "host": "proxy.example.com",
    "port": 1080,
    "username": "user",
    "password": "secret"
  },
  "rotation_url": null
}

PUT /v1/proxies/{id} : Update a proxy

Send a new name, new proxy_settings, or both.

Request

curl -sS -X PUT http://127.0.0.1:10108/v1/proxies/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "us-residential-2",
      "proxy_settings": {
        "proxy_type": "socks5",
        "host": "rotate.example.com",
        "port": 1080
      }
    }'

Response

{
  "id": "c5617755-0709-4820-832a-6b97a0a24f3c",
  "name": "us-residential-2",
  "proxy_settings": {
    "proxy_type": "socks5",
    "host": "rotate.example.com",
    "port": 1080,
    "username": null,
    "password": null
  },
  "rotation_url": null
}

DELETE /v1/proxies/{id} : Delete a proxy

Deletes the stored proxy. A cloud-managed proxy answers 400.

Request

curl -sS -X DELETE http://127.0.0.1:10108/v1/proxies/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

204 No Content

POST /v1/proxies/{id}/rotate : Change a proxy's IP

Calls the proxy's rotation_url. When the provider accepts, every profile behind the proxy moves to the new IP.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/proxies/{id}/rotate \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "proxy_id": "c5617755-0709-4820-832a-6b97a0a24f3c",
  "status": 200,
  "elapsed_ms": 812,
  "error": null
}

VPNs

WireGuard configurations. Attach one to a profile with vpn_id.

GET /v1/vpns : List VPNs

Every stored WireGuard configuration, without key material.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/vpns \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

[
  {
    "id": "22034ceb-7b76-456e-9cfe-a4b207751f8d",
    "name": "DE Frankfurt",
    "vpn_type": "WireGuard",
    "created_at": 1777203528,
    "last_used": null
  }
]

POST /v1/vpns : Create a VPN

config_data is the content of a WireGuard .conf file, with its line breaks. WireGuard is the only type.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/vpns \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "DE Frankfurt",
      "vpn_type": "WireGuard",
      "config_data": "[Interface]\nPrivateKey = <base64>\nAddress = 10.0.0.2/32\n\n[Peer]\nPublicKey = <base64>\nEndpoint = de.example.com:51820\nAllowedIPs = 0.0.0.0/0"
    }'

Response

{
  "id": "22034ceb-7b76-456e-9cfe-a4b207751f8d",
  "name": "DE Frankfurt",
  "vpn_type": "WireGuard",
  "created_at": 1779226206,
  "last_used": null
}

POST /v1/vpns/import : Import a VPN from a file

Like POST /v1/vpns, with the file content and its filename, which names the VPN when name is left out.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/vpns/import \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "filename": "de-frankfurt.conf",
      "name": "DE Frankfurt",
      "content": "[Interface]\nPrivateKey = <base64>\n…\n[Peer]\nPublicKey = <base64>\nEndpoint = de.example.com:51820"
    }'

Response

{
  "id": "22034ceb-7b76-456e-9cfe-a4b207751f8d",
  "name": "DE Frankfurt",
  "vpn_type": "WireGuard",
  "created_at": 1779226206,
  "last_used": null
}

GET /v1/vpns/{id} : Read one VPN

Metadata of one VPN. Key material is not included.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/vpns/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "id": "22034ceb-7b76-456e-9cfe-a4b207751f8d",
  "name": "DE Frankfurt",
  "vpn_type": "WireGuard",
  "created_at": 1777203528,
  "last_used": null
}

GET /v1/vpns/{id}/export : Export a VPN

Returns the decrypted WireGuard configuration, keys included. Treat the answer as a secret.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/vpns/{id}/export \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "id": "22034ceb-7b76-456e-9cfe-a4b207751f8d",
  "name": "DE Frankfurt",
  "vpn_type": "WireGuard",
  "config_data": "[Interface]\nPrivateKey = <base64>\n…"
}

PUT /v1/vpns/{id} : Rename a VPN

Only the name can change.

Request

curl -sS -X PUT http://127.0.0.1:10108/v1/vpns/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "DE Frankfurt (primary)"
    }'

Response

{
  "id": "22034ceb-7b76-456e-9cfe-a4b207751f8d",
  "name": "DE Frankfurt (primary)",
  "vpn_type": "WireGuard",
  "created_at": 1779226206,
  "last_used": null
}

DELETE /v1/vpns/{id} : Delete a VPN

Deletes the stored VPN configuration.

Request

curl -sS -X DELETE http://127.0.0.1:10108/v1/vpns/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

204 No Content

Extensions

Extensions and extension groups. Attach a group to a profile with extension_group_id.

GET /v1/extensions : List extensions

Every extension Donut manages.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/extensions \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

[
  {
    "id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
    "name": "uBlock Origin Lite",
    "manifest_name": "uBlock Origin Lite",
    "file_name": "ublock-origin-lite.crx",
    "file_type": "crx",
    "browser_compatibility": [
      "chromium"
    ],
    "created_at": 1779106515,
    "updated_at": 1779106515,
    "sync_enabled": false,
    "last_sync": null,
    "version": "2026.9.29",
    "source_kind": "archive",
    "linked_path": null
  }
]

POST /v1/extensions : Add an extension

Send the package as file_data_base64 with its file_name (.crx or .zip), or a folder in source_path. With a folder, link: true loads it in place at every launch (it never syncs); otherwise the folder is copied. The body may be up to 64 MB.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/extensions \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "uBlock Origin Lite",
      "file_name": "ublock-origin-lite.crx",
      "file_data_base64": "Q3IyNAMAAAA…"
    }'

Response

{
  "id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
  "name": "uBlock Origin Lite",
  "manifest_name": "uBlock Origin Lite",
  "file_name": "ublock-origin-lite.crx",
  "file_type": "crx",
  "browser_compatibility": [
    "chromium"
  ],
  "created_at": 1779106515,
  "updated_at": 1779106515,
  "sync_enabled": false,
  "last_sync": null,
  "version": "2026.9.29",
  "source_kind": "archive",
  "linked_path": null
}

GET /v1/extensions/{id} : Read one extension

One extension, with the metadata from its manifest.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/extensions/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
  "name": "uBlock Origin Lite",
  "manifest_name": "uBlock Origin Lite",
  "file_name": "ublock-origin-lite.crx",
  "file_type": "crx",
  "browser_compatibility": [
    "chromium"
  ],
  "created_at": 1779106515,
  "updated_at": 1779106515,
  "sync_enabled": false,
  "last_sync": null,
  "version": "2026.9.29",
  "source_kind": "archive",
  "linked_path": null
}

PUT /v1/extensions/{id} : Update an extension

Renames the extension, or replaces its package with the same fields as the create route.

Request

curl -sS -X PUT http://127.0.0.1:10108/v1/extensions/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "uBlock Origin Lite (team)"
    }'

Response

{
  "id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
  "name": "uBlock Origin Lite (team)",
  "manifest_name": "uBlock Origin Lite",
  "file_name": "ublock-origin-lite.crx",
  "file_type": "crx",
  "browser_compatibility": [
    "chromium"
  ],
  "created_at": 1779106515,
  "updated_at": 1779106515,
  "sync_enabled": false,
  "last_sync": null,
  "version": "2026.9.29",
  "source_kind": "archive",
  "linked_path": null
}

DELETE /v1/extensions/{id} : Delete an extension

Deletes the extension and takes it out of every group.

Request

curl -sS -X DELETE http://127.0.0.1:10108/v1/extensions/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

204 No Content

GET /v1/extension-groups : List extension groups

Every extension group. Assign one to a profile with extension_group_id on the profile routes.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/extension-groups \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

[
  {
    "id": "f0e1d2c3-b4a5-4968-8776-655443322110",
    "name": "Ads off",
    "extension_ids": [
      "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b"
    ],
    "created_at": 1779106515,
    "updated_at": 1779106515,
    "sync_enabled": false,
    "last_sync": null
  }
]

POST /v1/extension-groups : Create an extension group

Creates an empty group.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/extension-groups \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "Ads off"
    }'

Response

{
  "id": "f0e1d2c3-b4a5-4968-8776-655443322110",
  "name": "Ads off",
  "extension_ids": [],
  "created_at": 1779106515,
  "updated_at": 1779106515,
  "sync_enabled": false,
  "last_sync": null
}

GET /v1/extension-groups/{id} : Read one extension group

One group and its extension IDs.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/extension-groups/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "id": "f0e1d2c3-b4a5-4968-8776-655443322110",
  "name": "Ads off",
  "extension_ids": [
    "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b"
  ],
  "created_at": 1779106515,
  "updated_at": 1779106515,
  "sync_enabled": false,
  "last_sync": null
}

PUT /v1/extension-groups/{id} : Update an extension group

Renames the group, or replaces its whole membership with extension_ids. Leave extension_ids out to keep the members.

Request

curl -sS -X PUT http://127.0.0.1:10108/v1/extension-groups/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "Ads off",
      "extension_ids": [
        "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b"
      ]
    }'

Response

{
  "id": "f0e1d2c3-b4a5-4968-8776-655443322110",
  "name": "Ads off",
  "extension_ids": [
    "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b"
  ],
  "created_at": 1779106515,
  "updated_at": 1779106515,
  "sync_enabled": false,
  "last_sync": null
}

DELETE /v1/extension-groups/{id} : Delete an extension group

Deletes the group. Its extensions stay.

Request

curl -sS -X DELETE http://127.0.0.1:10108/v1/extension-groups/{id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

204 No Content

POST /v1/extension-groups/{id}/extensions/{extension_id} : Add an extension to a group

Adds one extension and returns the group.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/extension-groups/{id}/extensions/{extension_id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "id": "f0e1d2c3-b4a5-4968-8776-655443322110",
  "name": "Ads off",
  "extension_ids": [
    "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b"
  ],
  "created_at": 1779106515,
  "updated_at": 1779106515,
  "sync_enabled": false,
  "last_sync": null
}

DELETE /v1/extension-groups/{id}/extensions/{extension_id} : Remove an extension from a group

Removes one extension and returns the group.

Request

curl -sS -X DELETE http://127.0.0.1:10108/v1/extension-groups/{id}/extensions/{extension_id} \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

{
  "id": "f0e1d2c3-b4a5-4968-8776-655443322110",
  "name": "Ads off",
  "extension_ids": [],
  "created_at": 1779106515,
  "updated_at": 1779106515,
  "sync_enabled": false,
  "last_sync": null
}

Schedules, runs and remote-hour spend of the Cookie Bot, which warms profiles on remote machines.

Browsers

Download Wayfern versions and check which ones are installed.

POST /v1/browsers/download : Download a browser version

Downloads Wayfern at the given version and answers when it is on disk (or was already). HTTP 409 when the same version is already downloading.

Request

curl -sS -X POST http://127.0.0.1:10108/v1/browsers/download \
  -H "Authorization: Bearer $DONUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "browser": "wayfern",
      "version": "152.0.7845.96"
    }'

Response

{
  "browser": "wayfern",
  "version": "152.0.7845.96",
  "status": "downloaded"
}

GET /v1/browsers/{browser}/versions : List available versions

Versions you can download, newest first.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/browsers/{browser}/versions \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

[
  "152.0.7845.96",
  "152.0.7845.88"
]

GET /v1/browsers/{browser}/versions/{version}/downloaded : Check if a version is installed

true when that version is on disk.

Request

curl -sS -X GET http://127.0.0.1:10108/v1/browsers/{browser}/versions/{version}/downloaded \
  -H "Authorization: Bearer $DONUT_API_KEY"

Response

true

Checked against the app on .