Change an agreement template
Save an agreement's name or text, remove its uploaded PDF (it goes back to its text), 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.
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.
Scope: onboarding:write
brandId*stringA brand id from GET /me or GET /creator/brands.
1 <= lengthagreementId*stringAn id from GET /brands/{brandId}/onboarding/agreements.
1 <= lengthapplication/json- body
name?stringUp to 120 characters.
length <= 120markdown?stringMarkdown, up to 100,000 characters. Merge fields are filled in for each creator when they sign: {{creator_name}}, {{brand_name}}, {{date}} and {{field:}} (an answer from one of the flow's forms). A flow can only publish an agreement with at least 20 characters.
length <= 100000removePdf?booleanDrop the uploaded PDF from the draft, so the agreement uses its text.
archived?booleanArchived agreements can't be used by a flow that publishes.
Success.
application/json- response
id*stringname*stringarchived*booleandraft*publishedVersion*|The version creators sign now. Null until a flow using it publishes.
curl -X PATCH 'https://example.com/api/v1/brands/string/onboarding/agreements/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "name": "string", "archived": true, "draft": { "format": "text", "text": "string" }, "publishedVersion": 0}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.
Create a written agreement template POST
Create an agreement template from markdown. Creators sign it once a flow has an agreement task using it (set the task's `agreementId` in the flow's draft) and the flow is published. PDF agreements are uploaded in the app.