# place.stream.media.getUploadStatus

> Get the processing status of a previously created upload. Only accessible by the DID that created the upload.

- Kind: query
- Authority: media.stream.place
- Lexicon: 1
- Published by [stream.place](https://lexicon.garden/identity/did:plc:rbvrr34edl5ddpuwcubjiost), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.media.getUploadStatus)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.media.getUploadStatus/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.media.getUploadStatus/analytics)

## Query (`place.stream.media.getUploadStatus`)

Type: query · GET

### Parameters (query string)

- `uploadId` (string, required): The upload ID returned by place.stream.media.createUpload.

### Output (application/json)

- `durationMs` (integer): Duration of the processed video in milliseconds. Present when status is 'done'.
- `error` (string): Error message. Present when status is 'error'.
- `progress` (integer): Processing progress percentage (0-100). Only meaningful when status is 'processing'.
  - Constraints: minimum: 0, maximum: 100
- `status` (string, required): Current processing status of the upload.
  - Constraints: knownValues: pending | processing | done | error
- `tracks` (array): Published track records. Present when status is 'done'.
  - `items` (ref)
    - Reference: `#trackRef`

### Errors

- `NotFound`: No upload exists with the given ID for the authenticated user.

## #trackRef (`place.stream.media.getUploadStatus#trackRef`)

Type: object

### Properties

- `cid` (string, required)
- `uri` (string · at-uri, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the processing status of a previously created upload. Only accessible by the DID that created the upload.",
      "errors": [
        {
          "description": "No upload exists with the given ID for the authenticated user.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "durationMs": {
              "description": "Duration of the processed video in milliseconds. Present when status is 'done'.",
              "type": "integer"
            },
            "error": {
              "description": "Error message. Present when status is 'error'.",
              "type": "string"
            },
            "progress": {
              "description": "Processing progress percentage (0-100). Only meaningful when status is 'processing'.",
              "maximum": 100,
              "minimum": 0,
              "type": "integer"
            },
            "status": {
              "description": "Current processing status of the upload.",
              "knownValues": [
                "pending",
                "processing",
                "done",
                "error"
              ],
              "type": "string"
            },
            "tracks": {
              "description": "Published track records. Present when status is 'done'.",
              "items": {
                "ref": "#trackRef",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "status"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "uploadId": {
            "description": "The upload ID returned by place.stream.media.createUpload.",
            "type": "string"
          }
        },
        "required": [
          "uploadId"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "trackRef": {
      "properties": {
        "cid": {
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid"
      ],
      "type": "object"
    }
  },
  "id": "place.stream.media.getUploadStatus",
  "lexicon": 1
}
```
