Skip to main content
POST
Start 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

Body

fileName
null | string
required

The name shown in the library.

contentType
null | string
required

image/jpeg, image/png, video/mp4 or video/quicktime.

size
null | integer<int64>
required

In bytes: images up to 8 MB, videos up to 1 GB.

width
null | integer<int32>
required

In pixels, when known. The platforms' rules check it.

height
null | integer<int32>
required

In pixels, when known. The platforms' rules check it.

durationSeconds
null | number<double>
required

Videos: the length in seconds. TikTok and YouTube check it.

Response

201 - application/json

Created

media
object
required
upload
object
required
poster
null | object
required

Videos: where a JPEG frame for the thumbnail may go. Optional.

expiresAt
string<date-time>
required