NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Glossary

API key: the credential your code sends

An API key is a secret string a service issues to you, which your code includes with each request so the service knows who is calling and which account to bill.

What a key does

A key combines identification and authorization in one value. Anyone who holds it can act as you: spend your balance, read your data, hit your limits. Treat it like a password that a program types for you. Unlike a password, it is often long lived and copied into many places, which is exactly why keys leak.

How keys travel

Services accept keys in different places: an Authorization: Bearer ... header, a custom header such as X-API-Key, a JSON body field or, in older designs, a query parameter. GateSolver's JSON API takes it as clientKey in the POST body; the in.php compatible format takes it as key. Body and header placement is preferable to the URL, because URLs end up in logs and browser history.

Keeping keys out of code

  • Read the key from an environment variable or a secret manager at run time.
  • Add local config files that hold keys to .gitignore and enable secret scanning on your repository host.
  • Never embed a key in front end JavaScript, a mobile app bundle or a browser extension; anything shipped to users can be read.
  • Mask keys in logs. Log the last four characters if you need to tell keys apart.
  • Do not paste keys into AI chats or prompts; give tools the key through configuration instead (see MCP).
import os, sys

GS_KEY = os.environ.get("GATESOLVER_KEY")
if not GS_KEY:
    sys.exit("set GATESOLVER_KEY before running")
print("using key ending", GS_KEY[-4:])

Rotation

Rotation means replacing a key with a new one, on a schedule or after a suspected leak. Services differ: some allow several keys at once so you can roll over gradually; others hold a single key. GateSolver has one API key per account, and creating a new key replaces the old one immediately, so plan a rotation as a short, coordinated change: generate the new key, update the secret store, restart workers. Keeping the key in one place (a single secret shared by all workers, as described under containerized scraping) makes that a one minute job.

When a key leaks

Act in this order: create a new key (which disables the old one), deploy it, then look at usage for the period it was exposed. On GateSolver, someone holding a leaked key could create tasks that draw on your balance, so compare getBalance with what your own jobs should have spent. The account itself is accessed with your account token, which is separate from the API key and cannot be recovered if lost, so store that token in a password manager and never in code.

Keys and rate limits

Limits are usually counted per key. GateSolver allows 600 requests per minute per key, with no cap on concurrent tasks. If many workers share one key, they share that budget, so polling intervals matter (see concurrency). A wrong or disabled key returns ERROR_KEY_DENIED_ACCESS, which you should treat as a configuration error, not something to retry.

Common questions

Where does GateSolver expect the API key?

In the clientKey field of the JSON body, or as the key parameter in the in.php compatible format.

Can I have two GateSolver keys at once?

No. Each account has one key, and creating a new key replaces the old one immediately.

Is it safe to put an API key in front end code?

No. Anything shipped to a browser or app can be read by users, so keep keys on the server side.

What error means my key is wrong?

ERROR_KEY_DENIED_ACCESS. Fix the configuration rather than retrying.

What is the difference between the API key and the account token?

The API key authorizes API calls; the account token signs you in to the account and cannot be recovered if lost.

Keep reading