Compute Akamai sensor_data only; your own client session sends it. Use this when the cookie has to come from the session that posted the sensor, such as queue-it entry.
Task type
AntiAkamaiSensorRelayTask
Sync or poll
Async — poll /getTaskResult
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
type |
string | yes | AntiAkamaiSensorRelayTask |
sessionId |
string | yes | Generated by you; send the same value in every round |
cookies |
object | yes | First round must include _abck and bm_sz; later rounds send the full cookie jar after your POST |
websiteURL |
string | yes | Page URL; first round only |
sensorUrl |
string | yes | Sensor script URL; first round only |
js |
string | yes | Sensor script body; first round only |
pageHtml |
string | no | Page HTML; first round only |
userAgent |
string | no | Your client’s User-Agent |
proxy |
string | no | Optional, first round only; later rounds do not send it |
nPosts |
int | no | Sensor posts to generate, 1–7, default 4 |
Minimal request
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "AntiAkamaiSensorRelayTask",
"sessionId": "YOUR_SESSION_ID",
"websiteURL": "https://TARGET/path",
"sensorUrl": "https://TARGET/SENSOR",
"js": "...",
"cookies": {
"_abck": "...",
"bm_sz": "..."
}
}
}Success solution
{
"sessionId": "YOUR_SESSION_ID",
"done": false,
"sensorBody": "...",
"sensorUrl": "https://TARGET/SENSOR",
"sensorHeaders": {},
"contentType": "text/plain;charset=UTF-8"
}Typical failures
ERROR_CAPTCHA_UNSOLVABLE, ERROR_BAD_REQUEST, ERROR_TASK_NOT_SUPPORTED
Notes
Each round returns sensorBody, sensorUrl and sensorHeaders. POST sensorBody to sensorUrl with those headers from your own session, then create the next task with the same sessionId and the resulting cookies. When done is true the session is over and cookies holds the final jar.