Cloud API
The cloud API manages everything stored in a workspace. It can’t launch a browser; use the local API for that.
Basics
Section titled “Basics”| Address | https://api.geksy.cc/v1 |
| Authentication | Authorization: Bearer ak_… |
| Format | JSON UTF-8, snake_case fields, ISO 8601 UTC timestamps, UUID identifiers |
| Workspace | workspace resources live under /workspaces/{ws_id}/… |
| Schema | GET /v1/openapi.json, interactive at /v1/docs |
API key
Section titled “API key”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_keyslimit (402 plan_limit_reached). - Requests per minute per key: the
api_rpmlimit. Responses include theX-RateLimit-LimitandX-RateLimit-Remainingheaders (the window is one minute from the first request). When exceeded, you get429 rate_limitedwith aRetry-Afterheader andX-RateLimit-Remaining: 0: wait the given number of seconds. - If the plan has no API access (
api_rpm= 0), you get403 plan_feature_unavailable. - Concurrent launches: the
max_runninglimit (how many workspace profiles are open at the same time;null— unlimited). Over it, a launch gets402 plan_limit_reachedwithparams.reason: "concurrency",params.running,params.action(buy_slots/upgrade) and aRetry-Afterheader. How many are running now —usage.max_runninginGET /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.
Retries and reliability
Section titled “Retries and reliability”429: waitRetry-Afterseconds and retry.503 unavailable: retry with increasing delays.401(api_key_expired,unauthorized): don’t retry; you need a new key.
Idempotency
Section titled “Idempotency”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 key | Response |
|---|---|
| same body, first request succeeded | the same response with an Idempotent-Replayed: true header; no second object is created |
| different body | 422 idempotency_key_reused |
| first request still in progress | 409 idempotency_in_progress: retry a bit later |
| first request failed | the 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.
Example
Section titled “Example”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…"}Conventions
Section titled “Conventions”- Pagination is cursor-based:
?limit=100&cursor=…→{"items": […], "next_cursor": "…" | null};limitup to 1000. - Safe edits. Mutable objects have a
revfield. Pass it inPATCH: if the object has already changed, you get409 rev_conflictwith the current version indetails.current. - Errors share a single format; see Error codes.
- Every response includes an
X-Request-Idheader. Include it when you contact support.
Main resources
Section titled “Main resources”| Resource | Path |
|---|---|
| Profiles | /workspaces/{ws}/profiles: list with filters, create, edit, trash, bulk operations, import and export, cookies |
| Bulk creation | POST /workspaces/{ws}/profiles/batch-create |
| Fingerprint | PATCH …/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 log | GET /workspaces/{ws}/audit |
| Plan and usage | GET /workspaces/{ws}/usage |
See the OpenAPI schema for the full list of fields and parameters.
Real-time events
Section titled “Real-time events”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.