Bloss Docs

Upload a PDF as an agreement's text

Developers
POST
/brands/{brandId}/onboarding/agreements/{agreementId}/pdf

Make an agreement template a PDF instead of markdown, as uploading a PDF to an agreement in the app does. Send file as { url } (a public https link to the PDF) or { base64, contentType: "application/pdf" }: a PDF up to 3 MB inline as base64, 4 MB by url, not password-protected, with at least one page. It replaces any earlier PDF in the draft, and the agreement's text is ignored while it has one. Like text changes it's a draft: creators sign it once a flow using the agreement is published; creators who already signed keep the version they signed. To go back to the text, use brand.onboarding.agreement.update with removePdf: true. A file that isn't a usable PDF answers 400 validation_failed; an unknown agreement, 404.

Authorization

bearerAuth onboarding: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: onboarding:write

Path Parameters

brandId*string

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

Length1 <= length
agreementId*string

An agreement id from GET /brands/{brandId}/onboarding/agreements.

Length1 <= length

Request Body

application/json
  1. body
file*|

The agreement PDF.

Response Body

Success.

application/json
  1. response
id*string
name*string
archived*boolean
draft*
publishedVersion*|

The version creators sign now. Null until a flow using it publishes.

fileId*string

The stored PDF.

curl -X POST 'https://example.com/api/v1/brands/string/onboarding/agreements/string/pdf' \  -H 'Content-Type: application/json' \  -d '{  "file": {    "url": "http://example.com"  }}'
{  "id": "string",  "name": "string",  "archived": true,  "draft": {    "format": "text",    "text": "string"  },  "publishedVersion": 0,  "fileId": "string"}

Was this page helpful?