Create a share link
Create a reusable invite link to your camp, as the Invite page does. Optional label (up to 80 characters kept), maxUses and expiresInDays (both ignored unless positive; none means unlimited or never). Returns the URL to share and its id, which revokes it. GET /coach/invitations lists your links with their use counts.
bearerAuth coach: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: coach:write
application/json- body
label?stringA name for the link, for your own reference.
maxUses?|How many people may join through it.
expiresInDays?|Days until the link stops working.
Success.
application/json- response
id*stringKeep it to revoke the link later (DELETE /coach/share-links/{linkId}).
label*string|nullmaxUses*number|nulluseCount*numberexpiresAt*string|nullisActive*booleanshareUrl*stringThe link to share: anyone who opens it can ask to join your camp.
curl -X POST 'https://example.com/api/v1/coach/share-links' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "label": "string", "maxUses": 0, "useCount": 0, "expiresAt": "string", "isActive": true, "shareUrl": "string"}Change an accountability rule PATCH
Change the threshold of one accountability rule or turn it on or off, for your whole camp, as the Accountability page does. Send either or both; the other keeps its current value. GET /coach/accountability-rules lists the rules with their units and suggested ranges. Flags are recalculated from live data.
Revoke a share link DELETE
Turn off one of your share links, as the Invite page does. Nobody can join through it any more; students who already joined stay, and its use history is kept. 404 for a link that isn't yours.