Skip to content

athletes.create_onboarding_link and the partner's onboarding addresses - #31

Merged
DrAlexHarrison merged 1 commit into
mainfrom
obrefresh
Nov 22, 2026
Merged

DrAlexHarrison merged 1 commit into
mainfrom
obrefresh

Conversation

@DrAlexHarrison

Copy link
Copy Markdown
Member

Adds the partner side of the expired-onboarding-link refresh (fuel-backend #2376, SaturdayInc/sweb branch obrefresh).

Why. A link to Saturday's hosted questions page stops working after 90 days. A partner can now register a refresh address: an athlete who opens an expired link is sent there with athlete_id and locale in the query, and the partner's server asks for a fresh link and redirects. This is the call it makes.

  • athletes.create_onboarding_link(athlete_id, locale=None) posts to POST /v1/athletes/{athlete_id}/onboarding-link and returns OnboardingLink (object, athlete_id, url, expires_at in Unix seconds). A 5xx on it is retried (it makes no record).
  • PartnerAccount gains optional return_url and refresh_url (a total=False subclass), as GET /v1/partner now shows them.
  • Contract samples onboarding_link and partner_profile from fuel-backend #2376 (scripts/sdk-contracts-sync.sh), mapped in the contract test.
  • CHANGELOG: an Unreleased section. No version bump and nothing published: 0.8.0 is out.

Checked: pytest 228 passed outside tests/test_live.py (contract tests 109); mypy saturday tests/typecheck --check-untyped-defs --warn-unused-ignores: no issues.

Land after fuel-backend #2376: the endpoint does not exist on the API until then.

🤖 Generated with Claude Code

POST /v1/athletes/{athlete_id}/onboarding-link returns a fresh link to the hosted
onboarding page (OnboardingLink); a partner's refresh address calls it when an athlete
opens an expired link. PartnerAccount gains return_url and refresh_url. Contract samples
from fuel-backend obrefresh (onboarding_link, partner_profile).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DrAlexHarrison
DrAlexHarrison merged commit b51b1ae into main Nov 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant