Bloss Docs

Finish an onboarding file upload

Developers
POST
/creator/onboarding/runs/{runId}/uploads/{fileId}/finalize

Finishes a two-step upload from creator.onboarding.uploads.create after you PUT the bytes. Bloss checks the stored file's real size and type against what you declared, and answers file: put that object, as is, under the field's id in the step's answers (creator.onboarding.step.answers.save or creator.onboarding.step.submit). Calling it again answers the same file. Bytes that never arrived, or a file that doesn't match what was declared, is 409 conflict (start again); an expired or wrong uploadToken is 409 conflict too.

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

runId*string

Your onboarding run's id, from creator.onboarding.start.

Length1 <= length
fileId*string

The fileId from creator.onboarding.uploads.create.

Length1 <= length <= 64

Request Body

application/json
  1. body
uploadToken*string

The uploadToken from creator.onboarding.uploads.create.

Length1 <= length <= 4000

Response Body

Success.

application/json
  1. response
file*

A file field's answer: put this whole object, as is, under the field's id in the step's answers.

curl -X POST 'https://example.com/api/v1/creator/onboarding/runs/string/uploads/string/finalize' \  -H 'Content-Type: application/json' \  -d '{  "uploadToken": "string"}'
{  "file": {    "fileId": "string",    "name": "string",    "size": 0,    "contentType": "string"  }}

Was this page helpful?

Upload a file for an onboarding question POST

Uploads the file answer to a file question (a form field of type "file_upload") in an open step of your onboarding run (see creator.onboarding.run.get for the fields, which types they accept and their size limit). 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: creator.onboarding.uploads.finalize. Either way you get a `file` object: put it, as is, under the field's id in the step's answers (creator.onboarding.step.answers.save or creator.onboarding.step.submit). A question that isn't open is 409 conflict; a type or size the field doesn't take is validation_failed; a run takes at most 50 files and 1 GB in all (validation_failed, code "quota").

Add a personal brand POST

Add a personal brand: a set of your own accounts whose stats show on your profile. Needs a name and at least one handle, none already used by another of your brands; each is checked against its platform (400 with `details.fields`, or 429 with Retry-After when the check can't run). Up to 5 besides Primary (409 conflict past that). Its stats are fetched in the background.