Skip to main content
POST
Complete an upload

Authorizations

Authorization
string
header
required

A workspace API key (pst_live_…).

Headers

Idempotency-Key
string

Send the same key again to retry without doing it twice: the first answer comes back. Up to 255 characters, kept for 24 hours.

Maximum string length: 255

Path Parameters

mediaId
string<uuid>
required

Response

200 - application/json

OK

id
string<uuid>
required
kind
enum<string>
required
Available options:
image,
video
status
enum<string>
required
Available options:
uploading,
ready
contentType
string
required
fileName
string
required
size
integer<int64>
required
width
null | integer<int32>
required
height
null | integer<int32>
required
durationSeconds
null | number<double>
required
url
null | string
required
posterUrl
null | string
required
createdAt
string<date-time>
required