Skip to content

Cloud API

The cloud API manages everything stored in a workspace. It can’t launch a browser; use the local API for that.

Addresshttps://api.geksy.cc/v1
AuthenticationAuthorization: Bearer ak_…
FormatJSON UTF-8, snake_case fields, ISO 8601 UTC timestamps, UUID identifiers
Workspaceworkspace resources live under /workspaces/{ws_id}/…
SchemaGET /v1/openapi.json, interactive at /v1/docs

Workspace settings → API keys → Create. The key is shown only once, so save it. Requires the api.use permission and a plan with API access. You can create a key only after signing in to your account, not with another key.

Key permissions are its owner’s permissions in the workspace. You can narrow them when creating the key: select only the permissions you need (for example, profile.launch and profile.edit for a launch script). A key can’t have more permissions than its owner. If the owner loses permissions or is removed from the workspace, the key is affected immediately: its permissions shrink, and on removal the owner’s keys are deleted.

Expiry: from 1 to 365 days, or no expiry. An expired key gets 401 api_key_expired.

What a key can’t access: other workspaces (404), account management (/me/*), creating workspaces, and invites (403 api_key_not_allowed).

Plan limits

  • Number of keys per workspace: the api_keys limit (402 plan_limit_reached).
  • Requests per minute per key: the api_rpm limit. Responses include the X-RateLimit-Limit and X-RateLimit-Remaining headers (the window is one minute from the first request). When exceeded, you get 429 rate_limited with a Retry-After header and X-RateLimit-Remaining: 0: wait the given number of seconds.
  • If the plan has no API access (api_rpm = 0), you get 403 plan_feature_unavailable.
  • Concurrent launches: the max_running limit (how many workspace profiles are open at the same time; null — unlimited). Over it, a launch gets 402 plan_limit_reached with params.reason: "concurrency", params.running, params.action (buy_slots / upgrade) and a Retry-After header. How many are running now — usage.max_running in GET /workspaces/{ws}/usage.
  • If the subscription has ended, write requests get 402 subscription_inactive; reads still work.

Keys are listed in workspace settings: name, key prefix (ak_AbC1de…), permissions, expiry, and last use. Actions made with a key appear in the audit log marked “API”.

The workspace ID is shown in the web app’s address bar and in workspace settings.

  • 429: wait Retry-After seconds and retry.
  • 503 unavailable: retry with increasing delays.
  • 401 (api_key_expired, unauthorized): don’t retry; you need a new key.

To avoid creating an object twice after a network drop or timeout, send an Idempotency-Key header with creating POST requests — a unique value per “create” intent (we recommend a UUID; 1–64 printable ASCII characters, no spaces) — and retry the request with the same key:

Окно терминала
curl -X POST "https://api.geksy.cc/v1/workspaces/$WS/profiles" \
-H "Authorization: Bearer $GEKSY_KEY" \
-H "Idempotency-Key: 7d3f9c1e-2b4a-4f0e-9a6d-1c5b8e2f4a90" \
-H "Content-Type: application/json" \
-d '{"name": "Shop 1"}'

A key is kept for 24 hours, separately for each user (or API key) and path.

Retry with the same keyResponse
same body, first request succeededthe same response with an Idempotent-Replayed: true header; no second object is created
different body422 idempotency_key_reused
first request still in progress409 idempotency_in_progress: retry a bit later
first request failedthe request runs again

A malformed key gets 400 bad_request. The header is accepted by POST /workspaces and, within a workspace, by creating profiles (including bulk creation and import), proxies (and import), invitations, transfers, API keys, roles, folders, statuses, and extensions, as well as checkout and balance top-up. Other routes ignore it.

Окно терминала
curl -H "Authorization: Bearer $GEKSY_KEY" \
"https://api.geksy.cc/v1/workspaces/$WS/profiles?tag=ads&limit=100"
{"items": [{"id": "…", "number": 7, "name": "Ads DE 14", "tags": ["ads"], "proxy_id": "…", "rev": 5}],
"next_cursor": "eyJ…"}
  • Pagination is cursor-based: ?limit=100&cursor=… → {"items": […], "next_cursor": "…" | null}; limit up to 1000.
  • Safe edits. Mutable objects have a rev field. Pass it in PATCH: if the object has already changed, you get 409 rev_conflict with the current version in details.current.
  • Errors share a single format; see Error codes.
  • Every response includes an X-Request-Id header. Include it when you contact support.
ResourcePath
Profiles/workspaces/{ws}/profiles: list with filters, create, edit, trash, bulk operations, import and export, cookies
Bulk creationPOST /workspaces/{ws}/profiles/batch-create
FingerprintPATCH …/profiles/{id} (fingerprint field), POST …/profiles/{id}/fingerprint/regenerate
Proxies/workspaces/{ws}/proxies: create, import a list, check, rotate IP
Folders, tags, own profile fields/workspaces/{ws}/folders, /tags, /profile-fields (values — fields of a profile; filter where, sort sort=field:<name>)
Extensions/workspaces/{ws}/extensions
Members and roles/workspaces/{ws}/members, /roles, /invites
Audit logGET /workspaces/{ws}/audit
Plan and usageGET /workspaces/{ws}/usage

See the OpenAPI schema for the full list of fields and parameters.

The WebSocket wss://app.geksy.cc/ws sends workspace changes: a profile was created or edited, opened or closed, a proxy was checked, a member was added, and so on.

→ {"type": "auth", "token": "ak_…"}
← {"type": "ready", "user_id": "…", "device_id": "…"}
→ {"type": "subscribe", "workspace_id": "…", "since": 0}
← {"type": "event", "seq": 18241, "event": "profile.lease", "data": {"profile_id": "…", "lease": {…}}}

Send {"type": "ping"} every 25 seconds. After reconnecting, pass the last seq you received in since, and missed events are sent again. If too many were missed, you get resync: reload the data through REST.