# Get an upload (/reference/api/uploads/get-upload)

```json
[
  {
    "method": "GET",
    "path": "/api/v1/uploads/{uploadId}",
    "operationId": "getUpload",
    "tags": [
      "Uploads"
    ],
    "summary": "Get an upload",
    "description": "Returns the state of an upload. For a converted DOCX, this read registers the resulting PDF and returns it as `document`.",
    "x-required-scope": "documents:write",
    "security": [
      {
        "oauth": [
          "documents:write"
        ]
      },
      {
        "sessionCookie": []
      },
      {
        "secureSessionCookie": []
      }
    ],
    "responses": {
      "200": {
        "description": "Upload resource. A successful conversion needs this read to register its document.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Upload"
            }
          }
        }
      },
      "429": {
        "description": "Compute admission or usage is limited.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "headers": {
          "Retry-After": {
            "description": "Seconds until retry.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        }
      },
      "default": {
        "description": "Request failed. Inspect error.code and error.message.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  }
]
```

## Components

```json
{
  "#/components/schemas/Document": {
    "allOf": [
      {
        "$ref": "#/components/schemas/DocumentMetadata"
      },
      {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "not_started",
              "processing",
              "ready",
              "failed",
              "unknown"
            ],
            "description": "not_started: a PDF has not been parsed yet and reading or generating will start it. unknown: the compute worker could not be reached; retry."
          },
          "operationId": {
            "type": [
              "string",
              "null"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "webUrl": {
            "type": "string",
            "format": "uri"
          },
          "fileUrl": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "operationId",
          "error",
          "webUrl",
          "fileUrl"
        ]
      }
    ]
  },
  "#/components/schemas/DocumentMetadata": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string",
        "pattern": "^[a-f0-9]{64}$"
      },
      "name": {
        "type": "string"
      },
      "size": {
        "type": "integer"
      },
      "lastModified": {
        "type": "number"
      },
      "type": {
        "type": "string",
        "enum": [
          "pdf",
          "epub",
          "docx",
          "html"
        ]
      },
      "scope": {
        "type": "string",
        "enum": [
          "user"
        ]
      },
      "folderId": {
        "type": "string"
      },
      "recentlyOpenedAt": {
        "type": "number"
      },
      "contentVersion": {
        "type": "string"
      },
      "author": {
        "type": "string"
      },
      "language": {
        "type": "string"
      },
      "readingProgress": {
        "type": "object",
        "properties": {
          "fraction": {
            "type": [
              "number",
              "null"
            ]
          },
          "updatedAtMs": {
            "type": "number"
          }
        },
        "required": [
          "fraction",
          "updatedAtMs"
        ]
      }
    },
    "required": [
      "id",
      "name",
      "size",
      "lastModified",
      "type"
    ]
  },
  "#/components/schemas/Error": {
    "type": "object",
    "properties": {
      "error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "retryAfterMs": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "code",
          "message"
        ]
      }
    },
    "required": [
      "error"
    ]
  },
  "#/components/schemas/Upload": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string",
        "format": "uuid"
      },
      "status": {
        "type": "string",
        "enum": [
          "pending",
          "processing",
          "ready",
          "failed"
        ]
      },
      "document": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Document"
          },
          {
            "type": "null"
          }
        ]
      },
      "operationId": {
        "type": [
          "string",
          "null"
        ]
      },
      "error": {
        "type": [
          "string",
          "null"
        ]
      },
      "statusUrl": {
        "type": "string"
      },
      "eventsUrl": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "required": [
      "id",
      "status",
      "document",
      "operationId",
      "error",
      "statusUrl",
      "eventsUrl"
    ]
  }
}
```