---
updatedAt: 2025-11-14T10:21:39.000Z
agentTools:
  projectIndex: https://docs.topview.ai/llms.txt
---

# Query Task

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "image_mask_drawing_query_task"
  },
  "servers": [
    {
      "url": "https://api.topview.ai"
    }
  ],
  "paths": {
    "/v1/segment_anything/task/query": {
      "get": {
        "summary": "New Endpoint",
        "description": "This is your first endpoint! Edit this page to start documenting your API.",
        "operationId": "get_new-endpoint",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "taskId": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "errorMsg": {
                          "type": "string"
                        },
                        "mask": {
                          "type": "string",
                          "description": "Modify the mask image of the area (base64)"
                        },
                        "protectMask": {
                          "type": "string",
                          "description": "Mask image of the protected area (base64)"
                        },
                        "costCredit": {
                          "type": "number",
                          "format": "float"
                        }
                      },
                      "required": [
                        "taskId",
                        "status",
                        "errorMsg",
                        "mask",
                        "protectMask",
                        "costCredit"
                      ]
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "Topview-Uid",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Authorization",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "taskId",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "needCloudFrontUrl",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```