KasadaCdToken
Generate a fresh x-kpsdk-cd proof-of-work header from the x-kpsdk-ct, x-kpsdk-st and x-kpsdk-fc values of a Kasada session you hold.
KasadaCdToken generates the x-kpsdk-cd header for a Kasada session you already hold, without solving the challenge again. The header is a proof-of-work for a single request.
To generate x-kpsdk-cd from x-kpsdk-st and the User-Agent for any domain, use KasadaWorkTimeProxyLess. To solve the session itself, use KasadaCtBrowserToken.
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 (this task) |
You hold x-kpsdk-st and the User-Agent, and want x-kpsdk-cd | KasadaWorkTimeProxyLess |
Find the inputs
Collect these values while you solve the session yourself. Send the protected page as websiteURL.
| Field | Value |
|---|---|
xKpsdkCt | The latest x-kpsdk-ct: the one from the /tl response, or a newer one that a later response returned. Only the most recent value works. |
xKpsdkSt | The x-kpsdk-st header of the /tl response. It does not change during the session. |
xKpsdkFc | The x-kpsdk-fc header of the response to /149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/mfc. Copy it from the DevTools Network tab. |
site | The identifier of the target site. Only the sites listed in the schema are supported. |
Use the header
Send solution.xKpsdkCd as the x-kpsdk-cd header of the next protected request. Call the task right before each protected request, and pass the newest x-kpsdk-ct each time.
Generate a new value for every request
Reusing an x-kpsdk-cd fails. Call the task immediately before each protected request, and pass the newest
x-kpsdk-ct each time.
Check Provider stats for live success rates and solve times before you pick a provider.
Supported Providers
| Provider | Price per 1,000 | Routing |
|---|---|---|
RiskBypass | $1.00 | |
VoidCaptcha | $0.20 |
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 | ||
websiteURL* | URL | Yes | Full URL of the page where the CAPTCHA is displayed. Example: |
xKpsdkSt* | string | Yes | The Example: |
xKpsdkCt* | string | Yes | The latest Example: |
xKpsdkFc* | string | Yes | The Example: |
site* | Yes | Identifier of the target site, which selects its Kasada configuration. Only the listed sites are supported. Example: |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "KasadaCdToken",
"websiteURL": "https://www.arcteryx.com/",
"xKpsdkSt": "1756879688265",
"xKpsdkCt": "0b3jqi5b3LjWE63t…",
"xKpsdkFc": "eyJmZWF0dXJlRmxhZ3Mi…",
"site": "arcteryx"
}
}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 |
|---|---|---|---|
xKpsdkCd* | string | Yes | The Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |