On this page

Akamai SEC-CPT

Solves an Akamai SEC-CPT proof-of-work challenge and returns the payload with the wait it still owes.

Scope akamai:seccpt

PriceSelf-serve
$1.00per 1,000 successful solves
POSThttps://api.cyxkit.app/v1/akamai/sec-cpt
Your key
Your key goes in the X-API-Key header. Nothing else is read: an Authorization header is ignored.
Key in the body
A top-level clientKey field in the body is refused with 400 bad_request. The header is the only place a key goes.
Method
Every route is a POST with Content-Type: application/json.
Body limit
A request body is at most 1 MiB.
What is charged
A failure is not charged. The price is held when the call starts and charged only when the answer proves a success; anything else is given back in full before the answer reaches you.
Rules of the call
Your key
Your key goes in the X-API-Key header. Nothing else is read: an Authorization header is ignored.
Key in the body
A top-level clientKey field in the body is refused with 400 bad_request. The header is the only place a key goes.
Method
Every route is a POST with Content-Type: application/json.
Body limit
A request body is at most 1 MiB.
What is charged
A failure is not charged. The price is held when the call starts and charged only when the answer proves a success; anything else is given back in full before the answer reaches you.

Request

Send these as JSON in the body. Required means a first call will not work without it, and a missing one comes back as the solver's own 400 naming the field.

Request fields for POST /v1/akamai/sec-cpt
FieldNeededWhat it is
bodyRequiredThe challenge as the edge served it: the 428 JSON, or the sec-cpt interstitial HTML.
secCptCookieRequiredThe sec_cpt cookie the edge set along with that challenge. The proof is bound to it.
Example call
curl -X POST 'https://api.cyxkit.app/v1/akamai/sec-cpt' \
  -H "X-API-Key: $CYXKIT_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"body": "CHALLENGE_JSON_OR_HTML", "secCptCookie": "SEC_CPT_COOKIE"}'
It reads your key from $CYXKIT_KEY, so the line you copy holds no secret. Set it first with export CYXKIT_KEY='PASTE_YOUR_KEY'.

Response

One success and two refusals. Which refusal you get says who turned the call down.

Success
{
  "payload": "{\"token\":\"...\",\"answers\":[...]}",
  "provider": "crypto",
  "token": "...",
  "duration": 5,
  "durationMs": 5000,
  "verifyUrl": "/_sec/verify"
}
This is the only answer that is charged.
Refused by the solver
{
  "error": "secCptCookie is required: the sec_cpt cookie the edge set with the challenge"
}
The solver refused the request as sent. Its own 400, 404 or 413 and its own body come back unchanged, and a failure is not charged.
Refused by cyxkit
{
  "error": "<code>",
  "status": <int>
}
cyxkit refused the call. A few codes add one field of their own, and there is no message or attempted field.

On every answer

The headers to read off a response, and what is true of this route only.

Headers on every answer
HeaderWhat it carries
X-Cyxkit-Request-IdOn every answer. Quote it when you ask for help.
X-Charge-MicrosWhat this call cost, and 0 when it cost nothing. Money is micro-USD: 1 USD is 1,000,000.
X-Balance-MicrosYour available balance after the call, whenever cyxkit has a reading for it.
X-RateLimit-LimitYour key’s per-minute limit. A key with no per-minute limit gets no X-RateLimit header at all.
X-RateLimit-RemainingWhat is left of that limit. It comes back with the limit, for a key that has one.
Only on this route
  • WAIT the full duration before you post. The edge times the challenge, so a correct payload sent early is still refused; duration is in seconds and durationMs is the same wait in milliseconds.
  • POST the payload to verifyUrl, resolved against the page you were challenged on, then check that your sec_cpt cookie now contains ~3~. That is the proof it was accepted.
  • verifyUrl comes back only for the challenges that have one. The crypto and adaptive challenges verify at a static address of their own, so an answer without it is still a good answer.
  • The proof is bound to the sec_cpt cookie you sent, so solve each challenge with the cookie that came with it and do not reuse a payload.

Get a key and top up

Sign in with Discord, add funds with crypto, then call /v1/tmpt or /v1/recaptcha/tmstd or /v1/akamai/sensor or /v1/akamai/sbsd or /v1/akamai/pixel or /v1/akamai/sec-cpt or /v1/tmpt/evaluate or /v1/kasada/mint. Nothing limits how fast you call. Ask about Unlimited once a plan works out cheaper per solve.