Skip to main content
POST
Create upload session

Authorizations

apiKey
string
header
required

Your OFAuth API key for authenticating requests.

x-connection-id
string
header
required

Requires a connection via the x-connection-id header.

Body

application/json
filename
string
required

Name of the file to upload

Minimum string length: 1
size
integer
required

File size in bytes

Required range: x > 0
contentType
string
required

MIME type of the file (e.g., image/jpeg, video/mp4)

Minimum string length: 1
vaultUpload
object

Options for vault upload (if uploading to vault)

Response

Successful response

mediaUploadId
string
required
uploadType
enum<string>
required
Available options:
single,
multipart
totalParts
integer
required
Required range: x > 0
partSize
integer
required
Required range: x > 0
expiresAt
string
required
parts
object[]
required
completeUrl
string<uri>