Create a written agreement template
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.
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 <= lengthapplication/json- body
name?stringDefault "Creator agreement".
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 <= 100000Success.
application/json- response
id*stringname*stringarchived*booleandraft*publishedVersion*|The version creators sign now. Null until a flow using it publishes.
curl -X POST 'https://example.com/api/v1/brands/string/onboarding/agreements' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "name": "string", "archived": true, "draft": { "format": "text", "text": "string" }, "publishedVersion": 0}Change an agreement template PATCH
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.
List agreement templates with their text GET
The brand's agreement templates, as on Onboarding › Agreement templates, by name: the published text creators sign (or a link to the uploaded PDF, valid 10 minutes) and the flows that use each. Filter with `agreementId` from a flow's agreement task.