# app.bsky.video.getUploadStatus

> Get the authoritative status of the upload phase. Terminal states remain readable. completedJobId and jobStatus are present only for completed sessions; failureReason is present only for failed sessions.

- Kind: query
- Authority: video.bsky.app
- Lexicon: 1
- Published by [bsky-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:4v4y5r3lwsbtmsxhile2ljac), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/app.bsky.video.getUploadStatus)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/app.bsky.video.getUploadStatus/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/app.bsky.video.getUploadStatus/analytics)

## Query (`app.bsky.video.getUploadStatus`)

Type: query · GET

### Parameters (query string)

- `jobId` (string, required)
  - Constraints: minLength: 1, maxLength: 256

### Output (application/json)

- `completedJobId` (string): Present only when state is completed; may differ from jobId on deduplication.
  - Constraints: minLength: 1, maxLength: 256
- `expiresAt` (string · datetime, required)
- `failureReason` (string): Present only when state is failed.
  - Constraints: maxLength: 1024
- `jobId` (string, required)
  - Constraints: minLength: 1, maxLength: 256
- `jobStatus` (ref): Present only when state is completed.
  - Reference: `app.bsky.video.defs#jobStatus`
- `partCount` (integer, required)
- `partSizeBytes` (integer, required)
- `receivedParts` (array, required)
  - `items` (integer)
    - Constraints: minimum: 1
- `state` (string, required)
  - Constraints: maxLength: 32, knownValues: created | finishing | completed | failed | aborted | expired

### Errors

- `UploadNotFound`: The job ID is unknown or aged out of retention; known terminal sessions remain readable and are never reported as not found.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the authoritative status of the upload phase. Terminal states remain readable. completedJobId and jobStatus are present only for completed sessions; failureReason is present only for failed sessions.",
      "errors": [
        {
          "description": "The job ID is unknown or aged out of retention; known terminal sessions remain readable and are never reported as not found.",
          "name": "UploadNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "completedJobId": {
              "description": "Present only when state is completed; may differ from jobId on deduplication.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "expiresAt": {
              "format": "datetime",
              "type": "string"
            },
            "failureReason": {
              "description": "Present only when state is failed.",
              "maxLength": 1024,
              "type": "string"
            },
            "jobId": {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "jobStatus": {
              "description": "Present only when state is completed.",
              "ref": "app.bsky.video.defs#jobStatus",
              "type": "ref"
            },
            "partCount": {
              "type": "integer"
            },
            "partSizeBytes": {
              "type": "integer"
            },
            "receivedParts": {
              "items": {
                "minimum": 1,
                "type": "integer"
              },
              "type": "array"
            },
            "state": {
              "knownValues": [
                "created",
                "finishing",
                "completed",
                "failed",
                "aborted",
                "expired"
              ],
              "maxLength": 32,
              "type": "string"
            }
          },
          "required": [
            "jobId",
            "partSizeBytes",
            "partCount",
            "receivedParts",
            "expiresAt",
            "state"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "jobId": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "jobId"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "app.bsky.video.getUploadStatus",
  "lexicon": 1
}
```
