# place.stream.media.getUploadStatus

> Published by [did:web:stream.place](https://lexicon.garden/identity/did:web:stream.place)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:stream.place/place.stream.media.getUploadStatus)
- [Documentation](https://lexicon.garden/lexicon/did:web:stream.place/place.stream.media.getUploadStatus/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:stream.place/place.stream.media.getUploadStatus/examples)

## Definitions

### `place.stream.media.getUploadStatus`

**Type**: `query`

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

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uploadId` | `string` | Yes | The upload ID returned by place.stream.media.createUpload. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `error` | `string` | No | Error message. Present when status is 'error'. |
| `status` | `string` | Yes | Current processing status of the upload. |
| `tracks` | `array` | No | Published track records. Present when status is 'done'. |
| `progress` | `integer` | No | Processing progress percentage (0-100). Only meaningful when status is 'processing'. |
| `durationMs` | `integer` | No | Duration of the processed video in milliseconds. Present when status is 'done'. |

#### Errors

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

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

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |

## Raw Schema

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