Skip to content

X finalize video upload API: POST /2/media/upload/{id}/finalize

When PubNio calls X's finalize video upload request, POST /2/media/upload/{id}/finalize: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision.

PubNio calls X’s POST /2/media/upload/{id}/finalize (finalizeMediaUpload) to close a video upload once every segment is sent.

How PubNio calls it

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 covers the providers that have them.

Spec and changes

finalizeMediaUpload in the pinned spec, revision 2.175.

Checked weekly; no change to POST /2/media/upload/{id}/finalize recorded since this revision. Change tracker.

Limits

  • Finalizing does not make the video postable on its own; until processing_info.state is succeeded or absent, PubNio does not create the post. This step is never retried.

Sources

Type to search…

↑↓ navigate↵ selectEsc close