Skip to content

Solve utmvc

POST
/utmvc
curl --request POST \
--url https://incap.antibotapi.com/utmvc \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "script": "<base64 of the utmvc script>", "session_cookies": [ "<value of incap_ses_xxx>" ] }'

Send the utmvc challenge script. Returns the ___utmvc cookie value and, when the site wants it, the SWHANEDL value to request next.

x-signature
string

A request signature. Required only when signing is on for your key. See Authentication.

Media typeapplication/json
object
script
required

The utmvc challenge script, Base64-encoded.

string format: byte
session_cookies

The values (not names) of every incap_ses_* cookie in your jar.

Array<string>

Example

{
"script": "<base64 of the utmvc script>",
"session_cookies": [
"<value of incap_ses_xxx>"
]
}

Solved.

Media typeapplication/json
object
___utmvc

The ___utmvc cookie value.

string
SWHANEDL

When not empty, GET /_Incapsula_Resource?SWHANEDL=<value> on the site.

string

Example

{
"___utmvc": "QAolXPoMnOY44mHQgmHUk2JASSm3Qdv2mqFF...",
"SWHANEDL": "5328892720666706300,11075350648989097825,9380172380300787245,645620"
}

The request is invalid or the script could not be solved. error says why. Not billed.

Media typeapplication/json
object
success
boolean
error

What went wrong.

string

Example

{
"success": false
}

The API key is missing, unknown, revoked or out of balance, or its signature is wrong.

Media typeapplication/json
object
success
boolean
error
object
type
string
message
string

Example

{
"success": false,
"error": {
"type": "validation",
"message": "x-api-key is required"
}
}