[AI39-1] Design Patent Infringement Search - Submit Workflow Task

post
https://connect.patsnap.com/api/mcp/submit-workflow
Try in Sandbox

Submit an image and create an asynchronous search task. Use the returned task_id to query status and stage results. Supports URL or Base64; at least one must be nonempty and URL takes precedence. Validation failures do not create a task; other submission failures do not guarantee that no task record exists. Request example (URL): ```json { "url": "https://example.com/product.png", "description": "目标产品描述", "lang": "cn", "country": [ "CN", "EU" ], "loc_items": [ { "id": "09-01", "desc": "瓶、长颈瓶、鼓形瓶" } ], "apply_start_time": "20200101", "apply_end_time": "20260917", "simple_legal_status": "1,2" } ``` Request example (Base64): ```json { "target_image_base64": "", "description": "目标产品描述", "lang": "cn", "country": [ "CN", "EU" ], "simple_legal_status": "1,2" } ``` Success response example: ```json { "code": 0, "success": true, "task_id": "task_0123456789ab", "country": [ "CN", "EU" ], "message": "工作流任务已提交", "status": true } ``` Failure response example: ```json { "code": 1, "success": false, "task_id": null, "message": "提交工作流失败: 图片读取失败", "status": false } ``` Validation failure example (HTTP 422): ```json { "detail": [ { "loc": [ "body", "country" ], "msg": "Input should be a valid list", "type": "list_type", "input": "EU" } ], "code": 1, "status": false, "success": 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.

Success Response Example

Example of a successful API response

JSON
{
  "status": true,
  "message": "任务提交成功",
  "success": true,
  "task_id": "8f3c1b2a-9d4e-4a7b-bc5e-12345678abcd",
  "error_code": 0
}

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