n8n
Call the Quin Local API from n8n's HTTP Request node — requirements, credential setup, node settings, an example workflow and common errors.
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, plusrpa:executeandrpa:readto 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.
| Field | Value |
|---|---|
| Name | Authorization |
| Value | Bearer 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.
| Step | Method | URL (after the base URL) | JSON body |
|---|---|---|---|
| Status | GET | /status | – |
| List profiles | GET | /profiles?page=1&page_size=50 | – |
| Open browser | POST | /browsers/open | {"profile_id": "AbCd1234", "wait": true, "timeout_s": 300} |
| Action | POST | /browsers/{{ $('Open browser').item.json.session_id }}/actions | {"action": "navigate", "params": {"url": "https://example.com"}} |
| Read title | POST | same as Action | {"action": "title"} → result.title |
| Close | POST | /browsers/{{ $('Open browser').item.json.session_id }}/close | {"sync": true, "wait": true} |
| Run workflow | POST | /tasks | {"workflow_id": "…", "profile_ids": ["AbCd1234"], "inputs": {}} → task_id, job_id |
| Task status | GET | /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 }}-openon Open browser and{{ $execution.id }}-taskon 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"anderror.code. Check it with an IF node ({{ $json.outcome }}equalsok). - 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"); usecloud_profile_idwhen present, otherwiseid. 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:
- Poll task — GET
/tasks/{{ $('Run workflow').first().json.task_id }}. - Finished? — an IF node:
{{ ["COMPLETED", "FAILED", "CANCELLED", "PARTIAL", "MISSED", "SKIPPED", "RECOVERY_REQUIRED"].includes($json.state) }}is true. - 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):
{
"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
| HTTP | error.code | What to do |
|---|---|---|
| 401 | auth_required, invalid_token, token_expired, token_revoked | Fix or replace the credential |
| 403 | insufficient_scope (details.required) | Generate a token with the missing scope |
| 403 | sign_in_required, account_mismatch, local_api_disabled | Sign in to Quin with the token's account; ask your administrator about the Local API |
| 403 | origin_forbidden | A request carried an Origin header |
| 409 | session_busy | Another automation holds the browser (details.controlled_by) |
| 421 | bad_host | Call 127.0.0.1:<port> or localhost:<port> |
| 429 | rate_limited, too_many_failures | Slow down; honour Retry-After |
| connection refused | – | Quin is not running, or the Local API is off |