Upload a PDF as an agreement's text
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.
bearerAuth onboarding: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: onboarding:write
brandId*stringA brand id from GET /me or GET /creator/brands.
1 <= lengthagreementId*stringAn agreement id from GET /brands/{brandId}/onboarding/agreements.
1 <= lengthapplication/json- body
file*|The agreement PDF.
Success.
application/json- response
id*stringname*stringarchived*booleandraft*publishedVersion*|The version creators sign now. Null until a flow using it publishes.
fileId*stringThe 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"}Delete an unused agreement template DELETE
Delete an agreement template nothing uses. While a flow's task uses it, or creators have signed it, it answers 409 conflict with `details.flows` and `details.submissions`: pick another agreement in those flows, or archive it to keep signed records. Preview with dryRun.
Change an agreement template PATCH
Save an agreement's name or text, remove its uploaded PDF (it goes back to its text; upload one with brand.onboarding.agreement.pdf.set), or archive or unarchive it. Text changes are a draft: creators sign them once a flow using the agreement is published. Creators who already signed keep the version they signed.