Finish a managed-account upload
Finishes a two-step upload from managed.uploads.create after you PUT the bytes: Bloss checks the stored file's real size and type against what you declared and answers the file, whose fileId (the same as the upload id) goes in mediaFileIds, avatarFileId or pictureFileId. Calling it again answers the same file. Bytes that never arrived, or an upload id that isn't yours or is over a day old, answer validation_failed (MEDIA_MISSING); a stored file that doesn't match what was declared is validation_failed too. Takes no body.
bearerAuth managed:writeAuthorizationBearer <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: managed:write
uploadId*stringThe uploadId from managed.uploads.create.
1 <= lengthSuccess.
application/json- response
fileId*stringUse it in mediaFileIds, avatarFileId or pictureFileId.
contentType*stringsizeBytes*numberpreviewUrl*stringA Bloss link to the file. Videos open only when signed in to Bloss.
curl -X POST 'https://example.com/api/v1/managed/uploads/string/finalize'{ "fileId": "string", "contentType": "string", "sizeBytes": 0, "previewUrl": "string"}Upload a file for a managed account POST
Uploads a post's media or a profile picture for a managed account, and gives back its file id. Name what it's for: `accountId` for a post on a delivered account (you must be able to post from it), or `orderId` for an unfinished setup or its first post (full admins and account owners). `purpose`: "post_video" (a video post's one video: MP4, MOV or WebM), "post_image" (carousel images: JPG, PNG or WebP), "story_image" (a story's one image), or "avatar" (a profile picture). Two ways to send the file. (a) Two steps: send `contentType` and `sizeBytes` (the exact byte count), PUT the raw bytes to the returned `uploadUrl` with the returned `headers` before `expiresInSeconds` runs out, then call the finalize operation named below. (b) One call: send `url`, a public https link to the file; Bloss downloads it (the link must report its size) and answers with the finished file (`status: "ready"`), so no PUT and no finalize are needed. Use (b) when the file is already online, (a) for a file you hold. Finalize: managed.uploads.finalize. Then use the file id in `mediaFileIds` (managed.account.post.create / .update, managed.order.first-post.media.replace), `avatarFileId` (managed.order.update) or `pictureFileId` (managed.account.review). A type or size the purpose doesn't take is validation_failed (`details.code` MEDIA_TYPE_UNSUPPORTED or MEDIA_TOO_LARGE). Uploads are limited per hour and in megabytes per day (429 rate_limited).
Campaign API keys
Create, use and revoke brand keys for the Campaign API (v0).