Bloss Docs

Upload a video to cross-post

Developers
POST
/creator/brands/{brandId}/cross-post-uploads

Upload the video for a cross-post (MP4 or MOV), in one of two ways. With url (a public https link that reports its size): Bloss copies the video from the link and answers mode: "done" with the uploadId to pass to creator.brand.cross-posts.create. With fileName instead: Bloss answers mode: "presigned" with an uploadUrl; PUT the file's bytes there with exactly the headers given (the Content-Type is signed into the link) within 30 minutes, then call creator.brand.cross-post.uploads.finalize with the uploadToken to get the uploadId. Uploading publishes nothing.

Authorization

bearerAuth creator:write
headerAuthorizationBearer <token>

Personal access token. Scopes: account:read, creator:read, creator:earnings, managed:read, coach:read, brand:read, creators:read, videos:read, analytics:read, onboarding:read, onboarding:signatures, engagement:read, support:read, integrations:read, payouts:read, funds:read, billing:read, groups:write, videos:write, onboarding:write, sync:write, payouts:write, campaigns:write, brand:write, creators:write, engagement:write, support:write, accounts:write, payments:write, creator:write, creator:payouts:write, managed:write, coach:write, agency:write.

Scope: creator:write

Path Parameters

brandId*string

A brand id from GET /me or GET /creator/brands.

Length1 <= length

Request Body

application/json
  1. body
url?string

A public https link to the video. Bloss downloads it. Send this or fileName.

Formaturi
Lengthlength <= 2000
fileName?string

The video's file name (my-video.mp4), for the two-step upload. With url, an optional name to use when the link has none.

Length1 <= length <= 200
contentType?string

video/mp4 or video/quicktime, when the file name or link doesn't tell. Anything else is sent as MP4.

Lengthlength <= 100

Response Body

Success.

application/json
  1. response
mode*string

presigned: PUT the file to uploadUrl, then finalize. done: the video is uploaded; use uploadId.

Value in"presigned""done"
uploadUrl?string

presigned: where to PUT the file's bytes. Valid for about 30 minutes.

method?string
headers?

presigned: send exactly these headers with the PUT.

uploadToken?string

presigned: pass to creator.brand.cross-post.uploads.finalize after the PUT.

expiresInMinutes?number
mimeType*string

The type the video is uploaded as.

Value in"video/mp4""video/quicktime"
uploadId?string

done: pass to creator.brand.cross-posts.create.

videoLength?|

done: the video's length in seconds, when known.

curl -X POST 'https://example.com/api/v1/creator/brands/string/cross-post-uploads' \  -H 'Content-Type: application/json' \  -d '{}'
{  "mode": "presigned",  "uploadUrl": "string",  "method": "PUT",  "headers": {    "property1": "string",    "property2": "string"  },  "uploadToken": "string",  "expiresInMinutes": 0,  "mimeType": "video/mp4",  "uploadId": "string",  "videoLength": 0}

Was this page helpful?