Skip to main content
POST
Tasks

Autorisierungen

Authorization
string
header
erforderlich

Header

accept
enum<string>

Specifies the format of the response from the server.

Verfügbare Optionen:
application/json

Body

application/json
task_id
string
erforderlich

The task id returned when a token API was called with async=true.

Beispiel:

"61138bb6-19aa-11ec-a9c8-0242ac110002"

Antwort

OK, the request is successful.

success
boolean

Whether the query succeeded.

task_id
string

The task id being polled.

started_at
number

When the task began processing, as a Unix timestamp in seconds (float).

finished_at
number

When the task produced its result, as a Unix timestamp in seconds (float). Absent while the task is still processing.

elapsed
number

Processing time in seconds (float, 3 decimals). Absent while the task is still processing.

trace_id
string

本次请求的追踪 ID,排查问题时提供给技术支持。

type
string

任务类型。

user_id
string

发起该任务的账号 ID。

actor_user_id
string

实际执行者的账号 ID。通过授权代发时与 user_id 不同。

api_id
string

该任务所属接口的 ID。

application_id
string

该任务计费所用应用的 ID。

credential_id
string

发起该任务所用凭证的 ID。

authorization_id
string

该任务使用的授权 ID。未通过授权发起时为 null。

status
enum<string>

Task state. 'processing' means keep polling; 'ready' means the token field is populated.

Verfügbare Optionen:
processing,
ready
token
string

The solved verification token (token APIs). Present only when status is 'ready'.

solution
object

The recognition result for recognition/recaptcha2 and recognition/hcaptcha. Present only when status is 'ready'.

text
string

The recognized text for recognition/image2text. Present only when status is 'ready'.