---
title: "X video upload status API: GET /2/media/upload"
description: "When PubNio calls X's video upload status request, GET /2/media/upload: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# X video upload status API: GET /2/media/upload

PubNio calls X's `GET /2/media/upload` (`getMediaUploadStatus`) to wait for X to finish processing an uploaded video.

## How PubNio calls it

- Publishing: [`POST /api/v1/posts`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts) (unless it saves a draft), [`POST /api/v1/posts/{postId}/publish`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/publish), or [`POST /api/v1/posts/{postId}/targets/{targetId}/retry`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/targets/{targetId}/retry) starts the delivery.
- PubNio polls with `command=STATUS`, sleeping for X's `check_after_secs` between reads, for up to 7 minutes and 120 reads per video.
- A `failed` state fails the delivery as `provider_rejected`; running out of time fails it as `media_preparation_failed`, since X may still finish.

## Scopes

- The pinned spec lists one scope: `media.write`.
- PubNio's X sign-in requests every one of them.
- Before a delivery makes this call, PubNio checks that the account granted `tweet.write`.

## Errors

PubNio has no X error code pages yet. [Provider error codes](https://pubnio.com/docs/errors/providers/) covers the providers that have them.

## Spec and changes

`getMediaUploadStatus` in the pinned spec, revision `2.175`.

Checked weekly; no change to `GET /2/media/upload` recorded since this revision. [Change tracker](https://pubnio.com/docs/changes/).

## Limits

- PubNio does not keep polling after the delivery gives up, and it does not reuse a processed video for another delivery.

## Sources

- [X API v2 OpenAPI document](https://api.x.com/2/openapi.json)

## Related

- [Provider API operations PubNio calls](https://pubnio.com/docs/providers/operations/)
- [X rate limits and quota](https://pubnio.com/docs/providers/x/quota/)

Source: https://pubnio.com/docs/providers/x/operations/get-media-upload-status/index.mdx
