KasadaWorkTimeProxyLess
Generate the per-request x-kpsdk-cd proof-of-work for a Kasada session you already hold. Shows the request schema, an example and provider prices.
KasadaWorkTimeProxyLess generates the x-kpsdk-cd header for a Kasada session you already hold. Some sites require that header on every protected request after the session exists. It is a single-use proof-of-work computed from the x-kpsdk-st timestamp of the session, and it is separate from solving the challenge itself.
You need it only when the browser sends x-kpsdk-cd on the requests you reproduce, so check DevTools first. To generate x-kpsdk-cd from x-kpsdk-ct, x-kpsdk-st and x-kpsdk-fc instead, use KasadaCdToken.
Which Kasada task do I need?
| What you want | Task |
|---|---|
You have the p.js URL and want headers to replay, solved from the provider network | KasadaTokenProxyLess |
| You want a real-browser solve, from the provider network | KasadaCtBrowserTokenProxyLess |
| You want a real-browser solve through your own proxy | KasadaCtBrowserToken |
You fetched ips.js and post /tl yourself, and want the ct, dt, im and v headers | KasadaPayloadProxyLess |
You fetched ips.js and post /tl yourself, and want the ct and dt headers | KasadaTlPayloadProxyLess |
You hold a session and its x-kpsdk-ct, x-kpsdk-st and x-kpsdk-fc, and want x-kpsdk-cd | KasadaCdToken |
You hold x-kpsdk-st and the User-Agent, and want x-kpsdk-cd | KasadaWorkTimeProxyLess (this task) |
Find the inputs
| Field | Value |
|---|---|
domain | The hostname of the protected site, without scheme or path. |
userAgent | The User-Agent the Kasada session was opened with, identical to the one used for the /tl request. |
st | The x-kpsdk-st header of the /tl response. |
workTime | Optional. A timestamp to pregenerate the header for. |
You get st from the /tl request you made with KasadaTlPayloadProxyLess or KasadaPayloadProxyLess, or from the xKpsdkSt value of a KasadaTokenProxyLess solution.
Use the header
Send solution.payload as the x-kpsdk-cd header of the protected request. Generate a fresh one right before each protected request.
Generate a new value for every request
Reusing an x-kpsdk-cd fails. Generate a fresh one immediately before each protected request.
Check Provider stats for live success rates and solve times before you pick a provider.
Supported Providers
| Provider | Price per 1,000 | Routing |
|---|---|---|
EZCaptcha | $0.10 |
Request Schema
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in a workspace of the AnySolver dashboard. Example: |
task* | object | Yes | The task body. Required fields depend on the task type. See Tasks for per-task schemas. View task properties |
settings | object | No | Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes. View settings reference |
Task Object Properties
The task field accepts an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
domain* | string | Yes | Hostname of the protected site you generate the header for, without scheme or path. Example: |
userAgent* | string | Yes | User-Agent your Kasada session uses. Keep it identical to the one used for the Example: |
st* | string | Yes | The Example: |
workTime | string | No | Optional timestamp to pregenerate the header for. Example: |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "KasadaWorkTimeProxyLess",
"domain": "www.hyatt.com",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
"st": "1759149934586"
}
}Optional fields are not guaranteed across providers
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes |
Example: | |
taskId | string | No | Unique identifier returned when the task was created. Example: |
errorCode | No | Machine-readable error code. Example: | |
errorDescription | string | No | Human-readable error message with resolution hints. Example: |
cost | number | No | Actual cost charged for this task in USD. Example: |
taskType | No | The type of CAPTCHA task to solve. Example: | |
provider | No | Provider that handled this task. While processing, the provider currently solving it. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
payload* | string | Yes | Value for the Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |