[AI39-2] Design Patent Infringement Search - Get Workflow Task Status

get
https://connect.patsnap.com/api/mcp/task/status
Try in Sandbox

Query overall task status and stage summaries for polling. Top-level status=true only means the query succeeded; inspect task.workflow_status for execution success. task.country contains the saved submission jurisdictions. Request example (parameters in URL query, no request body): ```http GET /api/mcp/task/status?task_id=task_0123456789ab ``` Success response example: ```json { "code": 0, "success": true, "task": { "task_id": "task_0123456789ab", "workflow_status": "running", "current_stage": "rerank", "current_stage_order": 3, "title": "产品外观检索", "country": [ "CN", "EU" ], "total_execution_duration": null, "error_message": null, "created_at": "2026-09-17 02:00:00+00:00" }, "stages": [ { "stage": "convert_lineart", "stage_order": 1, "status": "completed", "execution_duration": 12.3, "retry_count": 0, "error_message": null }, { "stage": "image_search", "stage_order": 2, "status": "completed", "execution_duration": 8.5, "retry_count": 0, "error_message": null }, { "stage": "rerank", "stage_order": 3, "status": "running", "execution_duration": null, "retry_count": 0, "error_message": null }, { "stage": "generate_report", "stage_order": 4, "status": "pending", "execution_duration": null, "retry_count": 0, "error_message": null } ], "status": true } ``` Failure response example: ```json { "code": 1, "success": false, "message": "任务不存在: task_0123456789ab", "status": false } ``` Replace example task IDs, URLs and the Base64 placeholder with real values. The result_data example omits business content. Example message values illustrate API text and are not guaranteed to be translated according to lang.

Request Parameters

List of parameters supported by this API endpoint

NameTypeExampleDescription
task_id
Required
stringtask_0123456789ab
[Required] Task ID returned by submission. Example: "task_0123456789ab"

Error Codes

List of possible error codes returned by this endpoint

Business Errors

Error CodeDescription
68300004Invalid parameter!
68300005Search api failure!
68300006Analytic basic access error!
68300007Bad request!
68300008Service error, please try again later!
68300010The file does not comply with upload specifications!

Platform Errors

Error CodeDescription
67200001API call exceeds the total limit set by the platform!
67200002Quota exceeds the limit!
67200003Access token expired or authentication error!
67200004No permission or API package quota has exceeded the limit!
67200005Insufficient balance, call failed!
67200006This client has expired and call failed!
67200007Exceeded the call limit, call failed!

HTTP Status Codes

Status CodeDescription
0Success
422Request validation failed: status=false, code=1, with detail retained.

Performance Metrics

Expected performance characteristics for this endpoint

Normal Response Time

5000 ms

Max Response Time

10000 ms