Profiles API
List, create, edit, trash and restore profiles, save Quin Cloud profiles, and manage groups, proxies, runtimes and configurations through the Local API.
Trang này chưa có bản tiếng Việt. Nội dung tiếng Anh được hiển thị bên dưới.
Profile, group and proxy operations run through the same code as the Quin Camoufox app, so Trash,
quotas, proxy validation and Quin Cloud rules apply exactly as they do in the app. All paths are under
http://127.0.0.1:<port>/api/v1.
Profile ids
- Local profile: 8 letters and digits, for example
AbCd1234. - Quin Cloud profile: a UUID. A local id that belongs to a Cloud profile (its copy on this computer) resolves to that Cloud profile.
Either id works wherever a profile_id is accepted. Anything else is 400 invalid_profile_id.
The profile object
{
"id": "AbCd1234",
"name": "Shop EU 01",
"kind": "cloud",
"cloud_profile_id": "6f1c2a9e-3b7d-4c55-9a0e-2d8f1b6c4e77",
"group_id": null,
"tags": ["eu", "shop"],
"notes": null,
"platform": "windows",
"runtime_id": "…",
"status": "stopped",
"created_at": "2026-10-20T08:15:02",
"updated_at": "2026-11-01T17:40:11",
"last_used": "2026-11-01T17:40:11",
"proxy": {"type": "socks5", "server": "proxy.example.net:1080", "username": "user", "has_password": true, "country": "DE"},
"require_proxy": true,
"row_version": 7
}Profiles never include cookies, storage or a proxy password (has_password says whether one is set).
status is the state of the profile's browser on this computer.
List profiles
GET /profiles — scope profiles:read.
| Query | Type | Notes |
|---|---|---|
q | string | Name contains (case-insensitive), or the exact id |
group_id | string | |
tag | string | Profiles carrying this tag |
kind | local | cloud | local skips Quin Cloud entirely |
runtime_id | string | |
status | string | For example not_on_this_computer |
page | int ≥ 1 | Default 1 |
page_size | int 1–200 | Default 50 |
Results are sorted by name:
{"items": [ … ], "total": 42, "page": 1, "page_size": 50, "cloud_listing": "complete"}Quin Cloud profiles not yet on this computer are listed too (while Quin Cloud is reachable):
kind: "cloud", id = the Cloud id, workspace_id, status: "not_on_this_computer", and no local
fields. Opening one with POST /browsers/open downloads it first.
cloud_listing reports the Cloud part of the list: complete, or unavailable when Quin Cloud could
not be reached (only this computer's profiles are listed then). It is absent with kind=local or when
not signed in.
Get, create and edit
| Method & path | Scope | Body / notes |
|---|---|---|
GET /profiles/{id} | profiles:read | A Cloud profile without a copy here → 404 profile_not_on_this_computer |
POST /profiles | profiles:write | See below → 201 with the profile |
PATCH /profiles/{id} | profiles:write | {name?, group_id?, tags?, notes?}; omitted fields are unchanged, null clears |
POST /profiles/bulk | profiles:write | {"ids": [...], "set": {"group_id"?, "add_tags"?, "remove_tags"?}} → {"updated": n}; up to 1000 ids |
POST /profiles/{id}/clone-config | profiles:write | Optional {"name"} (default: the original name followed by "(copy)"). A new profile with the same configuration — never cookies, storage or the proxy's data → 201 |
POST /profiles body (unknown fields are refused):
| Field | Type | Notes |
|---|---|---|
name | string, 1–255 | Required |
group_id | string | |
tags | string[] | At most 20 |
notes | string | At most 1000 characters |
configuration_id | string | A library configuration, pattern ^[a-z]{3}-[0-9a-f]{12}$ (see GET /configurations) |
proxy_id | string | A proxy from GET /proxies |
platform | windows | macos | linux | The platform the profile's configuration targets (Quin Camoufox itself runs on Windows) |
Creating and cloning are refused with 403 local_mode_disabled when your administrator turned local
profiles off for the account.
curl -s -X POST http://127.0.0.1:50380/api/v1/profiles \
-H "Authorization: Bearer $QUIN_API_TOKEN" -H "Content-Type: application/json" \
-H "Idempotency-Key: create-shop-eu-02" \
--data '{"name": "Shop EU 02", "tags": ["eu"], "platform": "windows"}'Trash and restore
| Method & path | Scope | Notes |
|---|---|---|
POST /profiles/{id}/trash | profiles:delete | The normal 30-day Trash; a Quin Cloud profile goes to the Quin Cloud Trash |
POST /profiles/{id}/restore | profiles:delete | Restores from Trash |
There is no permanent-delete endpoint.
Quin Cloud state
| Method & path | Scope | Notes |
|---|---|---|
GET /profiles/{id}/revisions | profiles:read | Saved revisions of a Cloud profile |
GET /profiles/{id}/sync-status | profiles:read | {profile_id, state, message, head, dirty, last_sync_at} |
POST /profiles/{id}/sync | profiles:write | Save the Cloud profile now |
GET /profiles/{id}/runtime | profiles:read | The profile's pinned browser runtime |
The first three return 409 not_cloud_profile for a local profile.
Groups
| Method & path | Scope | Body |
|---|---|---|
GET /groups | profiles:read | → {"items": [...]} |
POST /groups | profiles:write | {"name", "description"?} → 201 |
PATCH /groups/{id} | profiles:write | {"name", "description"?} |
Proxies
Passwords are write-only: reads return has_password, never the password.
| Method & path | Scope | Body / notes |
|---|---|---|
GET /proxies | proxy:read | → {"items": [...]} |
POST /proxies | proxy:write | {name, type, server, username?, password?, country?} → 201 |
PATCH /proxies/{id} | proxy:write | Any of the same fields; unknown id → 404 proxy_not_found |
DELETE /proxies/{id} | proxy:write | Refused while the proxy is assigned |
POST /proxies/{id}/assign | proxy:write | {"profile_ids": [...]} (1–1000) |
POST /proxies/{id}/check | proxy:read | Tests the proxy now |
type is http, https, socks4 or socks5; server is 3–512 characters.
Runtimes and configurations
| Method & path | Scope | Notes |
|---|---|---|
GET /runtimes | settings:read | {"items": [...], "active", "default"} — installed browser runtimes |
GET /configurations | profiles:read | Library configurations; query q, os, page, page_size (≤ 200) |
SDK equivalents
client.profiles.list(kind="cloud", page_size=100)
for p in client.profiles.iter_all(tag="eu"):
print(p["id"], p["name"], p["status"])
client.profiles.update("AbCd1234", tags=["eu", "checked"])
client.profiles.trash("AbCd1234")const page = await client.profiles.list({ kind: "cloud", pageSize: 100 });
for await (const p of client.profiles.iterAll({ tag: "eu" })) console.log(p.id, p.name);