What the solver does
Kasada gates a page or app with an ips.js challenge and a /fp probe. You forward the served challenge to us; we build the response Kasada expects and hand back a /tl payload plus its headers. You base64-decode the payload and POST the bytes, re-probe, and you are through. In the kasadaRequest envelope the profile is inferred from the version prefix (j- Chrome web · i- native iOS · a- Android) and site; in the flat shape you may set engine yourself (default chrome). The API never contacts the site: you fetch ips.js and send /tl yourself.
Authentication & base URL
Send your key as x-api-key: ksk_… on every request. The base URL is https://kasadaapi.catmouse.ai — not the raw ALB or API Gateway. Keys are scoped: usage, balance and metrics are all per-key.
No key yet? Get one → Sending the wrong or a missing key returns 401.
OpenAPI 3.1 Specification
We publish a machine-readable OpenAPI 3.1.0 JSON schema documenting the solve request (flat shape, kasadaRequest envelope and the PScript-only mode) and response, the cd route, the account, balance and billing routes, signup, tlOutcome and the status endpoint. Internal fleet and admin routes are deliberately omitted. You can import this definition directly into Postman, Insomnia, or code-generation pipelines (openapi-generator, fern, or stainless).
Supported engines
Six Kasada device profiles across three SDK families, selected by the engine value. You send the version the served ips.js declares — never a hard-coded stale pin —.
| Engine | Prefix | Surface / hosts | x-kpsdk-v | User-Agent |
|---|---|---|---|---|
| chrome | j- | Web (desktop Chrome). Default, and the fallback for an unknown engine value | j-1.2.x | Mozilla/5.0 (Windows NT 10.0; Win64; x64) … Chrome/… |
| snkrs | i- | Native iOS: SNKRS app (aliases snkrs-ios, ios-snkrs, ios) | i-1.18.x | SNKRS/8.5.0 (iOS 26.x; iPhone…) |
| fl | i- | Native iOS: Foot Locker app (aliases fl-ios, footsites, footsites-ios) | i-1.18.x | FootLocker/9.8.0 iOS/26.x |
| wkw | j- | iOS WKWebView (aliases accounts-wkw, accounts-wkwebview, wkwebview) | j-1.2.x | Mozilla/5.0 (iPhone; … Version/26.x … Safari/604.1) |
| whatnot-ios | i- | Native iOS: Whatnot app (aliases whatnot_ios, ios-whatnot, whatnot-native) | i-x | (app user agent) |
| android | a- | Native Android, for example Whatnot and Chipotle apps (aliases whatnot, chipotle, android-webview) | a-x | (app device token) |
The solve flow
Every engine follows the same five beats: probe /fp, pull ips.js, solve, submit /tl, re-probe. Where they differ — Client Hints, UA authority, cd source — is called out per engine below.
Desktop / mobile Chrome surfaces (nike, scheels, footlocker.*, arcteryx, ticketmaster…). Client Hints (sec-ch-ua*) are sent. A protected POST action (add-to-cart, checkout) additionally needs an x-kpsdk-cd proof-of-work, which the solver computes from the site /p.js.
Request envelope
Two body shapes are accepted: the flat shape (first example) and the production kasadaRequest envelope (second example). Both need your egress time zone: tz/tzOffset in the flat shape, Timezone/TimezoneOffset in the envelope. A solve without them is a 400 missing geo (the gate defaults on; whether production keeps it on is unverified). The body may itself be gzip/zstd/br-compressed.
| Field | Type | Req. | Notes |
|---|---|---|---|
| site | string | yes | The challenge host — e.g. www.scheels.com. Enough on its own to route the engine; you never send an internal host_src. |
| version | string | yes | The x-kpsdk-v the served ips.js declares (j-/i-/a-). DYNAMIC — send the current one, never a hard-coded stale pin. |
| ips | base64 | yes | The ips.js body as raw UTF-8 bytes, base64-encoded. Never charset-decode it first. |
| ipsUrl | string | rec. | The full ips.js URL. Recommended: it is a secondary source for the challenge host. |
| ctHeader | string | yes | The x-kpsdk-ct returned by the initial /fp 429. |
| userAgent | string | rec. | Your client UA. Optional — an absent value falls back to a fixed per-engine default baked into the solver (engine-coherent, not your device). Send your real UA: on native (i-/a-) surfaces it is the primary device-identity signal, since there is no window.location or Client Hints to derive one from instead. |
| language | string | no | Accept-Language value, e.g. en-US. |
| Timezone | string | yes | IANA tz, e.g. America/New_York, derived from a /locate lookup through the SAME proxy used for the solve. REQUIRED in production: KS_REQUIRE_GEO is fail-closed and defaults ON, so a request missing this returns 400 missing geo before any solving happens. Must match your egress geo, or the bag ships geo-incoherent and is silently declined downstream (EMPTY_R). |
| TimezoneOffset | number | yes | Minutes offset from UTC (JS getTimezoneOffset sign), e.g. 240. REQUIRED alongside Timezone under the same fail-closed gate — see above. Must be coherent with Timezone. |
Response
On success you get the /tl payload and the three headers to replay it with.
| Field | Type | Notes |
|---|---|---|
| success | bool | true when a bag was generated. |
| payload | base64 | The /tl body, base64-encoded. Base64-decode it and POST the decoded bytes as the raw body to the site /tl. |
| ctHeader | string | Send back as x-kpsdk-ct on /tl. |
| dtHeader | string | Send back as x-kpsdk-dt on /tl. |
| imHeader | string | x-kpsdk-im header value. |
| genPath | string | Which builder ran: offline-chrome / offline-ios / offline-android. |
| mapped | string | Probe coverage, e.g. 431/431 — how many challenge probes were resolved. |
| cost | number | USD charged for this solve. Present only on success AND only when the request is billed to an external customer key — absent (never 0) on first-party/internal or unattributed traffic. A refused or errored solve is never charged and carries no cost field. See Pricing & balance below for how the price is set. |
The headers, and who issues them
Five x-kpsdk-* headers appear in a full integration. Four of them make one round trip — the challenge issues a token, the solver hands it back, you replay it on /tl. The fifth, x-kpsdk-cd, does not travel that path at all and has its own rules.
| Header | Issued by | In our response | You send it on | What it is |
|---|---|---|---|---|
| x-kpsdk-ct | the /fp 429 | returned as ctHeader | x-kpsdk-ct on POST /tl | Client/session token. Pairs the payload you submit to the session the challenge opened. |
| x-kpsdk-dt | the solver | returned as dtHeader | x-kpsdk-dt on POST /tl | Device token derived from the bag we built. Always send it with the matching payload. |
| x-kpsdk-im | the solver | returned as imHeader | x-kpsdk-im on POST /tl | Integrity marker for the same submission. |
| x-kpsdk-r | the site | — | nothing — you receive it | What /tl answers with on success. Its presence is how you know the submission landed. |
| x-kpsdk-cd | the solver, per request | a fresh solve, every time | the protected POST only | Proof-of-work. Single-use and short-lived — see the section below. |
x-kpsdk-ct — the session / client token
This is Kasada's client token, and it is what ties a submitted payload to a session. The challenge issues it: your first request to a protected path comes back 429 carrying an x-kpsdk-ct response header.
Pass that value into POST /Solver/solve as ctHeader, and the solve response returns ctHeader back to you. Send it as the x-kpsdk-ct request header on your /tl POST, alongside the payload and x-kpsdk-dt. The payload is only valid for the session that token names — pairing a payload with a different ct fails.
Steps, end to end
- 1Fetch /fp from the site → 429 + x-kpsdk-ct. Then fetch the ips.js body — keep the raw UTF-8 bytes, never charset-decode.
- 2POST /Solver/solve with the flat body or the kasadaRequest envelope (fields below): site, the current version, base64 ips, ipsUrl, ctHeader, your userAgent/language, and Timezone/TimezoneOffset matching your egress geo.
- 3Take the response payload and base64-decode it and POST the decoded bytes as the raw body to the site /tl, sending the returned ctHeader/dtHeader back as x-kpsdk-ct/x-kpsdk-dt.
- 4A passing /tl returns 200 with an x-kpsdk-r token. Re-probe /fp after ~10s → 200 + body = solved.
- 5For a protected POST action (add-to-cart, checkout), call POST /Solver/cd with host, platform and ct immediately before the request and send the returned cd as x-kpsdk-cd.
- 6Egress matters: use a clean residential IP coherent with the site geo, and always send the current served version. A stale version or a mismatched tz/IP is declined (EMPTY_R) even with a correct payload.
Protected actions — x-kpsdk-cd
A gated POST action — add-to-cart, checkout, register — needs an x-kpsdk-cd proof-of-work in addition to a solved session. It is a per-action token, not a session token: unlike x-kpsdk-ct, it does not persist and it does not travel the /tl round trip. You get it from a separate call, POST /Solver/cd (body below), not from /Solver/solve; attach the returned cd to the protected request. The cd route needs the cd service on your key (403 service_not_enabled otherwise), has its own quota, supports platform web and ios (android is refused with 422 cd_platform_unproven), and answers 503 pjs_warming with Retry-After while the host's script is warming.
The seed differs by platform (from the repository notes; not all of it is exposed by the API):
| Engine | cd source | Seed |
|---|---|---|
| chrome web | /p.js | fuses ct, appends per-host lhw |
| native iOS | /mfc | ["tp-v2-input", workTime, id].join(", ") |
| native Android | /p.js | POST /Solver/cd refuses platform android (422 cd_platform_unproven) |
Endpoints
| Method | Path | Purpose |
|---|---|---|
| POST | /Solver/solve | Turn a fetched ips.js body + challenge into a passing /tl payload and headers. |
| POST | /Solver/cd | Generate a fresh x-kpsdk-cd proof-of-work for one protected action (platform web or ios). Alias: POST /cd. |
| GET | /Solver/getBalance | Your USD balance (balanceUsd, balanceMicroUsd, unlimited), plus the effective per-solve / per-1,000-solve price for your key. |
| GET | /v1/client/balance | Balance, rates and top-up info for the key. Also /api/v1/client/balance; accepts x-api-key or Authorization: Bearer. |
| GET | /key/status | Your key: USD balance, usage count, effective price, last-used, status. |
| GET | /key/metrics | Your usage over time + per-engine + per-host breakdown (?step=hour|day&from&to). |
| POST | /key/billing/create-checkout | Create a 0xProcessing hosted payment session for crypto top-ups (USDT, BTC, ETH); minimum 3 USD. |
| GET | /key/billing/wallets | Retrieve your permanent static deposit crypto addresses. |
| POST | /key/billing/create-wallet | Generate a dedicated static crypto deposit address (USDT on TRC20, Solana or Polygon). |
| POST | /key/billing/binance-pay | Create an instant zero-gas Binance Pay deposit order with QR code. |
| POST | /Solver/tlOutcome | Optional: report the outcome of your /tl request as telemetry. Always answers 202; the key header is optional. |
| POST | /signup | Request an API key (public). Records the request; a person issues the key. |
| GET | /status.json | Measured operator check results (public). |
| GET | /openapi.json | Formal OpenAPI 3.1 machine-readable specification in JSON format. |
Pricing & balance
Price is set per key, stored as an integer number of micro-USD per solve (1 USD = 1,000,000 micro-USD) so it never accumulates float error at solve counts in the millions. A key that carries no explicit override uses the platform default rate, which we quote when we issue the key (see the pricing page for the bands). Cost per solve and cost per 1,000 solves are the SAME stored number presented two ways; there is never a second price to disagree with the first.
| Field | Type | Notes |
|---|---|---|
| unlimited | bool | true only for a key that is explicitly unlimited. balanceUsd and balanceMicroUsd are null in that case — never -1 or a very large number. |
| balanceUsd | number|null | The spendable USD balance of the key, in dollars. Every solve is charged to it at the per-service price. null when unlimited. |
| balanceMicroUsd | integer|null | The same balance in micro-USD (1 USD = 1,000,000), exact. null when unlimited. |
| costPerSolveUsd | number | The effective price per solve for this key — its own override if one was set, else the platform default rate. |
| costPer1kUsd | number | The same price times 1,000. Always the same stored number presented two ways, never a second price. |
| usageCount | number | Solves counted on this key, lifetime. A history counter: nothing is charged or limited by it. |
Every successful /Solver/solve response also carries a cost field — the exact USD charged for that one solve, at the price in effect for the key at the moment it was charged. See Response above.
Errors
Statuses are dry and specific. Most non-2xx here mean egress, not payload. This is the common set you will actually hit integrating against /Solver/solve — not the complete status/cause matrix. For a case not listed here, check the response schema in the OpenAPI specification or write to support@catmouse.ai.
| Status | Meaning | Action |
|---|---|---|
| 400 | Malformed or incomplete request — empty ipsBody (the PScript-only mode needs ipsBody sent as an empty string, not omitted), missing Timezone/TimezoneOffset (geo is required by default), or a truncated ips upload | Fix the field the error text names — it says exactly which one. |
| 401 | Missing or invalid x-api-key | Check the key; contact us to (re)issue. |
| 403 | The key exists but is disabled or expired | Contact us to re-enable or renew it. |
| 402 | The USD balance on this key is used up (error insufficient_balance: top up your USD balance) — NOT a rate limit; no per-key request-rate throttle exists. | Top up your USD balance. |
| 422 | The ips.js body could not be parsed or decoded — a genuine solve refusal, not a guessed answer | Capture the exact ips.js and report it; the error text names the parse failure. |
| 500 | Solver task panicked (solver task panicked, or pscript_panic in PScript-only mode) | Retry; report if persistent. |
| 504 | The solve timed out (solve timed out; pscript_timeout in PScript-only mode) | Retry; report if persistent. |
| 503 | Fleet is shedding load (queue full / concurrency ceiling / deadline infeasible; pscript_busy in PScript-only mode) | Back off and retry — this is capacity, not a problem with your request. |
| 200 + empty /tl | The SITE declined the bag downstream — no x-kpsdk-r (EMPTY_R). Not a status from our API. | Use a clean residential egress IP coherent with the site geo; send the current served version. |
| 403 (site) | Cloudflare on the TARGET SITE blocked your direct /fp, ips.js or /tl call — not our API | Egress IP problem — rotate IP. |
API facts
- base url
- https://kasadaapi.catmouse.ai
- auth header
- x-api-key: your key, sent on every request. A missing or wrong key returns 401.
- format
- JSON request and response bodies (content-type: application/json).
- main endpoint
- POST /Solver/solve
- machine-readable spec
- openapi.json, OpenAPI 3.1.0, importable into Postman, Insomnia or a code generator.
- engines
- Six, across three SDK families; see Supported engines.
- support
- Contact page: support@catmouse.ai
Common API questions
How do I authenticate?
Send your key in the x-api-key header on every request to https://kasadaapi.catmouse.ai. Keys are scoped: usage, balance and metrics are all per key.
Where is the machine-readable spec?
At /openapi.json on this site, as OpenAPI 3.1.0. It lists the endpoint paths, request bodies, challenge parameters and error types.
What does a 200 with an empty /tl mean?
The target site declined the payload downstream, so no x-kpsdk-r came back (EMPTY_R). It is not a status from our API. The usual cause is the egress IP or a stale served version, so use a clean residential IP that matches the site geo and send the current served version.
What does a 503 mean?
The fleet is shedding load: the queue is full, the concurrency ceiling was hit, or the deadline could not be met. It is a capacity signal rather than a problem with your request, so back off and retry.
What does a 422 mean?
The ips.js body could not be parsed or decoded. It is a genuine solve refusal, not a guessed answer. Capture the exact ips.js and report it; the error text names the parse failure.
How is price stored?
Per key, as an integer number of micro-USD per solve (1 USD = 1,000,000 micro-USD), so counts in the millions never accumulate float error.
Last reviewed by Catmouse Engineering. Catmouse is intended for authorized testing and research on systems you own or have permission to test; see the acceptable use policy. Capability descriptions are not guarantees: measured results are on the status page.