Skip to content
capzy
Kasada

Kasada CD tokens

Mint a fresh, single-use x-kpsdk-cd from your own live Kasada session. You send the session values; we run the proof-of-work and hand back a token to attach to your next request.

Pay per solve Get your k free

Most integrations do not need this. The Kasada solver already returns x-kpsdk-ct and a ready x-kpsdk-cd in a single call. Use this generator only when you run your own long-lived Kasada session and want to mint many fresh CDs from one session without launching a browser each time.

terminal
curl -s https://api.capzy.ai/createTask \
  -H 'Content-Type: application/json' \
  -d '{
    "clientKey": "capzy_YOUR_API_KEY",
    "task": {
      "type": "KasadaCaptchaCDTask",
      "k":    "<your site k, from get_k.py>",
      "ct":   "<x-kpsdk-ct from your session>",
      "st":   "<x-kpsdk-st from your session>",
      "fc":   "<x-kpsdk-fc, optional>"
    }
  }'

# "k" is your site's proof-of-work constant. Get it once from the
# "Get your values" tab, then reuse it. getTaskResult returns
# { "solution": { "x-kpsdk-cd": "..." } }

Using the result

The CD is single-use and valid roughly 5 seconds from when it is minted. Generate it right before the request you need it for, and reuse the same session token and User-Agent across the session that minted it.

terminal
# The CD is single-use and valid ~5 seconds from when it was minted.
# Attach it (with your session's ct) to the protected request:
curl 'https://www.example.com/<protected-endpoint>' \
  -H "x-kpsdk-ct: $CT" \
  -H "x-kpsdk-cd: $CD"
Step 1

Send session values

Post your site plus the ct / st (and fc when present) from your live Kasada session.

Step 2

We run the proof-of-work

Capzy computes the chained-hash proof natively, in milliseconds, no browser.

Step 3

Attach the CD

Add x-kpsdk-cd (with your x-kpsdk-ct) to the protected request within ~5 seconds.

Start solving Kasada

Free credits on signup. Pay only for successful solves.