MTCaptcha task at a glance
MtCaptchaTokenProxyLess and MtCaptchaToken return the verifiedToken that an MTCaptcha widget issues when its verification passes.
| Field | Required | Notes |
|---|---|---|
type |
yes | MtCaptchaTokenProxyLess, or MtCaptchaToken with your proxy |
websiteURL |
yes | The exact page that renders the widget |
websiteKey |
yes | The public site key, MTPublic-<id> |
userAgent |
yes | Your browser's User-Agent; keep it when you submit the result |
proxy |
MtCaptchaToken only |
Your proxy for the solving session |
testKey |
no | MTPrivQA-<id>-<secret>, QA mode on a site you control |
pageAction and isInvisible are not accepted, so they cannot switch on a widget mode the page does not have. The MTCaptcha API reference shows the accepted request.
Find the MTCaptcha site key
Pages load mtcaptcha.min.js from service.mtcaptcha.com and usually define window.mtcaptchaConfig. Read sitekey from that object, or find sk in the widget's getchallenge.json request. The value starts with MTPublic-.

What the task can and cannot pass
The token task covers background verification and the vendor's test mode. When the widget shows a visible text CAPTCHA, the task fails instead of returning a token that would not verify. Image to Text reads text from an image you send, but it does not complete this widget's verification.
Submit the verified token
Put solution.token in the hidden input named mtcaptcha-verifiedtoken, or hand it to the verified callback the page defines, then post the form. The site's server does the final verification, so submit promptly and never reuse a token.
A failed or timed-out task returns its original charge once. Check the task's final state before posting the form.
Where the key lives in getchallenge.json, why the outcome depends on the exit IP, and a replay script are covered in the MTCaptcha token guide.
Choose the token or image flow
| What the widget needs | Use | Result |
|---|---|---|
| Background verification or QA mode on your own site | MtCaptchaTokenProxyLess or MtCaptchaToken |
A verified token for the widget |
| Characters read from a visible CAPTCHA image | ImageToTextTask, with the matching numeric module |
Text only; you still submit it through the widget's original session |
The image task does not produce an MTCaptcha verified token. A visible text challenge is unsupported by the token task and must not be reported as a successful background pass.
Request and ready result
Send the following to POST /createTask. Use the real MTPublic- key and a supported User-Agent:
{
"clientKey": "sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"task": {
"type": "MtCaptchaTokenProxyLess",
"websiteURL": "https://example.com/signup",
"websiteKey": "MTPublic-YOURKEY",
"userAgent": "YOUR_SUPPORTED_USER_AGENT"
}
}
Omit testKey for normal sites. Use an MTPrivQA-... key only for a QA integration you control. Poll POST /getTaskResult with clientKey and the returned taskId; its ready shape is:
{
"errorId": 0,
"status": "ready",
"solution": {
"token": "<verified-widget-token>"
}
}
Examples in your language
The official client wraps createTask and polling in one solve call; each language tab is its Quick start with this captcha's request, and prints the verified token. Post it in the mtcaptcha-verifiedtoken field together with the form's other fields, and check the application response:
import { SurSolver, TaskType } from 'sursolver';
const API_KEY = 'YOUR_API_KEY';
const USER_AGENT =
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
const client = new SurSolver(API_KEY);
const { solution } = await client.solve({
type: TaskType.MtCaptchaTokenProxyLess,
websiteURL: 'https://example.com/login',
websiteKey: 'MTPublic-YOURKEY',
userAgent: USER_AGENT,
});
console.log(solution.token);
from sursolver import SurSolver, TaskType
API_KEY = "YOUR_API_KEY"
USER_AGENT = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
)
client = SurSolver(API_KEY)
result = client.solve(
{
"type": TaskType.MtCaptchaTokenProxyLess,
"websiteURL": "https://example.com/login",
"websiteKey": "MTPublic-YOURKEY",
"userAgent": USER_AGENT,
}
)
print(result.solution["token"])
package main
import (
"context"
"fmt"
"log"
sursolver "github.com/sursolver/sursolver-go"
)
const (
APIKey = "YOUR_API_KEY"
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
)
func main() {
client, err := sursolver.New(APIKey)
if err != nil {
log.Fatal(err)
}
result, err := client.Solve(context.Background(), sursolver.Task{
"type": sursolver.TaskTypeMtCaptchaTokenProxyLess,
"websiteURL": "https://example.com/login",
"websiteKey": "MTPublic-YOURKEY",
"userAgent": UserAgent,
})
if err != nil {
log.Fatal(err)
}
fmt.Println(result.Solution["token"])
}
use serde_json::json;
use sursolver::{Client, task_types};
const API_KEY: &str = "YOUR_API_KEY";
const USER_AGENT: &str = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
#[tokio::main]
async fn main() -> Result<(), sursolver::Error> {
let client = Client::new(API_KEY)?;
let result = client
.solve(&json!({
"type": task_types::MT_CAPTCHA_TOKEN_PROXY_LESS,
"websiteURL": "https://example.com/login",
"websiteKey": "MTPublic-YOURKEY",
"userAgent": USER_AGENT,
}))
.await?;
println!("{}", result.solution["token"]);
Ok(())
}
<?php
require __DIR__ . '/vendor/autoload.php';
use SurSolver\Client;
use SurSolver\TaskTypes;
const API_KEY = 'YOUR_API_KEY';
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
$client = new Client(API_KEY);
$result = $client->solve([
'type' => TaskTypes::MT_CAPTCHA_TOKEN_PROXY_LESS,
'websiteURL' => 'https://example.com/login',
'websiteKey' => 'MTPublic-YOURKEY',
'userAgent' => USER_AGENT,
]);
echo $result->solution['token'];
require "sursolver"
API_KEY = "YOUR_API_KEY"
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
client = SurSolver::Client.new(API_KEY)
result = client.solve(
"type" => SurSolver::TaskTypes::MT_CAPTCHA_TOKEN_PROXY_LESS,
"websiteURL" => "https://example.com/login",
"websiteKey" => "MTPublic-YOURKEY",
"userAgent" => USER_AGENT
)
puts result.solution["token"]
import com.sursolver.SolveResult;
import com.sursolver.SurSolverClient;
import com.sursolver.TaskTypes;
import java.util.Map;
public class QuickStart {
static final String API_KEY = "YOUR_API_KEY";
static final String USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
public static void main(String[] args) throws InterruptedException {
SurSolverClient client = SurSolverClient.create(API_KEY);
SolveResult result = client.solve(Map.of(
"type", TaskTypes.MtCaptchaTokenProxyLess,
"websiteURL", "https://example.com/login",
"websiteKey", "MTPublic-YOURKEY",
"userAgent", USER_AGENT));
System.out.println(result.solution().get("token"));
}
}
using System.Text.Json.Nodes;
using SurSolver;
const string ApiKey = "YOUR_API_KEY";
const string UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
var client = new SurSolverClient(ApiKey);
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.MtCaptchaTokenProxyLess,
["websiteURL"] = "https://example.com/login",
["websiteKey"] = "MTPublic-YOURKEY",
["userAgent"] = UserAgent,
});
Console.WriteLine(result.Solution["token"]);
If the page has a verified callback instead of a plain form field, pass this same token to the callback registered by that page. Preserve its normal submit path and current CSRF/session values rather than inventing a global callback name.
Troubleshooting
| Symptom | Check | Correction |
|---|---|---|
| Task fails when a text image is shown | This is outside the token integration | Use the original widget flow; OCR is a separate image task |
| Request rejects the key | A private QA key was used as websiteKey |
Send MTPublic-...; keep optional QA configuration separate |
Request rejects pageAction or isInvisible |
Those fields do not configure this solver | Remove them |
| Ready token fails on submission | Wrong page key, expired token, session or User-Agent mismatch | Solve and submit promptly in the intended application context |