List agreement templates with their text
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.
bearerAuth onboarding:readAuthorizationBearer <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:read
brandId*stringA brand id from GET /me or GET /creator/brands.
1 <= lengthagreementId?stringOnly this template (a task's agreementId).
1 <= lengthSuccess.
application/json- response
data*array<>curl -X GET 'https://example.com/api/v1/brands/string/onboarding/agreements'{ "data": [ { "id": "string", "name": "string", "archived": true, "flows": [ { "id": "string", "name": "string", "status": "string" } ], "published": { "version": 0, "publishedAt": "string", "format": "text", "text": "string", "pdfUrl": "string", "sha256": "string" }, "unpublishedChanges": true } ]}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.
Delete an onboarding flow DELETE
Delete a flow for good, with its tasks, forms and every submission (answers, signed agreements, history). Creators who already joined stay in the brand. Its links stop working: a link a creator joined through or a referral payout points at is kept but switched off; the rest are deleted, and so are pending invitations to the flow. When the flow has submissions, `confirmName` must be the flow's exact name. Pausing or archiving keeps everything. Preview with dryRun to see what would be erased.