n8n

Call the Quin Local API from n8n's HTTP Request node — requirements, credential setup, node settings, an example workflow and common errors.

SDKs and toolsApplies to Quin Camoufox 0.7Updated 2 November 2026

n8n can drive Quin Camoufox through its generic HTTP Request node: list profiles, open a browser, run actions, close and save, and run RPA Plus workflows. There is no Quin node for n8n; this is plain HTTP against the Local API.

This setup was run end to end with n8n 2.43.7 (on Node 24) on the same Windows computer as the installed Quin Camoufox 0.7.0-rc.3 and again with 0.7.0-rc.4 and 0.7.0-rc.5: status, profile list, open with an idempotency key, navigate, read the title, close and sync, run an RPA task and poll it until it finished.

Requirements

  • Quin Camoufox is running and signed in, with Settings → Local API enabled.
  • A token generated for n8n with only the scopes the workflow needs, for example profiles:read, browser:open, browser:close, browser:control, plus rpa:execute and rpa:read to run and follow tasks.
  • The base URL: http://127.0.0.1:50380/api/v1 (use your port).

1. Create the credential

In n8n: Credentials → New → Header Auth.

FieldValue
NameAuthorization
ValueBearer qlk_xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Call it Quin Local API. The token stays in n8n's encrypted credential store; never paste it into node parameters or expressions.

2. Configure the HTTP Request nodes

On every node: Authentication = Generic Credential Type, Generic Auth Type = Header Auth, credential Quin Local API.

StepMethodURL (after the base URL)JSON body
StatusGET/status–
List profilesGET/profiles?page=1&page_size=50–
Open browserPOST/browsers/open{"profile_id": "AbCd1234", "wait": true, "timeout_s": 300}
ActionPOST/browsers/{{ $('Open browser').item.json.session_id }}/actions{"action": "navigate", "params": {"url": "https://example.com"}}
Read titlePOSTsame as Action{"action": "title"} → result.title
ClosePOST/browsers/{{ $('Open browser').item.json.session_id }}/close{"sync": true, "wait": true}
Run workflowPOST/tasks{"workflow_id": "…", "profile_ids": ["AbCd1234"], "inputs": {}} → task_id, job_id
Task statusGET/tasks/{{ $('Run workflow').first().json.task_id }}–

Settings that matter:

  • Options → Timeout: at least 330000 ms on Open browser and 930000 ms on Close (a Quin Cloud profile's close returns only after the save is SYNCED).
  • Idempotency: add the header Idempotency-Key = {{ $execution.id }}-open on Open browser and {{ $execution.id }}-task on Run workflow, so a retried execution does not open a second browser or start a second task.
  • Action results: a failed action still returns HTTP 200 with "outcome": "error" and error.code. Check it with an IF node ({{ $json.outcome }} equals ok).
  • Quin Cloud profiles: the profile list also contains the account's Cloud profiles that are not on this computer yet (status: "not_on_this_computer"); use cloud_profile_id when present, otherwise id. Opening one downloads it first.

3. Poll a task

The HTTP Request node's built-in pagination stops after several identical answers, which a running task gives. Poll with a loop instead:

  1. Poll task — GET /tasks/{{ $('Run workflow').first().json.task_id }}.
  2. Finished? — an IF node: {{ ["COMPLETED", "FAILED", "CANCELLED", "PARTIAL", "MISSED", "SKIPPED", "RECOVERY_REQUIRED"].includes($json.state) }} is true.
  3. false → Wait 2 seconds → back to Poll task; true → continue with the result (runs[].state, runs[].error_code).

4. Example node JSON

Paste into the n8n canvas, then re-select the Quin Local API credential on each node (n8n links credentials by id):

JSON
{
  "nodes": [
    {
      "name": "Open browser",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [0, 0],
      "parameters": {
        "method": "POST",
        "url": "http://127.0.0.1:50380/api/v1/browsers/open",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": { "parameters": [{ "name": "Idempotency-Key", "value": "={{ $execution.id }}-open" }] },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"profile_id\": \"AbCd1234\", \"wait\": true, \"timeout_s\": 300}",
        "options": { "timeout": 330000 }
      },
      "credentials": { "httpHeaderAuth": { "name": "Quin Local API" } }
    },
    {
      "name": "Navigate",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [220, 0],
      "parameters": {
        "method": "POST",
        "url": "=http://127.0.0.1:50380/api/v1/browsers/{{ $('Open browser').item.json.session_id }}/actions",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"action\": \"navigate\", \"params\": {\"url\": \"https://example.com\", \"wait_until\": \"load\"}}",
        "options": { "timeout": 135000 }
      },
      "credentials": { "httpHeaderAuth": { "name": "Quin Local API" } }
    },
    {
      "name": "Close",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [440, 0],
      "parameters": {
        "method": "POST",
        "url": "=http://127.0.0.1:50380/api/v1/browsers/{{ $('Open browser').item.json.session_id }}/close",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"sync\": true, \"wait\": true}",
        "options": { "timeout": 930000 }
      },
      "credentials": { "httpHeaderAuth": { "name": "Quin Local API" } }
    }
  ],
  "connections": {
    "Open browser": { "main": [[{ "node": "Navigate", "type": "main", "index": 0 }]] },
    "Navigate": { "main": [[{ "node": "Close", "type": "main", "index": 0 }]] }
  }
}

A complete importable workflow (status → list profiles → find a profile → open → navigate → read title → close and sync → run an RPA task → poll until finished → result) ships with the SDK examples as n8n_quin_workflow.json. It holds no token: import it, create the credential, select it on every HTTP Request node, and replace PUT-YOUR-PROFILE-ID-HERE, PUT-YOUR-QUIN-WORKFLOW-ID-HERE, the port and the example URL.

Errors you may see

HTTPerror.codeWhat to do
401auth_required, invalid_token, token_expired, token_revokedFix or replace the credential
403insufficient_scope (details.required)Generate a token with the missing scope
403sign_in_required, account_mismatch, local_api_disabledSign in to Quin with the token's account; ask your administrator about the Local API
403origin_forbiddenA request carried an Origin header
409session_busyAnother automation holds the browser (details.controlled_by)
421bad_hostCall 127.0.0.1:<port> or localhost:<port>
429rate_limited, too_many_failuresSlow down; honour Retry-After
connection refused–Quin is not running, or the Local API is off