AkamaiSecCptToken
Solve Akamai's sec-cpt cryptographic challenge (HTTP 428) and get the token to clear it.
sec-cpt is Akamai's cryptographic challenge, usually surfaced as an HTTP 428 ("Precondition Required") response that holds a request while the client completes a timed proof-of-work. AkamaiSecCptToken computes the answer and returns the token you submit to clear the challenge.
This task is proxyless: the challenge is self-contained in the values Akamai serves with the 428, so no exit IP binding is needed. The response embeds the challenge string (also in the sec-cpt cookie) and a configuration object (including the wait duration) which you pass through to the task.
Solve quickly
sec-cpt challenges are time-boxed. Submit solution.token to the origin promptly after the task completes, before
the challenge window closes.
Supported Providers
| Provider | Price per 1,000 | Routing |
|---|---|---|
| $1.00 |
Request Schema
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in 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, and proxy behavior. See Routing Strategies. |
provider | No | Specific provider to use. If omitted, automatic routing selects the best provider. Example: | |
selectionMode | No | Routing strategy for this request. Overrides the API key default. See Routing Strategies. Example: | |
keyPoolMode | No | Which provider key pool to use: Example: |
Task Object Properties
The task field accepts an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
secCpt* | string | Yes | The sec-cpt challenge token from the Akamai interstitial response. Example: |
secJson* | Record<string, unknown> | Yes | The sec-cpt challenge configuration object served with the interstitial. Example: |
{ "clientKey": "your-api-key-from-dashboard", "task": { "type": "AkamaiSecCptToken", "secCpt": "AAA;BBB;CCC", "secJson": { "token": "a1b2c3", "timestamp": 1716595200, "nonce": "d4e5f6", "difficulty": 5, "duration": 5 } }}Optional fields are not guaranteed across providers
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes | 0 = success, 1 = external error, 2 = internal error. 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 | Specific provider to use. If omitted, automatic routing selects the best provider. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |
token | string | No | The solved CAPTCHA token to submit with your form. Example: |