---
updatedAt: 2026-05-28T22:55:39.000Z
agentTools:
  projectIndex: https://docs.constructor.com/llms.txt
---

# Retrieve task

**🔐 This endpoint requires [HTTP authentication](https://docs.constructor.com/reference/main-authentication) (either [Basic](https://docs.constructor.com/reference/main-authentication#basic-authentication) or [Bearer](https://docs.constructor.com/reference/main-authentication#bearer-authentication)).**
For authenticating with Bearer token, required scopes are: `catalog(r)`.

Retrieve a task.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "contact": {
      "email": "support@constructor.io"
    },
    "title": "Catalog management",
    "version": "0.1"
  },
  "servers": [
    {
      "url": "https://ac.cnstrc.com"
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "Tasks"
    }
  ],
  "paths": {
    "/v1/tasks/{task_id}": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "operationId": "v1-tasks-retrieve-task",
        "summary": "Retrieve task",
        "description": "**🔐 This endpoint requires [HTTP authentication](https://docs.constructor.com/reference/main-authentication) (either [Basic](https://docs.constructor.com/reference/main-authentication#basic-authentication) or [Bearer](https://docs.constructor.com/reference/main-authentication#bearer-authentication)).**\nFor authenticating with Bearer token, required scopes are: `catalog(r)`.\n\nRetrieve a task.",
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "key",
            "in": "query",
            "schema": {
              "title": "Key",
              "description": "The key of the index to use.",
              "maxLength": 100,
              "minLength": 1,
              "examples": [
                "key_K2pX7vBnU0bgA5xp"
              ],
              "type": "string"
            },
            "required": true
          },
          {
            "name": "c",
            "in": "query",
            "schema": {
              "title": "Client ID",
              "description": "The ID of the client and version that the request is coming from, such as `cio-js-2.90`.",
              "maxLength": 100,
              "minLength": 1,
              "examples": [
                "cio-js-2.90",
                "cio-ios-1.0"
              ],
              "type": "string"
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskGetResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation Error"
          },
          "401": {
            "description": "Credentials are not passed or action is forbidden."
          },
          "403": {
            "description": "The supplied token does not have the required permissions."
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Rate limit breached"
          }
        },
        "security": [
          {
            "http_basic_auth": []
          },
          {
            "http_bearer_auth": [
              "catalog(r)"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "TaskGetResponse": {
        "title": "TaskGetResponse",
        "oneOf": [
          {
            "oneOf": [
              {
                "$ref": "#/components/schemas/IngestionTaskResponse"
              },
              {
                "$ref": "#/components/schemas/IngestionTaskErrorResponse"
              }
            ]
          },
          {
            "oneOf": [
              {
                "$ref": "#/components/schemas/UserDataRequestTaskResponse"
              },
              {
                "$ref": "#/components/schemas/UserDataRequestTaskErrorResponse"
              }
            ]
          },
          {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CopyDataTaskResponse"
              },
              {
                "$ref": "#/components/schemas/CopyDataTaskErrorResponse"
              }
            ]
          },
          {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CatalogExportTaskResponse"
              },
              {
                "$ref": "#/components/schemas/CatalogExportTaskErrorResponse"
              }
            ]
          }
        ]
      },
      "DirectUploadChangelog": {
        "title": "DirectUploadChangelog",
        "type": "object",
        "properties": {
          "item_groups_updated": {
            "title": "Item Groups Updated",
            "type": "integer"
          },
          "item_groups_deleted": {
            "title": "Item Groups Deleted",
            "type": "integer"
          },
          "total_item_groups_changed": {
            "title": "Total Item Groups Changed",
            "type": "integer"
          },
          "sections": {
            "title": "Sections",
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "integer"
              }
            }
          }
        }
      },
      "IngestionWarning": {
        "title": "IngestionWarning",
        "type": "object",
        "properties": {
          "code": {
            "title": "Code",
            "description": "Warning code",
            "examples": [
              "MISSING_FIELD",
              "DUPLICATE_ITEM"
            ],
            "type": "string"
          },
          "message": {
            "title": "Message",
            "description": "Warning message",
            "examples": [
              "Field 'price' is missing for item 'product-123'"
            ],
            "type": "string"
          },
          "data": {
            "title": "Data",
            "description": "Additional data related to warning",
            "examples": [
              {
                "item_id": "product-123",
                "field": "price"
              }
            ],
            "type": "object"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "IngestionResult": {
        "title": "Ingestion result",
        "type": "object",
        "properties": {
          "changelog": {
            "title": "Changelog",
            "description": "Changes in catalog made by the task.",
            "examples": [
              {
                "item_groups_updated": 10,
                "item_groups_deleted": 0
              }
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DirectUploadChangelog"
              }
            ]
          },
          "index_built": {
            "title": "Index Built",
            "description": "Shows if changes from the task have been indexed.",
            "examples": [
              true,
              false
            ],
            "type": "boolean"
          },
          "ingestion_warnings": {
            "title": "Ingestion Warnings",
            "description": "A list of the warnings produced during ingestion.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IngestionWarning"
            }
          }
        },
        "required": [
          "changelog",
          "index_built"
        ]
      },
      "IngestionTaskResponse": {
        "title": "Ingestion task response",
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "description": "The ID of the task.",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "description": "Current status of the task.",
            "enum": [
              "QUEUED",
              "CANCELED",
              "IN_PROGRESS",
              "DONE",
              "FAILED"
            ],
            "type": "string"
          },
          "submission_time": {
            "title": "Submission Time",
            "description": "Time of task submission.",
            "type": "string",
            "format": "date-time"
          },
          "last_update": {
            "title": "Last Update",
            "description": "Last time the status of this task was updated. May be `null` if the task has never been run before.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "start_time": {
            "title": "Start Time",
            "description": "Starting time of the task. May be `null` if the task has not been run yet.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "type": {
            "title": "Type",
            "enum": [
              "ingestion"
            ],
            "type": "string"
          },
          "filename": {
            "title": "Filename",
            "description": "The name of the file uploaded to Constructor.",
            "type": "string"
          },
          "protocol": {
            "title": "Protocol",
            "description": "Describes if the ingestion was created via FTP, HTTP API or other source (then null).",
            "enum": [
              "ftp",
              "http"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/IngestionResult"
          }
        },
        "required": [
          "id",
          "status",
          "submission_time",
          "type"
        ]
      },
      "IngestionTaskErrorResponse": {
        "title": "Ingestion task error response",
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "description": "The ID of the task.",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "description": "Current status of the task.",
            "enum": [
              "FAILED"
            ],
            "type": "string"
          },
          "submission_time": {
            "title": "Submission Time",
            "description": "Time of task submission.",
            "type": "string",
            "format": "date-time"
          },
          "last_update": {
            "title": "Last Update",
            "description": "Last time the status of this task was updated. May be `null` if the task has never been run before.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "start_time": {
            "title": "Start Time",
            "description": "Starting time of the task. May be `null` if the task has not been run yet.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "type": {
            "title": "Type",
            "enum": [
              "ingestion"
            ],
            "type": "string"
          },
          "error": {
            "title": "Error",
            "description": "Data about errors in case of task failure.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object"
              }
            ]
          },
          "filename": {
            "title": "Filename",
            "description": "The name of the file uploaded to Constructor.",
            "type": "string"
          },
          "protocol": {
            "title": "Protocol",
            "description": "Describes if the ingestion was created via FTP, HTTP API or other source (then null).",
            "enum": [
              "ftp",
              "http"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "submission_time",
          "type"
        ]
      },
      "UserDataRequestResult": {
        "title": "UserDataRequestResult",
        "type": "object",
        "properties": {
          "data_url": {
            "title": "Data Url",
            "description": "Link to file with user's data.",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "UserDataRequestTaskResponse": {
        "title": "User data request task response",
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "description": "The ID of the task.",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "description": "Current status of the task.",
            "enum": [
              "QUEUED",
              "CANCELED",
              "IN_PROGRESS",
              "DONE",
              "FAILED"
            ],
            "type": "string"
          },
          "submission_time": {
            "title": "Submission Time",
            "description": "Time of task submission.",
            "type": "string",
            "format": "date-time"
          },
          "last_update": {
            "title": "Last Update",
            "description": "Last time the status of this task was updated. May be `null` if the task has never been run before.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "start_time": {
            "title": "Start Time",
            "description": "Starting time of the task. May be `null` if the task has not been run yet.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "type": {
            "title": "Type",
            "enum": [
              "user_data_request"
            ],
            "type": "string"
          },
          "user_id": {
            "title": "User Id",
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/UserDataRequestResult"
          }
        },
        "required": [
          "id",
          "status",
          "submission_time",
          "type"
        ]
      },
      "UserDataRequestTaskErrorResponse": {
        "title": "User data request task error response",
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "description": "The ID of the task.",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "description": "Current status of the task.",
            "enum": [
              "FAILED"
            ],
            "type": "string"
          },
          "submission_time": {
            "title": "Submission Time",
            "description": "Time of task submission.",
            "type": "string",
            "format": "date-time"
          },
          "last_update": {
            "title": "Last Update",
            "description": "Last time the status of this task was updated. May be `null` if the task has never been run before.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "start_time": {
            "title": "Start Time",
            "description": "Starting time of the task. May be `null` if the task has not been run yet.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "type": {
            "title": "Type",
            "enum": [
              "user_data_request"
            ],
            "type": "string"
          },
          "error": {
            "title": "Error",
            "description": "Data about errors in case of task failure.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object"
              }
            ]
          },
          "user_id": {
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "submission_time",
          "type"
        ]
      },
      "CopyDataResult": {
        "title": "CopyDataResult",
        "description": "Object of each section which has the succeeded and failed resources to copy.",
        "type": "object",
        "additionalProperties": false
      },
      "CopyDataTaskResponse": {
        "title": "Copy data task response",
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "description": "The ID of the task.",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "description": "Current status of the task.",
            "enum": [
              "QUEUED",
              "CANCELED",
              "IN_PROGRESS",
              "DONE",
              "FAILED"
            ],
            "type": "string"
          },
          "submission_time": {
            "title": "Submission Time",
            "description": "Time of task submission.",
            "type": "string",
            "format": "date-time"
          },
          "last_update": {
            "title": "Last Update",
            "description": "Last time the status of this task was updated. May be `null` if the task has never been run before.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "start_time": {
            "title": "Start Time",
            "description": "Starting time of the task. May be `null` if the task has not been run yet.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "type": {
            "title": "Type",
            "enum": [
              "copy_data"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/CopyDataResult"
          }
        },
        "required": [
          "id",
          "status",
          "submission_time",
          "type",
          "args"
        ]
      },
      "CopyDataTaskErrorResponse": {
        "title": "Copy data task error response",
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "description": "The ID of the task.",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "description": "Current status of the task.",
            "enum": [
              "FAILED"
            ],
            "type": "string"
          },
          "submission_time": {
            "title": "Submission Time",
            "description": "Time of task submission.",
            "type": "string",
            "format": "date-time"
          },
          "last_update": {
            "title": "Last Update",
            "description": "Last time the status of this task was updated. May be `null` if the task has never been run before.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "start_time": {
            "title": "Start Time",
            "description": "Starting time of the task. May be `null` if the task has not been run yet.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "type": {
            "title": "Type",
            "enum": [
              "copy_data"
            ],
            "type": "string"
          },
          "error": {
            "title": "Error",
            "description": "Data about errors in case of task failure.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object"
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "submission_time",
          "type",
          "args"
        ]
      },
      "CatalogExportResult": {
        "title": "Catalog export result",
        "description": "Contains the export file URL and entity count for a catalog export task result.",
        "type": "object",
        "properties": {
          "url": {
            "title": "URL",
            "description": "An expiring download URL for the export file. The URL expires three days after the export file is generated. May be `null` when the export contains no entities.",
            "type": [
              "string",
              "null"
            ]
          },
          "count": {
            "title": "Count",
            "description": "Count of exported entities, such as items, variations, or item groups. For catalog export task results created before counts were returned, this key is omitted rather than returned as `null`.",
            "type": "integer"
          }
        },
        "required": [
          "url"
        ]
      },
      "CatalogExportTaskResponse": {
        "title": "Catalog export task response",
        "description": "Response for a catalog export task.",
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "description": "The ID of the task.",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "description": "Current status of the task.",
            "enum": [
              "QUEUED",
              "CANCELED",
              "IN_PROGRESS",
              "DONE",
              "FAILED"
            ],
            "type": "string"
          },
          "submission_time": {
            "title": "Submission Time",
            "description": "Time of task submission.",
            "type": "string",
            "format": "date-time"
          },
          "last_update": {
            "title": "Last Update",
            "description": "Last time the status of this task was updated. May be `null` if the task has never been run before.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "start_time": {
            "title": "Start Time",
            "description": "Starting time of the task. May be `null` if the task has not been run yet.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "type": {
            "title": "Type",
            "description": "The type of the task.",
            "enum": [
              "catalog_export"
            ],
            "type": "string"
          },
          "section": {
            "title": "Section",
            "description": "The catalog section used for the export. Valid values are the catalog section names configured for the index, such as `Products`; this mirrors the `section` request parameter.",
            "type": "string"
          },
          "catalog_part": {
            "title": "Catalog Part",
            "description": "The part of the catalog that was exported.",
            "enum": [
              "items",
              "variations",
              "item_groups",
              "items_with_variations"
            ],
            "type": "string"
          },
          "result": {
            "title": "Catalog export result",
            "description": "The result of the catalog export task.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CatalogExportResult"
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "submission_time",
          "type"
        ]
      },
      "CatalogExportTaskErrorResponse": {
        "title": "Catalog export task error response",
        "description": "Error response for a catalog export task.",
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "description": "The ID of the task.",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "description": "Current status of the task.",
            "enum": [
              "FAILED"
            ],
            "type": "string"
          },
          "submission_time": {
            "title": "Submission Time",
            "description": "Time of task submission.",
            "type": "string",
            "format": "date-time"
          },
          "last_update": {
            "title": "Last Update",
            "description": "Last time the status of this task was updated. May be `null` if the task has never been run before.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "start_time": {
            "title": "Start Time",
            "description": "Starting time of the task. May be `null` if the task has not been run yet.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "type": {
            "title": "Type",
            "description": "The type of the task.",
            "enum": [
              "catalog_export"
            ],
            "type": "string"
          },
          "error": {
            "title": "Error",
            "description": "Data about errors in case of task failure.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object"
              }
            ]
          },
          "section": {
            "title": "Section",
            "description": "The catalog section used for the export. Valid values are the catalog section names configured for the index, such as `Products`; this mirrors the `section` request parameter.",
            "type": "string"
          },
          "catalog_part": {
            "title": "Catalog Part",
            "description": "The part of the catalog that was exported.",
            "enum": [
              "items",
              "variations",
              "item_groups",
              "items_with_variations"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "submission_time",
          "type"
        ]
      }
    },
    "securitySchemes": {
      "http_basic_auth": {
        "type": "http",
        "scheme": "basic"
      },
      "http_bearer_auth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```