curl --request POST \
--url https://api.acedata.cloud/captcha/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task_id": "61138bb6-19aa-11ec-a9c8-0242ac110002"
}
'import requests
url = "https://api.acedata.cloud/captcha/tasks"
payload = { "task_id": "61138bb6-19aa-11ec-a9c8-0242ac110002" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({task_id: '61138bb6-19aa-11ec-a9c8-0242ac110002'})
};
fetch('https://api.acedata.cloud/captcha/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"task_id": "61138bb6-19aa-11ec-a9c8-0242ac110002",
"status": "ready",
"token": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1Ni......"
}{
"error": {
"code": "invalid_query",
"message": "no task_id specified"
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "invalid_token",
"message": "The specified token is invalid or wrong."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "not_found",
"message": "task not found"
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"detail": "The captcha task timed out.",
"code": "timeout",
"success": false,
"task_id": "61138bb6-19aa-11ec-a9c8-0242ac110002",
"status": "failed",
"started_at": 1784885653,
"finished_at": 1784885765.4,
"elapsed": 112.4
}Tasks
Read the persisted status of a server-managed asynchronous captcha task. The server starts monitoring after HTTP 201 and continues even if the client disconnects or never polls; this endpoint never drives task processing; reading a ready result preserves the existing one-time settlement behavior. It returns processing until the server persists ready, or HTTP 504 timeout after the 120-second deadline.
curl --request POST \
--url https://api.acedata.cloud/captcha/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task_id": "61138bb6-19aa-11ec-a9c8-0242ac110002"
}
'import requests
url = "https://api.acedata.cloud/captcha/tasks"
payload = { "task_id": "61138bb6-19aa-11ec-a9c8-0242ac110002" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({task_id: '61138bb6-19aa-11ec-a9c8-0242ac110002'})
};
fetch('https://api.acedata.cloud/captcha/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"task_id": "61138bb6-19aa-11ec-a9c8-0242ac110002",
"status": "ready",
"token": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1Ni......"
}{
"error": {
"code": "invalid_query",
"message": "no task_id specified"
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "invalid_token",
"message": "The specified token is invalid or wrong."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "not_found",
"message": "task not found"
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"detail": "The captcha task timed out.",
"code": "timeout",
"success": false,
"task_id": "61138bb6-19aa-11ec-a9c8-0242ac110002",
"status": "failed",
"started_at": 1784885653,
"finished_at": 1784885765.4,
"elapsed": 112.4
}Авторизації
API token from https://platform.acedata.cloud
Заголовки
Specifies the format of the response from the server.
application/json Тіло
The task id returned when a token API was called with async=true.
"61138bb6-19aa-11ec-a9c8-0242ac110002"
Відповідь
OK, the request is successful.
Whether the query succeeded.
The task id being polled.
Persisted task state. 'processing' means the server is still working; 'ready' means the result is stored. Reading processing state has no lifecycle or billing side effects.
processing, ready When the task began processing, as a Unix timestamp in seconds (float).
When the task produced its result, as a Unix timestamp in seconds (float). Absent while the task is still processing.
Processing time in seconds (float, 3 decimals). Absent while the task is still processing.
本次请求的追踪 ID,排查问题时提供给技术支持。
任务类型。
发起该任务的账号 ID。
实际执行者的账号 ID。通过授权代发时与 user_id 不同。
该任务所属接口的 ID。
该任务计费所用应用的 ID。
发起该任务所用凭证的 ID。
该任务使用的授权 ID。未通过授权发起时为 null。
The solved verification token (token APIs). Present only when status is 'ready'.
The recognition result for recognition/recaptcha2 and recognition/hcaptcha. Present only when status is 'ready'.
The recognized text for recognition/image2text. Present only when status is 'ready'.
Чи була ця сторінка корисною?

